aboutsummaryrefslogtreecommitdiffstats
path: root/german/dtaus
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2013-10-28 06:29:46 +0800
committerdinoex <dinoex@FreeBSD.org>2013-10-28 06:29:46 +0800
commita9ff4b49c10701f4d22eb1a173e03064089672bb (patch)
tree2f75f2dd22479e7d9e0d627ea798a4d2a036e75f /german/dtaus
parentaa3da1c84cdb0e5dfb190c16f74ea3d9def166a7 (diff)
downloadfreebsd-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/Makefile24
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