Date: Sat, 28 Sep 2013 13:24:48 +0000 (UTC) From: Rene Ladan <rene@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r328566 - in head/comms/dcf77pi: . files Message-ID: <201309281324.r8SDOmjx076692@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rene Date: Sat Sep 28 13:24:47 2013 New Revision: 328566 URL: http://svnweb.freebsd.org/changeset/ports/328566 Log: Add staging support. Added: head/comms/dcf77pi/files/ head/comms/dcf77pi/files/patch-Makefile (contents, props changed) Modified: head/comms/dcf77pi/Makefile Modified: head/comms/dcf77pi/Makefile ============================================================================== --- head/comms/dcf77pi/Makefile Sat Sep 28 12:59:17 2013 (r328565) +++ head/comms/dcf77pi/Makefile Sat Sep 28 13:24:47 2013 (r328566) @@ -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> Added: head/comms/dcf77pi/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/dcf77pi/files/patch-Makefile Sat Sep 28 13:24:47 2013 (r328566) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309281324.r8SDOmjx076692>