2007-09-14 08:14:42 +02:00
|
|
|
# New ports collection makefile for: javaservicewrapper
|
|
|
|
# Date created: 2007-09-13
|
|
|
|
# Whom: alepulver
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= javaservicewrapper
|
2011-01-26 19:42:03 +01:00
|
|
|
PORTVERSION= 3.5.7
|
2007-09-14 08:14:42 +02:00
|
|
|
CATEGORIES= sysutils java
|
2011-01-26 19:42:03 +01:00
|
|
|
MASTER_SITES= http://wrapper.tanukisoftware.com/download/${PORTVERSION}/
|
2007-09-14 08:14:42 +02:00
|
|
|
DISTNAME= wrapper_${PORTVERSION}_src
|
|
|
|
|
2011-01-26 19:42:03 +01:00
|
|
|
MAINTAINER= mike.jakubik@gmail.com
|
2007-09-14 08:14:42 +02:00
|
|
|
COMMENT= Application to solve problems common to many Java applications
|
|
|
|
|
2009-07-30 18:28:27 +02:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
|
2011-01-26 19:42:03 +01:00
|
|
|
USE_JAVA= 1.4+
|
2009-07-28 23:35:37 +02:00
|
|
|
USE_ANT= yes
|
2011-01-26 19:42:03 +01:00
|
|
|
USE_GMAKE= yes
|
2007-09-14 08:14:42 +02:00
|
|
|
|
|
|
|
DATADIR= ${PREFIX}/lib/${PORTNAME}
|
|
|
|
|
2009-07-30 18:28:27 +02:00
|
|
|
.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
|
|
|
|
|
2007-09-14 08:14:42 +02:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
cd ${WRKSRC} && ${CP} -rp bin conf lib test ${DATADIR}
|
2009-07-30 18:28:27 +02:00
|
|
|
${STRIP_CMD} ${DATADIR}/bin/wrapper
|
2007-09-14 08:14:42 +02:00
|
|
|
${LN} -sf ${DATADIR}/bin/wrapper ${PREFIX}/bin/${PORTNAME}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${CP} -r ${WRKSRC}/doc/* ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2009-07-30 18:28:27 +02:00
|
|
|
.include <bsd.port.post.mk>
|