aboutsummaryrefslogtreecommitdiff
path: root/misc/astrolog
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-12-08 17:46:27 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-12-08 17:46:27 +0000
commitb53a4a313e991ac9bab4e6a09fe295f2de543d43 (patch)
tree78e8e7adf81133f4a3dea07a8037a8b86156b98f /misc/astrolog
parent06f9c0ec4fa2c8de1fbdd18c27b93158b4f53faa (diff)
downloadports-b53a4a313e991ac9bab4e6a09fe295f2de543d43.tar.gz
ports-b53a4a313e991ac9bab4e6a09fe295f2de543d43.zip
Notes
Diffstat (limited to 'misc/astrolog')
-rw-r--r--misc/astrolog/Makefile17
-rw-r--r--misc/astrolog/files/pkg-message.in2
2 files changed, 8 insertions, 11 deletions
diff --git a/misc/astrolog/Makefile b/misc/astrolog/Makefile
index a336f4933595..e5492c4545d9 100644
--- a/misc/astrolog/Makefile
+++ b/misc/astrolog/Makefile
@@ -35,15 +35,13 @@ NO_WRKSUBDIR= yes
PORTDOCS= helpfile.540 readme.541 changes.txt
+SUB_FILES= pkg-message
+
OPTIONS_DEFINE= X11 DOCS
OPTIONS_DEFAULT=X11
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MX11}
-USE_XORG= x11
-MAKE_ARGS= -DX11
-.endif
+X11_USE= XORG=x11
+X11_MAKE_ARGS= -DX11
post-extract:
${RM} ${WRKSRC}/swe[a-z]*
@@ -55,12 +53,9 @@ do-install:
cd ${WRKSRC}; \
${INSTALL_DATA} astrolog.dat ${STAGEDIR}${PREFIX}/lib/astrolog/astrolog.dat-dist
cd ${WRKSRC} && ${INSTALL_PROGRAM} astrolog ${STAGEDIR}${PREFIX}/bin
-.if ${PORT_OPTIONS:MDOCS}
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
-.endif
- @${ECHO_MSG}
- @${ECHO_MSG} "See the file ${PREFIX}/share/doc/astrolog/helpfile.540 for help"
- @${ECHO_MSG} "and tune ${PREFIX}/lib/astrolog/astrolog.dat"
.include <bsd.port.mk>
diff --git a/misc/astrolog/files/pkg-message.in b/misc/astrolog/files/pkg-message.in
new file mode 100644
index 000000000000..890c80abe52d
--- /dev/null
+++ b/misc/astrolog/files/pkg-message.in
@@ -0,0 +1,2 @@
+See the file %%PREFIX%%/share/doc/astrolog/helpfile.540 for help
+and tune %%PREFIX%%/lib/astrolog/astrolog.dat