diff options
author | rene <rene@FreeBSD.org> | 2013-09-28 21:24:47 +0800 |
---|---|---|
committer | rene <rene@FreeBSD.org> | 2013-09-28 21:24:47 +0800 |
commit | 392113850608b6322bf64ce855eca40d83b2705f (patch) | |
tree | be9b82f4e65fbfa5d2ed371f3faeb34755f8caed /comms | |
parent | b117603c520e50b508892f594c21a3425f502013 (diff) | |
download | freebsd-ports-gnome-392113850608b6322bf64ce855eca40d83b2705f.tar.gz freebsd-ports-gnome-392113850608b6322bf64ce855eca40d83b2705f.tar.zst freebsd-ports-gnome-392113850608b6322bf64ce855eca40d83b2705f.zip |
Add staging support.
Diffstat (limited to 'comms')
-rw-r--r-- | comms/dcf77pi/Makefile | 9 | ||||
-rw-r--r-- | comms/dcf77pi/files/patch-Makefile | 24 |
2 files changed, 29 insertions, 4 deletions
diff --git a/comms/dcf77pi/Makefile b/comms/dcf77pi/Makefile index 6ce77b48304f..764b7a975e65 100644 --- a/comms/dcf77pi/Makefile +++ b/comms/dcf77pi/Makefile @@ -14,18 +14,19 @@ USE_GITHUB= yes GH_ACCOUNT= rene0 GH_COMMIT= 75f6f04 +MAKE_ARGS= FULLPREFIX="${STAGEDIR}${PREFIX}" + OPTIONS_DEFINE= DOCS -NO_STAGE= yes .include <bsd.port.options.mk> post-install: .if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README.md ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} .endif if [ ! -f ${ETCDIR}/hardware.txt ] ; then \ - ${CP} -p ${ETCDIR}/hardware.txt.sample ${ETCDIR}/hardware.txt ; \ + ${CP} -p ${STAGEDIR}${ETCDIR}/hardware.txt.sample ${STAGEDIR}${ETCDIR}/hardware.txt ; \ fi .include <bsd.port.mk> diff --git a/comms/dcf77pi/files/patch-Makefile b/comms/dcf77pi/files/patch-Makefile new file mode 100644 index 000000000000..7a2c9882eb00 --- /dev/null +++ b/comms/dcf77pi/files/patch-Makefile @@ -0,0 +1,24 @@ +--- ./Makefile.orig 2013-09-10 17:47:08.000000000 +0200 ++++ ./Makefile 2013-09-28 15:21:45.000000000 +0200 +@@ -1,8 +1,9 @@ + .PHONY: all clean install + + PREFIX?=. +-ETCDIR?=$(PREFIX)/etc/dcf77pi +-CFLAGS+=-Wall -DETCDIR=\"$(ETCDIR)\" ++FULLPREFIX?=$(PREFIX) ++ETCDIR?=etc/dcf77pi ++CFLAGS+=-Wall -DETCDIR=\"$(PREFIX)/$(ETCDIR)\" + + all: dcf77pi readpin + +@@ -26,6 +27,6 @@ + rm readpin readpin.o + + install: +- install dcf77pi readpin $(PREFIX)/bin +- mkdir -p $(ETCDIR) +- install etc/dcf77pi/hardware.txt $(ETCDIR)/hardware.txt.sample ++ install dcf77pi readpin $(FULLPREFIX)/bin ++ mkdir -p $(FULLPREFIX)/$(ETCDIR) ++ install etc/dcf77pi/hardware.txt $(FULLPREFIX)/$(ETCDIR)/hardware.txt.sample |