Lines 1-83
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= 20181208 |
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 |
|
14 |
|
18 |
BUILD_DEPENDS= ${JAVALIBDIR}/jutils/jutils.jar:games/jutils \ |
15 |
BUILD_DEPENDS= ${JAVALIBDIR}/jutils/jutils.jar:games/jutils \ |
19 |
${JAVALIBDIR}/jinput/jinput.jar:games/jinput |
16 |
${JAVALIBDIR}/jinput/jinput.jar:games/jinput |
20 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
17 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
21 |
|
18 |
|
22 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} |
19 |
USES= dos2unix |
23 |
EXTRACT_AFTER_ARGS= -d ${WRKSRC} |
|
|
24 |
|
20 |
|
25 |
USES= dos2unix zip |
21 |
USE_GITHUB= yes |
26 |
DOS2UNIX_REGEX= .*.[^jp][^an][^rg]$ |
22 |
GH_ACCOUNT= LWJGL |
|
|
23 |
GH_TAGNAME= 2df01dd |
24 |
|
25 |
DOS2UNIX_REGEX= .*.[^jp][^an][^rg]$ |
27 |
USE_JAVA= yes |
26 |
USE_JAVA= yes |
28 |
USE_LDCONFIG= yes |
27 |
USE_LDCONFIG= yes |
29 |
JAVA_VERSION= 1.7+ |
28 |
JAVA_VERSION= 1.7+ |
30 |
JAVA_OS= native |
29 |
JAVA_OS= native |
31 |
JAVA_VENDOR= openjdk |
30 |
JAVA_VENDOR= openjdk |
32 |
USE_ANT= yes |
31 |
USE_ANT= yes |
33 |
USE_XORG= xcursor xrandr xxf86vm |
32 |
USE_XORG= xcursor xrandr xxf86vm |
34 |
MAKE_ENV+= CLASSPATH=${JAVALIBDIR}/jutils/jutils.jar:${JAVALIBDIR}/jinput/jinput.jar:${WRKSRC}/${DISTNAME}/jar/ |
33 |
MAKE_ENV+= CLASSPATH=${JAVALIBDIR}/jutils/jutils.jar:${JAVALIBDIR}/jinput/jinput.jar:${WRKSRC}/${DISTNAME}/jar/ |
35 |
ALL_TARGET= jars compile_native |
34 |
ALL_TARGET= jars compile_native |
36 |
|
35 |
|
37 |
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}/${PORTNAME}.jar \ |
36 |
PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}/${PORTNAME}.jar \ |
38 |
%%JAVAJARDIR%%/${PORTNAME}/${PORTNAME}_test.jar \ |
37 |
${JAVAJARDIR}/${PORTNAME}/${PORTNAME}_test.jar \ |
39 |
%%JAVAJARDIR%%/${PORTNAME}/${PORTNAME}_util.jar \ |
38 |
${JAVAJARDIR}/${PORTNAME}/${PORTNAME}_util.jar \ |
40 |
%%JAVAJARDIR%%/${PORTNAME}/${PORTNAME}_util_applet.jar |
39 |
${JAVAJARDIR}/${PORTNAME}/${PORTNAME}_util_applet.jar |
41 |
PLIST_DIRS= %%JAVAJARDIR%%/${PORTNAME} \ |
40 |
PLIST_DIRS= ${JAVAJARDIR}/${PORTNAME} \ |
42 |
lib/${PORTNAME}${PORTVERSION} |
41 |
lib/${PORTNAME}${PORTVERSION} |
43 |
|
42 |
|
44 |
.include <bsd.port.pre.mk> |
43 |
.include <bsd.port.pre.mk> |
45 |
|
44 |
|
46 |
.if ${ARCH} == i386 |
45 |
.if ${ARCH} == i386 |
47 |
PLIST_FILES+= lib/${PORTNAME}${PORTVERSION}/lib${PORTNAME}.so |
46 |
PLIST_FILES+= lib/${PORTNAME}${PORTVERSION}/lib${PORTNAME}.so |
48 |
.endif |
47 |
.endif |
49 |
|
48 |
|
50 |
.if ${ARCH} == amd64 || ${ARCH} == powerpc64 |
49 |
.if ${ARCH} == amd64 || ${ARCH} == powerpc64 |
51 |
PLIST_FILES+= lib/${PORTNAME}${PORTVERSION}/lib${PORTNAME}64.so |
50 |
PLIST_FILES+= lib/${PORTNAME}${PORTVERSION}/lib${PORTNAME}64.so |
52 |
.endif |
51 |
.endif |
53 |
|
52 |
|
54 |
.if ${ARCH} == powerpc64 |
53 |
.if ${ARCH} == powerpc64 |
55 |
MAKE_ARGS+= -Dbuild.64bit.only=1 |
54 |
MAKE_ARGS+= -Dbuild.64bit.only=1 |
56 |
.endif |
55 |
.endif |
57 |
|
56 |
|
58 |
post-patch: |
57 |
post-patch: |
59 |
@${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}|g' \ |
58 |
@${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}|g' \ |
60 |
-e '/executable/s/cc/${CC}/g' \ |
59 |
-e '/executable/s/cc/${CC}/g' \ |
61 |
${WRKSRC}/platform_build/bsd_ant/build.xml |
60 |
${WRKSRC}/platform_build/bsd_ant/build.xml |
62 |
.if ${ARCH} == powerpc64 |
61 |
.if ${ARCH} == powerpc64 |
63 |
@${REINPLACE_CMD} -e 's|amd64|ppc64|g' \ |
62 |
@${REINPLACE_CMD} -e 's|amd64|ppc64|g' \ |
64 |
${WRKSRC}/platform_build/bsd_ant/build.xml |
63 |
${WRKSRC}/platform_build/bsd_ant/build.xml |
65 |
.endif |
64 |
.endif |
66 |
|
65 |
|
67 |
do-install: |
66 |
do-install: |
68 |
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME} |
67 |
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME} |
69 |
.for _jar in ${PLIST_FILES:M*.jar} |
68 |
.for _jar in ${PLIST_FILES:M*.jar} |
70 |
${INSTALL_DATA} ${WRKSRC}/libs/${_jar:T} \ |
69 |
${INSTALL_DATA} ${WRKSRC}/libs/${_jar:T} \ |
71 |
${STAGEDIR}${JAVAJARDIR}/${PORTNAME} |
70 |
${STAGEDIR}${JAVAJARDIR}/${PORTNAME} |
72 |
.endfor |
71 |
.endfor |
73 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION} |
72 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION} |
74 |
.if ${ARCH} == i386 |
73 |
.if ${ARCH} == i386 |
75 |
${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}.so \ |
74 |
${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}.so \ |
76 |
${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION} |
75 |
${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION} |
77 |
.endif |
76 |
.endif |
78 |
.if ${ARCH} == amd64 || ${ARCH} == powerpc64 |
77 |
.if ${ARCH} == amd64 || ${ARCH} == powerpc64 |
79 |
${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}64.so \ |
78 |
${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}64.so \ |
80 |
${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION} |
79 |
${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION} |
81 |
.endif |
80 |
.endif |
82 |
|
81 |
|
83 |
.include <bsd.port.post.mk> |
82 |
.include <bsd.port.post.mk> |