Lines 1-12
Link Here
|
1 |
# Created by: loader <loader@freebsdmall.com> |
|
|
2 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
3 |
|
2 |
|
4 |
PORTNAME= lwjgl |
3 |
PORTNAME= lwjgl |
5 |
DISTVERSION= 2.9.3 |
4 |
DISTVERSION= 20161208 |
6 |
CATEGORIES= games java |
5 |
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 |
|
6 |
|
11 |
MAINTAINER= freebsd@skinc.ru |
7 |
MAINTAINER= freebsd@skinc.ru |
12 |
COMMENT= Lightweight Java Game Library |
8 |
COMMENT= Lightweight Java Game Library |
Lines 18-56
Link Here
|
18 |
BROKEN_i386= ld: error: can't create dynamic relocation R_386_32 against local symbol in readonly segment |
14 |
BROKEN_i386= ld: error: can't create dynamic relocation R_386_32 against local symbol in readonly segment |
19 |
.endif |
15 |
.endif |
20 |
|
16 |
|
21 |
BUILD_DEPENDS= ${JAVALIBDIR}/jutils/jutils.jar:games/jutils \ |
17 |
BUILD_DEPENDS= ${JAVAJARDIR}/jutils/jutils.jar:games/jutils \ |
22 |
${JAVALIBDIR}/jinput/jinput.jar:games/jinput |
18 |
${JAVAJARDIR}/jinput/jinput.jar:games/jinput |
23 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
19 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
24 |
|
20 |
|
25 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} |
21 |
USES= dos2unix xorg |
26 |
EXTRACT_AFTER_ARGS= -d ${WRKSRC} |
22 |
USE_GITHUB= yes |
|
|
23 |
GH_ACCOUNT= LWJGL |
24 |
GH_TAGNAME= 2df01dd |
27 |
|
25 |
|
28 |
USES= dos2unix zip xorg |
26 |
DOS2UNIX_REGEX= .*.[^jp][^an][^rg]$ |
29 |
DOS2UNIX_REGEX= .*.[^jp][^an][^rg]$ |
|
|
30 |
USE_JAVA= yes |
27 |
USE_JAVA= yes |
31 |
USE_LDCONFIG= yes |
28 |
USE_LDCONFIG= yes |
32 |
JAVA_OS= native |
|
|
33 |
JAVA_VENDOR= openjdk |
34 |
USE_ANT= yes |
29 |
USE_ANT= yes |
35 |
USE_XORG= xcursor xrandr xxf86vm |
30 |
USE_XORG= xcursor xrandr xxf86vm |
36 |
MAKE_ENV+= CLASSPATH=${JAVALIBDIR}/jutils/jutils.jar:${JAVALIBDIR}/jinput/jinput.jar:${WRKSRC}/${DISTNAME}/jar/ |
31 |
MAKE_ENV+= CLASSPATH=${JAVAJARDIR}/jutils/jutils.jar:${JAVAJARDIR}/jinput/jinput.jar:${WRKSRC}/${DISTNAME}/jar/ |
37 |
ALL_TARGET= jars compile_native |
32 |
ALL_TARGET= jars compile_native |
38 |
|
33 |
|
39 |
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}/${PORTNAME}.jar \ |
34 |
PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}/${PORTNAME}.jar \ |
40 |
%%JAVAJARDIR%%/${PORTNAME}/${PORTNAME}_test.jar \ |
35 |
${JAVAJARDIR}/${PORTNAME}/${PORTNAME}_test.jar \ |
41 |
%%JAVAJARDIR%%/${PORTNAME}/${PORTNAME}_util.jar \ |
36 |
${JAVAJARDIR}/${PORTNAME}/${PORTNAME}_util.jar \ |
42 |
%%JAVAJARDIR%%/${PORTNAME}/${PORTNAME}_util_applet.jar |
37 |
${JAVAJARDIR}/${PORTNAME}/${PORTNAME}_util_applet.jar |
43 |
PLIST_DIRS= %%JAVAJARDIR%%/${PORTNAME} \ |
38 |
PLIST_DIRS= ${JAVAJARDIR}/${PORTNAME} \ |
44 |
lib/${PORTNAME}${PORTVERSION} |
39 |
lib/${PORTNAME} |
45 |
|
40 |
|
46 |
.include <bsd.port.pre.mk> |
41 |
.include <bsd.port.pre.mk> |
47 |
|
42 |
|
48 |
.if ${ARCH} == i386 |
43 |
.if ${ARCH} == i386 |
49 |
PLIST_FILES+= lib/${PORTNAME}${PORTVERSION}/lib${PORTNAME}.so |
44 |
PLIST_FILES+= lib/${PORTNAME}/lib${PORTNAME}.so |
50 |
.endif |
45 |
.endif |
51 |
|
46 |
|
52 |
.if ${ARCH} == amd64 || ${ARCH} == powerpc64 |
47 |
.if ${ARCH} == amd64 || ${ARCH} == powerpc64 |
53 |
PLIST_FILES+= lib/${PORTNAME}${PORTVERSION}/lib${PORTNAME}64.so |
48 |
PLIST_FILES+= lib/${PORTNAME}/lib${PORTNAME}64.so |
54 |
.endif |
49 |
.endif |
55 |
|
50 |
|
56 |
.if ${ARCH} == powerpc64 |
51 |
.if ${ARCH} == powerpc64 |
Lines 72-85
Link Here
|
72 |
${INSTALL_DATA} ${WRKSRC}/libs/${_jar:T} \ |
67 |
${INSTALL_DATA} ${WRKSRC}/libs/${_jar:T} \ |
73 |
${STAGEDIR}${JAVAJARDIR}/${PORTNAME} |
68 |
${STAGEDIR}${JAVAJARDIR}/${PORTNAME} |
74 |
.endfor |
69 |
.endfor |
75 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION} |
70 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME} |
76 |
.if ${ARCH} == i386 |
71 |
.if ${ARCH} == i386 |
77 |
${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}.so \ |
72 |
${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}.so \ |
78 |
${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION} |
73 |
${STAGEDIR}${PREFIX}/lib/${PORTNAME} |
79 |
.endif |
74 |
.endif |
80 |
.if ${ARCH} == amd64 || ${ARCH} == powerpc64 |
75 |
.if ${ARCH} == amd64 || ${ARCH} == powerpc64 |
81 |
${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}64.so \ |
76 |
${INSTALL_DATA} ${WRKSRC}/libs/freebsd/lib${PORTNAME}64.so \ |
82 |
${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION} |
77 |
${STAGEDIR}${PREFIX}/lib/${PORTNAME} |
83 |
.endif |
78 |
.endif |
84 |
|
79 |
|
85 |
.include <bsd.port.post.mk> |
80 |
.include <bsd.port.post.mk> |