aboutsummaryrefslogtreecommitdiff
path: root/graphics/peps
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2014-03-09 00:32:17 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2014-03-09 00:32:17 +0000
commitf86ff1a520d6362fbeda8cc24e2273bdd18669c8 (patch)
treed3116289f71f1ea98e162b5b271e16abf762711c /graphics/peps
parentf96450acf3df044158a72984906391e5c19e2357 (diff)
downloadports-f86ff1a520d6362fbeda8cc24e2273bdd18669c8.tar.gz
ports-f86ff1a520d6362fbeda8cc24e2273bdd18669c8.zip
Stage support
Notes
Notes: svn path=/head/; revision=347546
Diffstat (limited to 'graphics/peps')
-rw-r--r--graphics/peps/Makefile33
1 files changed, 17 insertions, 16 deletions
diff --git a/graphics/peps/Makefile b/graphics/peps/Makefile
index 8bd6221159da..59814388febb 100644
--- a/graphics/peps/Makefile
+++ b/graphics/peps/Makefile
@@ -15,29 +15,30 @@ USE_GHOSTSCRIPT_RUN= yes
MAKE_ENV= GSPATH="${LOCALBASE}/bin/gs" GZPATH="/usr/bin/gzip" \
ETC="${PREFIX}/etc"
-MAN1= peps.1
-PORTDOCS= peps.pdf
PLIST_FILES= bin/peps \
- etc/peps.mime
+ etc/peps.mime \
+ man/man1/peps.1.gz
+PORTDOCS= peps.pdf
+
+OPTIONS_DEFINE= DOCS X11
+OPTIONS_DEFAULT= X11
+X11_PLIST_FILES= bin/xpeps
-.if defined(WITHOUT_X11)
+.include <bsd.port.options.mk>
+
+.if ! ${PORT_OPTIONS:MX11}
ALL_TARGET= peps
-.else
-PLIST_FILES+= bin/xpeps
.endif
-NO_STAGE= yes
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/peps ${PREFIX}/bin
-.if !defined(WITHOUT_X11)
- ${INSTALL_PROGRAM} ${WRKSRC}/xpeps ${PREFIX}/bin
-.endif
- ${INSTALL_MAN} ${WRKSRC}/peps.1 ${MANPREFIX}/man/man1
- ${INSTALL_DATA} ${WRKSRC}/peps.mime ${PREFIX}/etc
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/peps.pdf ${DOCSDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/peps ${STAGEDIR}${PREFIX}/bin
+.if ${PORT_OPTIONS:MX11}
+ ${INSTALL_PROGRAM} ${WRKSRC}/xpeps ${STAGEDIR}${PREFIX}/bin
.endif
+ ${INSTALL_MAN} ${WRKSRC}/peps.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ ${INSTALL_DATA} ${WRKSRC}/peps.mime ${STAGEDIR}${PREFIX}/etc
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/peps.pdf ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>