Lines 7-39
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= javaservicewrapper |
8 |
PORTNAME= javaservicewrapper |
9 |
PORTVERSION= 3.3.5 |
9 |
PORTVERSION= 3.3.5 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= sysutils java |
11 |
CATEGORIES= sysutils java |
11 |
MASTER_SITES= http://wrapper.tanukisoftware.org/download/${PORTVERSION}/ |
12 |
MASTER_SITES= http://wrapper.tanukisoftware.org/download/${PORTVERSION}/ |
12 |
DISTNAME= wrapper_${PORTVERSION}_src |
13 |
DISTNAME= wrapper_${PORTVERSION}_src |
13 |
|
14 |
|
14 |
MAINTAINER= alepulver@FreeBSD.org |
15 |
MAINTAINER= mikej@rogers.com |
15 |
COMMENT= Application to solve problems common to many Java applications |
16 |
COMMENT= Application to solve problems common to many Java applications |
16 |
|
17 |
|
17 |
USE_GMAKE= yes |
|
|
18 |
USE_JAVA= 1.3+ |
18 |
USE_JAVA= 1.3+ |
19 |
USE_ANT= yes |
19 |
USE_ANT= yes |
20 |
|
20 |
|
21 |
DATADIR= ${PREFIX}/lib/${PORTNAME} |
21 |
DATADIR= ${PREFIX}/lib/${PORTNAME} |
22 |
|
22 |
|
|
|
23 |
ONLY_FOR_ARCHS= i386 amd64 |
24 |
|
25 |
.include <bsd.port.pre.mk> |
26 |
|
27 |
.if (${ARCH} == amd64) |
28 |
MAKE_ARGS+=-Dbits=64 |
29 |
.else |
30 |
MAKE_ARGS+=-Dbits=32 |
31 |
.endif |
32 |
|
23 |
post-patch: |
33 |
post-patch: |
24 |
@${REINPLACE_CMD} -e 's|gcc|${CC} ${CFLAGS} -fPIC|' \ |
34 |
@${REINPLACE_CMD} -e 's|gcc|${CC} ${CFLAGS} -fPIC|' \ |
25 |
${WRKSRC}/src/c/Makefile-freebsd-x86-32.gmake |
35 |
${WRKSRC}/src/c/Makefile-freebsd-x86-32.gmake ${WRKSRC}/src/c/Makefile-freebsd-x86-64.gmake |
26 |
|
|
|
27 |
do-build: |
28 |
@cd ${WRKSRC} && ${SETENV} ANT_HOME="${LOCALBASE}" ${SH} build32.sh |
29 |
|
36 |
|
30 |
do-install: |
37 |
do-install: |
31 |
${MKDIR} ${DATADIR} |
38 |
${MKDIR} ${DATADIR} |
32 |
cd ${WRKSRC} && ${CP} -rp bin conf lib test ${DATADIR} |
39 |
cd ${WRKSRC} && ${CP} -rp bin conf lib test ${DATADIR} && ${STRIP_CMD} ${DATADIR}/bin/wrapper |
33 |
${LN} -sf ${DATADIR}/bin/wrapper ${PREFIX}/bin/${PORTNAME} |
40 |
${LN} -sf ${DATADIR}/bin/wrapper ${PREFIX}/bin/${PORTNAME} |
34 |
.if !defined(NOPORTDOCS) |
41 |
.if !defined(NOPORTDOCS) |
35 |
${MKDIR} ${DOCSDIR} |
42 |
${MKDIR} ${DOCSDIR} |
36 |
${CP} -r ${WRKSRC}/doc/* ${DOCSDIR} |
43 |
${CP} -r ${WRKSRC}/doc/* ${DOCSDIR} |
37 |
.endif |
44 |
.endif |
38 |
|
45 |
|
39 |
.include <bsd.port.mk> |
46 |
.include <bsd.port.post.mk> |