86b3bba34a
(2) USES=libtool instead of USE_AUTOTOOLS=libtool (3) Bump required Java version to 1.7 for java/java-subversion. (4) Build java/kava-subversion with system clang, not "any" gcc on 10 and CURRENT (checked with OpenJDK7 and OpenJDK8).
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
# Created by: Lev Serebryako <lev@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PKGNAMEPREFIX= java-
|
|
CATEGORIES= java
|
|
|
|
MAINTAINER= lev@FreeBSD.org
|
|
COMMENT= Java bindings for Version control system
|
|
|
|
.if defined(WITH_SUBVERSION_VER) && ${WITH_SUBVERSION_VER} == 16
|
|
MASTERDIR= ${.CURDIR}/../../devel/subversion16
|
|
.elif defined(WITH_SUBVERSION_VER) && ${WITH_SUBVERSION_VER} == 17
|
|
MASTERDIR= ${.CURDIR}/../../devel/subversion17
|
|
.else
|
|
MASTERDIR= ${.CURDIR}/../../devel/subversion
|
|
.endif
|
|
PKGDIR= ${.CURDIR}
|
|
|
|
USES+= compiler
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.7+
|
|
JAVA_OS= native
|
|
JAVA_BUILD= yes
|
|
JAVA_RUN= yes
|
|
|
|
SVN_BUILD_BINDINGS=yes
|
|
|
|
.include "${MASTERDIR}/Makefile.common"
|
|
|
|
CONFIGURE_ARGS+= --enable-javahl --with-jdk=${JAVA_HOME} --with-jikes=no
|
|
|
|
post-configure:
|
|
.if ${COMPILER_TYPE} == clang
|
|
@${REINPLACE_CMD} "s#^LT_CXX_LIBADD = .*#LT_CXX_LIBADD =#" ${WRKSRC}/Makefile
|
|
.else
|
|
@${DO_NADA}
|
|
.endif
|
|
|
|
do-build:
|
|
@${MKDIR} ${WRKSRC}/subversion/bindings/java/javahl/classes
|
|
cd ${WRKSRC} ; \
|
|
${MAKE} javahl ${MAKE_ARGS}
|
|
|
|
do-install:
|
|
cd ${WRKSRC} ; \
|
|
${MAKE} install-javahl ${MAKE_ARGS}
|
|
|
|
.include <bsd.port.post.mk>
|