aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-01-31 02:50:14 +0800
committerantoine <antoine@FreeBSD.org>2014-01-31 02:50:14 +0800
commit815f762a3940c75266f5015c85173ef13502d12a (patch)
treefc153e2addfa72fdea1be590672d70b981726258 /deskutils
parent6eca9ee90e4826c49a33c70506fd614da25a177e (diff)
downloadfreebsd-ports-gnome-815f762a3940c75266f5015c85173ef13502d12a.tar.gz
freebsd-ports-gnome-815f762a3940c75266f5015c85173ef13502d12a.tar.zst
freebsd-ports-gnome-815f762a3940c75266f5015c85173ef13502d12a.zip
Stage support
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/teapot/Makefile21
-rw-r--r--deskutils/teapot/pkg-plist1
2 files changed, 7 insertions, 15 deletions
diff --git a/deskutils/teapot/Makefile b/deskutils/teapot/Makefile
index 72aaa917f2ab..511b7e9890b0 100644
--- a/deskutils/teapot/Makefile
+++ b/deskutils/teapot/Makefile
@@ -17,29 +17,20 @@ LICENSE_FILE= ${WRKSRC}/COPYING
USES= cmake
-NO_MANCOMPRESS= no
-MAN1= teapot.1
-
# We download the prebuilt binary tarball for Linux in order to avoid
# having to generate the pdf and html docs from the LyX sourcecode.
WRKSRC_DOCS= ${WRKDIR}/${DISTNAME:C/^./T/}-Linux/share/doc/${PORTNAME}
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS EXAMPLES
+
post-patch:
@${REINPLACE_CMD} -e 's|share/man/man1|man/man1|g' \
${WRKSRC}/CMakeLists.txt
-.include <bsd.port.options.mk>
-
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- @(cd ${WRKSRC_DOCS} && ${COPYTREE_SHARE} \* ${DOCSDIR})
-.endif
-
-.if ${PORT_OPTIONS:MEXAMPLES}
- @${MKDIR} ${EXAMPLESDIR}
- @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @(cd ${WRKSRC_DOCS} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
diff --git a/deskutils/teapot/pkg-plist b/deskutils/teapot/pkg-plist
index 69e9d61d927f..09dc035ddec2 100644
--- a/deskutils/teapot/pkg-plist
+++ b/deskutils/teapot/pkg-plist
@@ -1,4 +1,5 @@
bin/teapot
+man/man1/teapot.1.gz
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/html/node1.html