diff options
author | dinoex <dinoex@FreeBSD.org> | 2013-10-28 06:29:46 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2013-10-28 06:29:46 +0800 |
commit | a9ff4b49c10701f4d22eb1a173e03064089672bb (patch) | |
tree | 2f75f2dd22479e7d9e0d627ea798a4d2a036e75f /german/dtaus | |
parent | aa3da1c84cdb0e5dfb190c16f74ea3d9def166a7 (diff) | |
download | freebsd-ports-gnome-a9ff4b49c10701f4d22eb1a173e03064089672bb.tar.gz freebsd-ports-gnome-a9ff4b49c10701f4d22eb1a173e03064089672bb.tar.zst freebsd-ports-gnome-a9ff4b49c10701f4d22eb1a173e03064089672bb.zip |
- use STAGEDIR
- use OPTIONS_DEFINE
Diffstat (limited to 'german/dtaus')
-rw-r--r-- | german/dtaus/Makefile | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/german/dtaus/Makefile b/german/dtaus/Makefile index 7adf0d82081c..84794f2cdb6f 100644 --- a/german/dtaus/Makefile +++ b/german/dtaus/Makefile @@ -10,36 +10,34 @@ COMMENT= Belegloser DatenTraegerAUStausch LICENSE= GPLv2 -NO_STAGE= yes - +USES= manpages:install ALL_TARGET= dtaus PLIST_FILES= bin/dtaus - PORTDOCS= ChangeLog README TODO dtaus.txt PORTEXAMPLES= dtaus.cls sample.ctl MAN1= dtaus.1 MAN5= dtaus.5 +.include <bsd.port.options.mk> + do-configure: ${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' \ ${WRKSRC}/bigint.c ${WRKSRC}/dtaus.c -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/dtaus ${PREFIX}/bin/ - ${INSTALL_MAN} ${WRKSRC}/dtaus.1 ${PREFIX}/man/man1/ - ${INSTALL_MAN} ${WRKSRC}/dtaus.5 ${PREFIX}/man/man5/ -.ifndef(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} +do-install: install-all-manpages + ${INSTALL_PROGRAM} ${WRKSRC}/dtaus ${STAGEDIR}${PREFIX}/bin/ +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}${DOCSDIR} .for doc in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${doc} \ - ${DOCSDIR}/ + ${STAGEDIR}${DOCSDIR}/ .endfor .endif -.if !defined(NOPORTEXAMPLES) - ${MKDIR} ${EXAMPLESDIR} +.if ${PORT_OPTIONS:MEXAMPLES} + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for doc in ${PORTEXAMPLES} ${INSTALL_DATA} ${WRKSRC}/${doc} \ - ${EXAMPLESDIR}/ + ${STAGEDIR}${EXAMPLESDIR}/ .endfor .endif |