aboutsummaryrefslogtreecommitdiff
path: root/java/berkeley-db
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2013-03-16 07:29:22 +0000
committerJason Helfman <jgh@FreeBSD.org>2013-03-16 07:29:22 +0000
commitc111245040e62ac233158d650b9e8b4971f22c9d (patch)
tree0dfa0216371453b3f2e12a1cdbcd945e89576d8f /java/berkeley-db
parent8cb8f7534e3d6cc6283ff455300f4dc9e9b672ae (diff)
downloadports-c111245040e62ac233158d650b9e8b4971f22c9d.tar.gz
ports-c111245040e62ac233158d650b9e8b4971f22c9d.zip
Notes
Diffstat (limited to 'java/berkeley-db')
-rw-r--r--java/berkeley-db/Makefile25
1 files changed, 10 insertions, 15 deletions
diff --git a/java/berkeley-db/Makefile b/java/berkeley-db/Makefile
index cb35b3fc13bc..c71ef2c010a6 100644
--- a/java/berkeley-db/Makefile
+++ b/java/berkeley-db/Makefile
@@ -12,7 +12,7 @@ MASTER_SITES= http://download.oracle.com/berkeley-db/ \
MAINTAINER= mi@aldan.algebra.com
COMMENT= Berkeley DB Java Edition
-OPTIONS= TEST "Run the self-tests after building automatically" off
+OPTIONS_DEFINE= TEST
BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
@@ -25,9 +25,8 @@ USE_DOS2UNIX= build.xml
PLIST_FILES= %%JAVAJARDIR%%/je.jar
-.if !defined(NOPORTDOCS)
PORTDOCS= *
-.endif
+PORTEXAMPLES= *
test:
#
@@ -41,9 +40,9 @@ test:
${FALSE} ; \
fi
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_TEST)
+.if ${PORT_OPTIONS:MTEST}
post-build: test
#
# Please, review the reported failures (if any) and consider
@@ -68,17 +67,13 @@ post-patch:
do-install:
@${INSTALL_DATA} ${WRKSRC}/build/lib/je.jar ${JAVAJARDIR}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
- @${CP} -R ${WRKSRC}/docs/ ${DOCSDIR}
+ @(cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
+.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
- @${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
-
-post-install:
- @${FIND} ${EXAMPLESDIR} ! -type d | \
- ${SED} -e "s,^${PREFIX}/,," >> ${TMPPLIST}
- @${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \
- ${SED} -e "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST}
+ @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>