diff options
Diffstat (limited to 'x11/hsetroot/files/patch-Makefile')
-rw-r--r-- | x11/hsetroot/files/patch-Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/x11/hsetroot/files/patch-Makefile b/x11/hsetroot/files/patch-Makefile new file mode 100644 index 000000000000..042418fa0368 --- /dev/null +++ b/x11/hsetroot/files/patch-Makefile @@ -0,0 +1,28 @@ +--- Makefile.orig 2016-02-14 00:09:11 UTC ++++ Makefile +@@ -1,4 +1,4 @@ +-CC=gcc ++CC?=gcc + + CFLAGS?=-g -O2 -Wall + LDFLAGS?= +@@ -9,14 +9,17 @@ LDFLAGS+=`pkg-config x11 --libs` + CFLAGS+=`pkg-config imlib2 --cflags` + LDFLAGS+=`pkg-config imlib2 --libs` + ++all: hsetroot ++ + hsetroot: hsetroot.o outputs_xrandr.o ++ $(CC) $(LDFLAGS) -o $@ $> + + hsetroot.o: hsetroot.c outputs.h + +-outputs.o: outputs.c outputs.h ++outputs_xrandr.o: outputs_xrandr.c outputs.h + + install: hsetroot +- install -st /usr/local/bin/ hsetroot ++ $(BSD_INSTALL_PROGRAM) $> $(DESTDIR)$(PREFIX)/bin + + clean: + rm -f hsetroot *.o |