2005-02-05 01:26:57 +01:00
|
|
|
# New ports collection makefile for: Berkeley DB Java
|
|
|
|
# Date created: Feb 2, 2005
|
|
|
|
# Whom: Mikhail Teterin
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= je
|
2008-05-17 00:34:46 +02:00
|
|
|
PORTVERSION= 3.2.76
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 1
|
2005-02-05 01:26:57 +01:00
|
|
|
CATEGORIES= java databases
|
2006-10-18 03:44:16 +02:00
|
|
|
MASTER_SITES= http://download.oracle.com/berkeley-db/ \
|
|
|
|
http://download-east.oracle.com/berkeley-db/ \
|
|
|
|
http://download-west.oracle.com/berkeley-db/
|
2005-02-05 01:26:57 +01:00
|
|
|
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
|
|
|
COMMENT= Berkeley DB Java Edition
|
|
|
|
|
2007-04-22 03:36:37 +02:00
|
|
|
OPTIONS= TEST "Run the self-tests after building automatically" off
|
2006-10-07 03:40:24 +02:00
|
|
|
|
2005-02-05 01:26:57 +01:00
|
|
|
BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
|
|
|
|
|
|
|
|
USE_JAVA= yes
|
2006-10-08 17:17:11 +02:00
|
|
|
JAVA_VERSION= 1.5+
|
2005-02-05 01:26:57 +01:00
|
|
|
USE_ANT= yes
|
|
|
|
MAKE_ENV+= JAVALIBDIR="${JAVALIBDIR}"
|
2006-10-07 03:40:24 +02:00
|
|
|
MAKE_ARGS+= -cp ${JAVALIBDIR}/junit.jar
|
|
|
|
USE_DOS2UNIX= build.xml
|
|
|
|
|
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/je.jar
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
|
|
|
|
|
|
|
test:
|
|
|
|
#
|
|
|
|
# Running the vendor-provided self-tests. This may take a while
|
|
|
|
#
|
2006-10-20 14:49:45 +02:00
|
|
|
if ! (cd ${BUILD_WRKSRC} ; ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${.TARGET}) ; \
|
|
|
|
then \
|
2006-10-07 03:40:24 +02:00
|
|
|
${ECHO_MSG} Please, review test failures and consider \
|
|
|
|
reporting them via \
|
2006-10-20 14:49:45 +02:00
|
|
|
http://forums.oracle.com/forums/forum.jspa?forumID=273 ; \
|
|
|
|
${FALSE} ; \
|
|
|
|
fi
|
2006-10-07 03:40:24 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_TEST)
|
|
|
|
post-build: test
|
|
|
|
#
|
|
|
|
# Please, review the reported failures (if any) and consider
|
2006-11-23 07:21:16 +01:00
|
|
|
# reporting them to the developers via:
|
|
|
|
# http://forums.oracle.com/forums/forum.jspa?forumID=273
|
2006-10-07 03:40:24 +02:00
|
|
|
# You can re-run the tests without rebuilding the port by
|
|
|
|
# simply doing `make test'
|
|
|
|
#
|
|
|
|
.else
|
|
|
|
post-build:
|
|
|
|
#
|
2008-05-17 00:34:46 +02:00
|
|
|
# Doing `make test' now might be useful (if time-consuming).
|
2006-10-07 03:40:24 +02:00
|
|
|
# Please, review the reported failures (if any) and consider
|
|
|
|
# reporting them via
|
|
|
|
# http://forums.oracle.com/forums/forum.jspa?forumID=273
|
|
|
|
#
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
|
|
post-patch:
|
2007-08-04 13:41:30 +02:00
|
|
|
@${REINPLACE_CMD} "s,/usr/local,${PREFIX}," ${WRKSRC}/build.xml
|
2005-02-05 01:26:57 +01:00
|
|
|
|
|
|
|
do-install:
|
2006-10-07 03:40:24 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/build/lib/je.jar ${JAVAJARDIR}
|
2005-02-05 01:26:57 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2006-10-07 03:40:24 +02:00
|
|
|
@${CP} -R ${WRKSRC}/docs/ ${DOCSDIR}
|
|
|
|
@${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}
|
2005-02-05 01:26:57 +01:00
|
|
|
.endif
|
|
|
|
|
2006-10-07 03:40:24 +02:00
|
|
|
.include <bsd.port.post.mk>
|