void-packages/srcpkgs/iwgtk/patches/fix-makefile.patch
Abhijit e397c48afe New Package: iwgtk 0.4
Closes: #30669
Closes: #30686 [via git-merge-pr]
2021-05-04 17:38:35 -05:00

29 lines
764 B
Diff

https://patch-diff.githubusercontent.com/raw/J-Lentz/iwgtk/pull/14.patch
--- Makefile.orig
+++ Makefile
@@ -1,8 +1,8 @@
-CC=gcc
-CFLAGS=`pkg-config --cflags gtk+-3.0`
+CC?=gcc
+CCINCS=`pkg-config --cflags gtk+-3.0`
LDLIBS=`pkg-config --libs gtk+-3.0`
-prefix=/usr/local
+prefix?=$(PREFIX)
exec_prefix=$(prefix)
bindir=$(exec_prefix)/bin
datarootdir=$(prefix)/share
@@ -23,10 +23,10 @@
.PHONY : clean install uninstall
iwgtk : $(objects)
- $(CC) $(CFLAGS) -o $@ $^ $(LDLIBS)
+ $(CC) $(CCINCS) $(CFLAGS) -o $@ $^ $(LDLIBS)
%.o : $(srcdir)/%.c $(headers)
- $(CC) -c $(CFLAGS) -o $@ $<
+ $(CC) -c $(CCINCS) $(CFLAGS) -o $@ $<
$(srcdir)/icons.c : icons.gresource.xml $(icons)
glib-compile-resources --target=$@ --sourcedir=icons --generate-source $<