2013-09-21 01:05:58 +02:00
|
|
|
# Created by: alepulver
|
2007-09-14 08:14:42 +02:00
|
|
|
|
|
|
|
PORTNAME= javaservicewrapper
|
2021-01-17 19:43:12 +01:00
|
|
|
PORTVERSION= 3.5.45
|
2007-09-14 08:14:42 +02:00
|
|
|
CATEGORIES= sysutils java
|
2018-10-01 03:43:47 +02:00
|
|
|
MASTER_SITES= https://wrapper.tanukisoftware.com/download/${PORTVERSION}/
|
2007-09-14 08:14:42 +02:00
|
|
|
DISTNAME= wrapper_${PORTVERSION}_src
|
|
|
|
|
2018-09-12 04:09:45 +02:00
|
|
|
MAINTAINER= michael.osipov@siemens.com
|
2018-10-01 03:43:47 +02:00
|
|
|
COMMENT= JSW enables a Java application to be run as a Unix daemon
|
2007-09-14 08:14:42 +02:00
|
|
|
|
2018-10-01 03:43:47 +02:00
|
|
|
LICENSE= GPLv2 GPLv3
|
|
|
|
LICENSE_COMB= dual
|
2009-07-30 18:28:27 +02:00
|
|
|
|
2021-04-29 17:26:34 +02:00
|
|
|
ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc64 powerpc64le
|
2018-10-01 03:43:47 +02:00
|
|
|
|
|
|
|
USES= gmake iconv
|
2020-06-14 03:21:49 +02:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 8+
|
|
|
|
|
2009-07-28 23:35:37 +02:00
|
|
|
USE_ANT= yes
|
2018-10-01 03:43:47 +02:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/javaservicewrapper/lib
|
2007-09-14 08:14:42 +02:00
|
|
|
|
|
|
|
DATADIR= ${PREFIX}/lib/${PORTNAME}
|
|
|
|
|
2013-12-05 18:53:21 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2009-07-30 18:28:27 +02:00
|
|
|
|
2021-04-29 17:26:34 +02:00
|
|
|
.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH:Mpowerpc64*}
|
2009-07-30 18:28:27 +02:00
|
|
|
MAKE_ARGS+= -Dbits=64
|
|
|
|
.else
|
|
|
|
MAKE_ARGS+= -Dbits=32
|
2018-11-06 17:53:30 +01:00
|
|
|
CFLAGS+= -fPIC
|
2009-07-30 18:28:27 +02:00
|
|
|
.endif
|
|
|
|
|
2021-01-17 19:43:12 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${JAVA_PORT_VERSION} >= 15
|
|
|
|
PLIST_SUB+= JS_ENGINE="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= JS_ENGINE=""
|
|
|
|
.endif
|
|
|
|
|
2009-07-30 18:28:27 +02:00
|
|
|
post-patch:
|
2013-12-05 18:53:21 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|gcc|${CC} ${CFLAGS}| ; \
|
|
|
|
s|/usr/local|${ICONV_PREFIX}|g ; \
|
|
|
|
s|-liconv|${ICONV_LIB}|' \
|
2009-07-30 18:28:27 +02:00
|
|
|
${WRKSRC}/src/c/Makefile-freebsd-x86-32.gmake \
|
|
|
|
${WRKSRC}/src/c/Makefile-freebsd-x86-64.gmake
|
2020-06-14 03:21:49 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|\(javac\.target\.version\)=.*|\1=1.8|' \
|
|
|
|
${WRKSRC}/default.properties
|
2021-04-29 17:26:34 +02:00
|
|
|
@${CP} ${WRKSRC}/src/c/Makefile-freebsd-x86-32.gmake \
|
|
|
|
${WRKSRC}/src/c/Makefile-freebsd-arm-32.gmake
|
|
|
|
@${CP} ${WRKSRC}/src/c/Makefile-freebsd-x86-64.gmake \
|
|
|
|
${WRKSRC}/src/c/Makefile-freebsd-armhf-64.gmake
|
2020-12-16 18:09:25 +01:00
|
|
|
@${CP} ${WRKSRC}/src/c/Makefile-freebsd-x86-64.gmake \
|
|
|
|
${WRKSRC}/src/c/Makefile-freebsd-ppcbe-64.gmake
|
2021-01-01 18:17:36 +01:00
|
|
|
@${CP} ${WRKSRC}/src/c/Makefile-freebsd-x86-64.gmake \
|
|
|
|
${WRKSRC}/src/c/Makefile-freebsd-ppcle-64.gmake
|
2009-07-30 18:28:27 +02:00
|
|
|
|
2007-09-14 08:14:42 +02:00
|
|
|
do-install:
|
2013-12-05 18:53:21 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
cd ${WRKSRC} && ${CP} -rp bin conf lib test ${STAGEDIR}${DATADIR}
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${DATADIR}/bin/wrapper
|
|
|
|
${LN} -sf ${DATADIR}/bin/wrapper ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
2015-09-03 16:09:17 +02:00
|
|
|
|
|
|
|
do-install-DOCS-on:
|
2013-12-05 18:53:21 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
|
2007-09-14 08:14:42 +02:00
|
|
|
|
2021-01-17 19:43:12 +01:00
|
|
|
.include <bsd.port.post.mk>
|