opnsense-ports/x11/hsetroot/files/patch-Makefile
Franco Fichtner 8e6b151b19 */*: sync with upstream
Taken from: FreeBSD
2017-02-02 03:31:51 +01:00

28 lines
594 B
Text

--- 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