ports/java/java-subversion/Makefile
Muhammad Moinur Rahman 0835676e36
Mk/**java.mk: Convert bsd.java.mk to USES
The following features have been added or changed:
- Instead of USE_JAVA use USES=java. This defaults to
  USES=java:build,run if NO_BUILD is undefined. Else it defaults to
  USES=java:run
- Instead of USE_ANT=yes use USES=java:ant which also implies
  USES=java:build
- Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or
  extract
- Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply
  build or run
- Instead of JAVA_RUN=yes use USES=java:run does not imply extract or
  build
- Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version>

Approved by: mat (portmgr), glewis
Differential Revision:  https://reviews.freebsd.org/D48201
2024-12-31 09:57:55 +01:00

43 lines
889 B
Makefile

PKGNAMEPREFIX= java-
CATEGORIES= java
MAINTAINER= michaelo@apache.org
COMMENT= Java bindings for Version control system
WWW= https://subversion.apache.org/
USES= compiler java
JAVA_OS= native
PORTREVISION_LATEST= 0
PORTREVISION_LTS= 0
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>