aboutsummaryrefslogtreecommitdiff
path: root/archivers/arj
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2012-08-03 15:34:45 +0000
committerRenato Botelho <garga@FreeBSD.org>2012-08-03 15:34:45 +0000
commit90d97bb7c0b335bf482b1243aaab6676246ab4ea (patch)
tree840e8379f841715c5db9a647458ff49f7766d803 /archivers/arj
parent3699fb2fba0a69c608a43ba48f60a0bf905f0f1c (diff)
downloadports-90d97bb7c0b335bf482b1243aaab6676246ab4ea.tar.gz
ports-90d97bb7c0b335bf482b1243aaab6676246ab4ea.zip
Notes
Diffstat (limited to 'archivers/arj')
-rw-r--r--archivers/arj/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/archivers/arj/Makefile b/archivers/arj/Makefile
index 81c5b9d11d0f..dd4ec297cc20 100644
--- a/archivers/arj/Makefile
+++ b/archivers/arj/Makefile
@@ -14,6 +14,9 @@ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/2.78_3.10%20build%2022
MAINTAINER= garga@FreeBSD.org
COMMENT= Open-source ARJ
+OPTIONS_DEFINE= DOCS
+OPTIONS_DEFAULT=DOCS
+
USE_AUTOTOOLS= autoconf
USE_GMAKE= yes
MAKE_JOBS_UNSAFE= yes
@@ -36,6 +39,8 @@ MAN1= arj-register.1 arj.1 arjdisp.1 rearj.1
PORTSCOUT= skipv:3.10g
+.include <bsd.port.pre.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's!/etc!${LOCALBASE}/etc!' \
${WRKSRC}/arj.c ${WRKSRC}/file_reg.c ${WRKSRC}/rearj.c
@@ -47,15 +52,13 @@ pre-build:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} prepare)
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc && ${INSTALL_DATA} COPYING debug.txt ${DOCSDIR}
cd ${WRKSRC}/resource/en && \
${INSTALL_DATA} arjl.txt arjs.txt history.txt readme.txt unix.txt ${DOCSDIR}
.endif
-.include <bsd.port.pre.mk>
-
.if ${ARCH} == "powerpc"
BROKEN= Does not install on powerpc
.endif