aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-03-09 08:32:17 +0800
committerantoine <antoine@FreeBSD.org>2014-03-09 08:32:17 +0800
commit69d1d5d062509940e423114dd670803f0b8dff16 (patch)
treed3116289f71f1ea98e162b5b271e16abf762711c
parent52063df96391af216b4cc9894258dc4efe9348d9 (diff)
downloadfreebsd-ports-gnome-69d1d5d062509940e423114dd670803f0b8dff16.tar.gz
freebsd-ports-gnome-69d1d5d062509940e423114dd670803f0b8dff16.tar.zst
freebsd-ports-gnome-69d1d5d062509940e423114dd670803f0b8dff16.zip
Stage support
-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>