1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Fix build WITH_JAVA on i386

- Mark broken on !i386 when built WITH_JAVA (does not build)
- Disable java by default as suggested in ports/127386 (too many problems with it after all)

PR:		128329
Submitted by:	Stephen Montgomery-Smith <stephen at math dot missouri dot edu>
This commit is contained in:
Dmitry Marakasov 2008-10-24 11:01:48 +00:00
parent f115346674
commit 17eb6fb568
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=221977

View File

@ -50,13 +50,14 @@ LIB_DEPENDS+= netcdf.4:${PORTSDIR}/science/netcdf
CONFIGURE_ARGS+= --without-netcdf
.endif
.if !defined(WITHOUT_JAVA)
.if defined(WITH_JAVA)
USE_JAVA= yes
JAVA_VERSION= 1.3+
BUILD_DEPENDS+= ${JAVALIBDIR}/npcosmop211.jar:${PORTSDIR}/graphics/cosmoplayer
RUN_DEPENDS+= ${JAVALIBDIR}/npcosmop211.jar:${PORTSDIR}/graphics/cosmoplayer
CONFIGURE_ARGS+= --with-cosmojar-path=${JAVALIBDIR}/npcosmop211.jar \
--with-java40jar-path=${JAVALIBDIR}/java40.jar
CONFIGURE_ARGS+= --with-cosmojar-path=${JAVALIBDIR}/npcosmop211.jar \
--with-java40jar-path=${JAVALIBDIR}/java40.jar \
--with-jni-path=${JAVA_HOME}/include:${JAVA_HOME}/include/freebsd
PLIST_SUB+= JAVA=""
DIR2PRUNE= dx/java/user dx/java/server/nets
.else
@ -68,6 +69,10 @@ PLIST_SUB+= UNAMEP=${ARCH}
.include <bsd.port.pre.mk>
.if defined(WITH_JAVA) && ${ARCH} != "i386"
BROKEN= does not build
.endif
post-patch:
@${RM} -f ${WRKSRC}/include/stamp-h.in
.for dir in doc help html man
@ -82,7 +87,7 @@ post-patch:
post-install:
@${CP} ${FILESDIR}/pkg-message.in ${PKGMESSAGE}
.if !defined(WITHOUT_JAVA)
.if defined(WITH_JAVA)
${CHMOD} 0775 ${PREFIX}/dx/java/server/nets
${TOUCH} ${DIR2PRUNE:S|^|${PREFIX}/|:S|$|/.keepme|}
@${ECHO} "---------------------------------------------------------" \