summaryrefslogtreecommitdiff
path: root/x11/hsetroot/files/patch-Makefile
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2017-01-31 16:29:42 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2017-01-31 16:29:42 +0000
commit4e7c76aee42975417a082048005d2448f32971c5 (patch)
tree6e72a1d2c58240d0a3fa924f04d9b5b43c1b88e4 /x11/hsetroot/files/patch-Makefile
parentThis is actually only for Module::Build, not the ::Tiny version. (diff)
Move to a better category (alongside with `x11/xsetroot', for example).
Notes
Notes: svn path=/head/; revision=432934
Diffstat (limited to 'x11/hsetroot/files/patch-Makefile')
-rw-r--r--x11/hsetroot/files/patch-Makefile28
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