summaryrefslogtreecommitdiff
path: root/sysutils/javaservicewrapper/Makefile
blob: 2f2cb93e99c9ec232879bf9b8ba3f86dc5db4906 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Created by: alepulver
# $FreeBSD$

PORTNAME=	javaservicewrapper
PORTVERSION=	3.5.7
CATEGORIES=	sysutils java
MASTER_SITES=	http://wrapper.tanukisoftware.com/download/${PORTVERSION}/
DISTNAME=	wrapper_${PORTVERSION}_src

MAINTAINER=	mike.jakubik@gmail.com
COMMENT=	Application to solve problems common to many Java applications

ONLY_FOR_ARCHS=	i386 amd64

USE_JAVA=	1.4+
USE_ANT=	yes
USE_GMAKE=	yes

DATADIR=	${PREFIX}/lib/${PORTNAME}

NO_STAGE=	yes
.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>