diff options
author | Boris Samorodov <bsam@FreeBSD.org> | 2013-06-20 16:43:43 +0000 |
---|---|---|
committer | Boris Samorodov <bsam@FreeBSD.org> | 2013-06-20 16:43:43 +0000 |
commit | 7196ff106f4544adb89f19d4e9c6d01fc8dcd094 (patch) | |
tree | 0456ad6190c0ed94e66115886ed2f978d17ba154 /comms/efax/Makefile | |
parent | 772ea7c291213768e3b0d68fbcb9ae86b10fd075 (diff) | |
download | ports-7196ff106f4544adb89f19d4e9c6d01fc8dcd094.tar.gz ports-7196ff106f4544adb89f19d4e9c6d01fc8dcd094.zip |
Notes
Diffstat (limited to 'comms/efax/Makefile')
-rw-r--r-- | comms/efax/Makefile | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/comms/efax/Makefile b/comms/efax/Makefile index de79c5a9d872..4816d48fef0f 100644 --- a/comms/efax/Makefile +++ b/comms/efax/Makefile @@ -16,25 +16,32 @@ USE_GMAKE= YES MAN1= fax.1 \ efax.1 \ efix.1 -DOCDIR= ${PREFIX}/share/doc/efax +DOCSDIR= ${PREFIX}/share/doc/efax +PORTDOCS= COPYING README printcap.sample efax.html fax.html MAKE_ENV= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ INSTALL_DATA="${INSTALL_DATA}" CONFLICTS= efax-gtk-* +OPTIONS_DEFINE= DOCS + post-build: ${MV} ${WRKSRC}/fax ${WRKSRC}/fax.orig ${CAT} ${WRKSRC}/fax.orig | ${SED} -e s!%%PREFIX%%!${PREFIX}!g > \ ${WRKSRC}/fax +.include <bsd.port.options.mk> + post-install: ${INSTALL_DATA} ${WRKSRC}/efax.rc.sample ${PREFIX}/etc ${INSTALL_DATA} ${WRKSRC}/efax.rc.sample.ja ${PREFIX}/etc - ${MKDIR} ${DOCDIR} -.for i in COPYING README printcap.sample efax.html fax.html - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCDIR} -.endfor - ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR} +.endif + @${ECHO_CMD} + @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + @${ECHO_CMD} .include <bsd.port.mk> |