1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/java/berkeley-db/Makefile
Edwin Groothuis 090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00

89 lines
2.2 KiB
Makefile

# New ports collection makefile for: Berkeley DB Java
# Date created: Feb 2, 2005
# Whom: Mikhail Teterin
#
# $FreeBSD$
#
PORTNAME= je
PORTVERSION= 3.2.76
PORTREVISION= 1
CATEGORIES= java databases
MASTER_SITES= http://download.oracle.com/berkeley-db/ \
http://download-east.oracle.com/berkeley-db/ \
http://download-west.oracle.com/berkeley-db/
MAINTAINER= mi@aldan.algebra.com
COMMENT= Berkeley DB Java Edition
OPTIONS= TEST "Run the self-tests after building automatically" off
BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
USE_JAVA= yes
JAVA_VERSION= 1.5+
USE_ANT= yes
MAKE_ENV+= JAVALIBDIR="${JAVALIBDIR}"
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
#
if ! (cd ${BUILD_WRKSRC} ; ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${.TARGET}) ; \
then \
${ECHO_MSG} Please, review test failures and consider \
reporting them via \
http://forums.oracle.com/forums/forum.jspa?forumID=273 ; \
${FALSE} ; \
fi
.include <bsd.port.pre.mk>
.if defined(WITH_TEST)
post-build: test
#
# Please, review the reported failures (if any) and consider
# reporting them to the developers via:
# http://forums.oracle.com/forums/forum.jspa?forumID=273
# You can re-run the tests without rebuilding the port by
# simply doing `make test'
#
.else
post-build:
#
# Doing `make test' now might be useful (if time-consuming).
# Please, review the reported failures (if any) and consider
# reporting them via
# http://forums.oracle.com/forums/forum.jspa?forumID=273
#
.endif
post-patch:
@${REINPLACE_CMD} "s,/usr/local,${PREFIX}," ${WRKSRC}/build.xml
do-install:
@${INSTALL_DATA} ${WRKSRC}/build/lib/je.jar ${JAVAJARDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${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}
.endif
.include <bsd.port.post.mk>