summaryrefslogtreecommitdiff
path: root/sysutils/javaservicewrapper
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2009-07-30 16:28:27 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2009-07-30 16:28:27 +0000
commitb6509e387bc2adbbb6ea7a6d9420210640f4d409 (patch)
tree6d09ce2ba6a18424fdf3e2e06b50b217623085e3 /sysutils/javaservicewrapper
parentSet NO_LATEST_LINK as it conflicts with x11-toolkits/py-wxPython28 (diff)
- Change port to properly pass 32/64bit options based on current ARCH to the
ant build process. - Remove javaservicewrapper/files/patch-build.xml, this patch should no longer be necessary due to the update above. - Strip resulting binary. - Take over maintainership, Alejandro no longer uses this port. Changes by alepulver: - Keep USE_GMAKE because Ant calls it when building the C code. - Put do-build before bsd.port.pre.mk to avoid a target redefinition warning. PR: ports/137267 Submitted by: Mike Jakubik <mikej@rogers.com>
Notes
Notes: svn path=/head/; revision=238682
Diffstat (limited to 'sysutils/javaservicewrapper')
-rw-r--r--sysutils/javaservicewrapper/Makefile25
-rw-r--r--sysutils/javaservicewrapper/files/patch-build.xml10
2 files changed, 19 insertions, 16 deletions
diff --git a/sysutils/javaservicewrapper/Makefile b/sysutils/javaservicewrapper/Makefile
index b888e8377971..a75af8c6d172 100644
--- a/sysutils/javaservicewrapper/Makefile
+++ b/sysutils/javaservicewrapper/Makefile
@@ -7,33 +7,46 @@
PORTNAME= javaservicewrapper
PORTVERSION= 3.3.5
+PORTREVISION= 1
CATEGORIES= sysutils java
MASTER_SITES= http://wrapper.tanukisoftware.org/download/${PORTVERSION}/
DISTNAME= wrapper_${PORTVERSION}_src
-MAINTAINER= alepulver@FreeBSD.org
+MAINTAINER= mikej@rogers.com
COMMENT= Application to solve problems common to many Java applications
+ONLY_FOR_ARCHS= i386 amd64
+
USE_GMAKE= yes
USE_JAVA= 1.3+
USE_ANT= yes
DATADIR= ${PREFIX}/lib/${PORTNAME}
-post-patch:
- @${REINPLACE_CMD} -e 's|gcc|${CC} ${CFLAGS} -fPIC|' \
- ${WRKSRC}/src/c/Makefile-freebsd-x86-32.gmake
-
do-build:
@cd ${WRKSRC} && ${SETENV} ANT_HOME="${LOCALBASE}" ${SH} build32.sh
+.include <bsd.port.pre.mk>
+
+.if (${ARCH} == amd64)
+MAKE_ARGS+= -Dbits=64
+.else
+MAKE_ARGS+= -Dbits=32
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|gcc|${CC} ${CFLAGS} -fPIC|' \
+ ${WRKSRC}/src/c/Makefile-freebsd-x86-32.gmake \
+ ${WRKSRC}/src/c/Makefile-freebsd-x86-64.gmake
+
do-install:
${MKDIR} ${DATADIR}
cd ${WRKSRC} && ${CP} -rp bin conf lib test ${DATADIR}
+ ${STRIP_CMD} ${DATADIR}/bin/wrapper
${LN} -sf ${DATADIR}/bin/wrapper ${PREFIX}/bin/${PORTNAME}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${CP} -r ${WRKSRC}/doc/* ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/sysutils/javaservicewrapper/files/patch-build.xml b/sysutils/javaservicewrapper/files/patch-build.xml
deleted file mode 100644
index d09e3ce923b5..000000000000
--- a/sysutils/javaservicewrapper/files/patch-build.xml
+++ /dev/null
@@ -1,10 +0,0 @@
---- ./build.xml.orig Tue Oct 17 11:21:20 2006
-+++ ./build.xml Thu Sep 27 19:07:48 2007
-@@ -304,7 +304,6 @@
- <echo message="**********************************************************************"/>
- <echo message="A ${bits}-bit build was requested, but this is a ${sun.arch.data.model}-bit JVM."/>
- <echo message="**********************************************************************"/>
-- <fail message="The &quot;bits&quot; system property does not match that of the JVM."/>
- </target>
-
- <!-- =================================================================== -->