freebsd-ports/ports-mgmt/chucky/files/patch-Makefile
2014-09-06 13:12:23 +00:00

27 lines
646 B
Text

--- Makefile.orig 2013-03-22 04:11:27 UTC
+++ Makefile
@@ -1,8 +1,8 @@
-prefix=/usr/local
-man7dir=/usr/local/man/man7
-CC=clang
-CFLAGS=-I/usr/local/include
-LDFLAGS=-L/usr/local/lib -lsqlite3
+prefix=${PREFIX}
+man7dir=${MANPREFIX}/man/man7
+CC?=clang
+CFLAGS+=-I${LOCALBASE}/include
+LDFLAGS+=-L${LOCALBASE}/lib -lsqlite3
all: chucky
@@ -12,8 +12,8 @@
rm chucky
install:
- install -m 0755 -g wheel -o root chucky ${prefix}/bin
- -install -m 0644 -g wheel -o root chucky.7 ${man7dir}
+ $(BSD_INSTALL_PROGRAM) chucky $(DESTDIR)${prefix}/bin
+ $(BSD_INSTALL_MAN) chucky.7 $(DESTDIR)${man7dir}
deinstall:
rm -f ${prefix}/bin/chucky