mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
613b505d76
- Change USE_GMAKE into a BUILD_DEPENDS entry, to avoid possible problems as the do-build target should be defined by the USE_ANT code.
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
# New ports collection makefile for: javaservicewrapper
|
|
# Date created: 2007-09-13
|
|
# Whom: alepulver
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= javaservicewrapper
|
|
PORTVERSION= 3.3.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils java
|
|
MASTER_SITES= http://wrapper.tanukisoftware.org/download/${PORTVERSION}/
|
|
DISTNAME= wrapper_${PORTVERSION}_src
|
|
|
|
MAINTAINER= mikej@rogers.com
|
|
COMMENT= Application to solve problems common to many Java applications
|
|
|
|
BUILD_DEPENDS= gmake:${PORTSDIR}/devel/gmake
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
USE_JAVA= 1.3+
|
|
USE_ANT= yes
|
|
|
|
DATADIR= ${PREFIX}/lib/${PORTNAME}
|
|
|
|
.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.post.mk>
|