ports/java/java-subversion/Makefile
Michael Osipov e83f0a9c84 */*: Properly depend on Subversion LTS or latest with WITH_SUBVERSION_VER
When LTS version of Subversion is set in make.conf (WITH_SUBVERSION_VER)
depending ports will still depend on latest version (devel/subversion)
instead of LTS one (devel/subversion-lts). This will cause dependency
conflicts when packages are distributed with Poudriere, namely pkg(8)
will report them and fail to install.
Make all affected ports properly depend on the right port based on the
value set in WITH_SUBVERSION_VER.

Approved by:	jrm (mentor), otis (mentor), lev (maintainer timeout)
Differential Revision:	https://reviews.freebsd.org/D43864
2024-02-28 16:53:37 +01:00

47 lines
925 B
Makefile

PKGNAMEPREFIX= java-
CATEGORIES= java
MAINTAINER= lev@FreeBSD.org
COMMENT= Java bindings for Version control system
WWW= https://subversion.apache.org/
USES= compiler
USE_JAVA= yes
JAVA_OS= native
JAVA_BUILD= yes
JAVA_RUN= yes
PORTREVISION_LATEST= 1
PORTREVISION_LTS= 1
SVN_BUILD_BINDINGS= yes
.include "${.CURDIR}/../../devel/subversion/Makefile.addons"
CONFIGURE_ARGS+= --enable-javahl \
--without-swig-perl \
--without-siwg-python \
--without-swig-ruby \
--with-jdk=${JAVA_HOME} \
--with-jikes=no \
--without-gnome-keyring \
--without-kwallet \
--with-apxs=no
MAKE_JOBS_UNSAFE= yes
ALL_TARGET= javahl
INSTALL_TARGET= install-javahl
post-configure:
.if ${COMPILER_TYPE} == clang
@${REINPLACE_CMD} "s#^LT_CXX_LIBADD = .*#LT_CXX_LIBADD =#" ${WRKSRC}/Makefile
.else
@${DO_NADA}
.endif
pre-build:
@${MKDIR} ${WRKSRC}/subversion/bindings/java/javahl/classes
.include <bsd.port.post.mk>