Lines 1-85
Link Here
|
1 |
# Created by: loader <loader@freebsdmall.com> |
1 |
# Created by: loader <loader@freebsdmall.com> |
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= lwjgl |
4 |
PORTNAME= lwjgl |
5 |
DISTVERSION= 2.9.3 |
5 |
DISTVERSION= 2.9.4.20161208 |
6 |
CATEGORIES= games java |
6 |
CATEGORIES= games java |
7 |
MASTER_SITES= SF/java-game-lib/Official%20Releases/${PORTNAME:tu}%20${PORTVERSION}/ |
|
|
8 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ |
9 |
${PORTNAME}-source-${DISTVERSION}${EXTRACT_SUFX} |
10 |
|
7 |
|
11 |
MAINTAINER= freebsd@skinc.ru |
8 |
MAINTAINER= freebsd@skinc.ru |
12 |
COMMENT= Lightweight Java Game Library |
9 |
COMMENT= Lightweight Java Game Library |
13 |
|
10 |
|
14 |
LICENSE= BSD3CLAUSE |
11 |
LICENSE= BSD3CLAUSE |
15 |
|
12 |
|
16 |
ONLY_FOR_ARCHS= amd64 i386 powerpc64 |
13 |
ONLY_FOR_ARCHS= amd64 i386 powerpc64 |
17 |
.if ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld |
|
|
18 |
BROKEN_i386= ld: error: can't create dynamic relocation R_386_32 against local symbol in readonly segment |
19 |
.endif |
20 |
|
14 |
|
21 |
BUILD_DEPENDS= ${JAVALIBDIR}/jutils/jutils.jar:games/jutils \ |
15 |
BUILD_DEPENDS= ${JAVAJARDIR}/jutils/jutils.jar:games/jutils \ |
22 |
${JAVALIBDIR}/jinput/jinput.jar:games/jinput |
16 |
${JAVAJARDIR}/jinput/jinput.jar:games/jinput |
23 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
17 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
24 |
|
18 |
|
25 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} |
19 |
USES= dos2unix xorg |
26 |
EXTRACT_AFTER_ARGS= -d ${WRKSRC} |
20 |
USE_GITHUB= yes |
|
|
21 |
GH_ACCOUNT= LWJGL |
22 |
GH_TAGNAME= 2df01dd |
27 |
|
23 |
|
28 |
USES= dos2unix zip xorg |
24 |
DOS2UNIX_REGEX= .*.[^jp][^an][^rg]$ |
29 |
DOS2UNIX_REGEX= .*.[^jp][^an][^rg]$ |
|
|
30 |
USE_JAVA= yes |
25 |
USE_JAVA= yes |
31 |
USE_LDCONFIG= yes |
26 |
USE_LDCONFIG= yes |
32 |
JAVA_OS= native |
|
|
33 |
JAVA_VENDOR= openjdk |
34 |
USE_ANT= yes |
27 |
USE_ANT= yes |
35 |
USE_XORG= xcursor xrandr xxf86vm |
28 |
USE_XORG= xcursor xrandr xxf86vm |
36 |
MAKE_ENV+= CLASSPATH=${JAVALIBDIR}/jutils/jutils.jar:${JAVALIBDIR}/jinput/jinput.jar:${WRKSRC}/${DISTNAME}/jar/ |
29 |
MAKE_ENV+= CLASSPATH=${JAVAJARDIR}/jutils/jutils.jar:${JAVAJARDIR}/jinput/jinput.jar:${WRKSRC}/${DISTNAME}/jar/ |
37 |
ALL_TARGET= jars compile_native |
30 |
ALL_TARGET= jars compile_native |
38 |
|
31 |
|
39 |
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}/${PORTNAME}.jar \ |
32 |
PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}/${PORTNAME}.jar \ |
40 |
%%JAVAJARDIR%%/${PORTNAME}/${PORTNAME}_test.jar \ |
33 |
${JAVAJARDIR}/${PORTNAME}/${PORTNAME}_test.jar \ |
41 |
%%JAVAJARDIR%%/${PORTNAME}/${PORTNAME}_util.jar \ |
34 |
${JAVAJARDIR}/${PORTNAME}/${PORTNAME}_util.jar \ |
42 |
%%JAVAJARDIR%%/${PORTNAME}/${PORTNAME}_util_applet.jar |
35 |
${JAVAJARDIR}/${PORTNAME}/${PORTNAME}_util_applet.jar |
43 |
PLIST_DIRS= %%JAVAJARDIR%%/${PORTNAME} \ |
36 |
PLIST_DIRS= ${JAVAJARDIR}/${PORTNAME} \ |
44 |
lib/${PORTNAME}${PORTVERSION} |
37 |
lib/${PORTNAME} |
45 |
|
38 |
|
46 |
.include <bsd.port.pre.mk> |
39 |
.include <bsd.port.pre.mk> |
47 |
|
40 |
|
48 |
.if ${ARCH} == i386 |
41 |
.if ${ARCH} == i386 |
49 |
PLIST_FILES+= lib/${PORTNAME}${PORTVERSION}/lib${PORTNAME}.so |
42 |
PLIST_FILES+= lib/${PORTNAME}/lib${PORTNAME}.so |
50 |
.endif |
43 |
.endif |
51 |
|
44 |
|
52 |
.if ${ARCH} == amd64 || ${ARCH} == powerpc64 |
45 |
.if ${ARCH} == amd64 || ${ARCH} == powerpc64 |
53 |
PLIST_FILES+= lib/${PORTNAME}${PORTVERSION}/lib${PORTNAME}64.so |
46 |
PLIST_FILES+= lib/${PORTNAME}/lib${PORTNAME}64.so |
54 |
.endif |
47 |
.endif |
55 |
|
48 |
|
56 |
.if ${ARCH} == powerpc64 |
49 |
.if ${ARCH} == powerpc64 |
57 |
MAKE_ARGS+= -Dbuild.64bit.only=1 |
50 |
MAKE_ARGS+= -Dbuild.64bit.only=1 |
58 |
.endif |
51 |
.endif |
59 |
|
52 |
|
60 |
post-patch: |
53 |
post-patch: |
61 |
@${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}|g' \ |
54 |
@${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}|g' \ |
62 |
-e '/executable/s/cc/${CC}/g' \ |
55 |
-e '/executable/s/cc/${CC}/g' \ |
63 |
${WRKSRC}/platform_build/bsd_ant/build.xml |
56 |
${WRKSRC}/platform_build/bsd_ant/build.xml |
64 |
.if ${ARCH} == powerpc64 |
57 |
.if ${ARCH} == powerpc64 |
65 |
@${REINPLACE_CMD} -e 's|amd64|ppc64|g' \ |
58 |
@${REINPLACE_CMD} -e 's|amd64|ppc64|g' \ |
66 |
${WRKSRC}/platform_build/bsd_ant/build.xml |
59 |
${WRKSRC}/platform_build/bsd_ant/build.xml |
67 |
.endif |
60 |
.endif |
68 |
|
61 |
|
69 |
do-install: |
62 |
do-install: |
70 |
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME} |
63 |
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME} |
71 |
.for _jar in ${PLIST_FILES:M*.jar} |
64 |
.for _jar in ${PLIST_FILES:M*.jar} |
72 |
${INSTALL_DATA} ${WRKSRC}/libs/${_jar:T} \ |
65 |
${INSTALL_DATA} ${WRKSRC}/libs/${_jar:T} \ |
73 |
${STAGEDIR}${JAVAJARDIR}/${PORTNAME} |
66 |
${STAGEDIR}${JAVAJARDIR}/${PORTNAME} |
74 |
.endfor |
67 |
.endfor |
75 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION} |
68 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME} |
76 |
.if ${ARCH} == i386 |
69 |
.if ${ARCH} == i386 |
77 |
${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}.so \ |
70 |
${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}.so \ |
78 |
${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION} |
71 |
${STAGEDIR}${PREFIX}/lib/${PORTNAME} |
79 |
.endif |
72 |
.endif |
80 |
.if ${ARCH} == amd64 || ${ARCH} == powerpc64 |
73 |
.if ${ARCH} == amd64 || ${ARCH} == powerpc64 |
81 |
${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}64.so \ |
74 |
${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}64.so \ |
82 |
${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION} |
75 |
${STAGEDIR}${PREFIX}/lib/${PORTNAME} |
83 |
.endif |
76 |
.endif |
84 |
|
77 |
|
85 |
.include <bsd.port.post.mk> |
78 |
.include <bsd.port.post.mk> |