diff options
author | vanilla <vanilla@FreeBSD.org> | 2014-06-29 23:25:11 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2014-06-29 23:25:11 +0800 |
commit | 6dbf0e6eec724ce5ecabe07024083ee8b07a3a01 (patch) | |
tree | 4e6814d33f334522e2ce177b97842a5781244631 /sysutils | |
parent | 22daa42a6ac53a79fbb50809c63457e710cce8d7 (diff) | |
download | freebsd-ports-gnome-6dbf0e6eec724ce5ecabe07024083ee8b07a3a01.tar.gz freebsd-ports-gnome-6dbf0e6eec724ce5ecabe07024083ee8b07a3a01.tar.zst freebsd-ports-gnome-6dbf0e6eec724ce5ecabe07024083ee8b07a3a01.zip |
1: Stagify.
2: use options helper to handle PORTDOCS.
Approved by: portmgr@ (blanket approval)
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/tbku/Makefile | 11 | ||||
-rw-r--r-- | sysutils/tbku/files/patch-Makefile | 12 |
2 files changed, 19 insertions, 4 deletions
diff --git a/sysutils/tbku/Makefile b/sysutils/tbku/Makefile index 58b2c8f095cc..14bae1ee759e 100644 --- a/sysutils/tbku/Makefile +++ b/sysutils/tbku/Makefile @@ -9,16 +9,19 @@ MASTER_SITES= http://www.tundraware.com/Software/tbku/ MAINTAINER= tbku@tundraware.com COMMENT= A Tool For Incremental And Imaging Backups -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + +.include <bsd.port.options.mk> + post-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in WHATSNEW.txt tbku-license.txt tbku.html tbku.pdf tbku.ps tbku.txt \ Imaging-FreeBSD-With-tbku.txt Imaging-FreeBSD-With-tbku.html \ Imaging-FreeBSD-With-tbku.pdf Imaging-FreeBSD-With-tbku.ps \ Imaging-SUSE-Linux-With-tbku.txt Imaging-SUSE-Linux-With-tbku.html \ Imaging-SUSE-Linux-With-tbku.pdf Imaging-SUSE-Linux-With-tbku.ps - @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} .endfor .endif diff --git a/sysutils/tbku/files/patch-Makefile b/sysutils/tbku/files/patch-Makefile new file mode 100644 index 000000000000..54f6eefc5c55 --- /dev/null +++ b/sysutils/tbku/files/patch-Makefile @@ -0,0 +1,12 @@ +--- Makefile.orig 2014-06-29 23:22:47.157452107 +0800 ++++ Makefile 2014-06-29 23:23:00.688449516 +0800 +@@ -2,7 +2,7 @@ + # $Id: Makefile,v 1.102 2008/03/19 23:05:08 tundra Exp $ + + install: +- ${BSD_INSTALL_SCRIPT} tbku ${PREFIX}/bin +- ${BSD_INSTALL_MAN} tbku.1.gz ${PREFIX}/man/cat1 ++ ${BSD_INSTALL_SCRIPT} tbku $(DESTDIR)${PREFIX}/bin ++ ${BSD_INSTALL_MAN} tbku.1.gz $(DESTDIR)${PREFIX}/man/cat1 + + all: # Nothing to do here |