Lines 1-5
Link Here
|
1 |
PORTNAME= pty4j |
1 |
PORTNAME= pty4j |
2 |
PORTVERSION= 0.12.11 |
2 |
PORTVERSION= 0.12.13 |
3 |
CATEGORIES= devel java |
3 |
CATEGORIES= devel java |
4 |
PKGNAMEPREFIX= jetbrains- |
4 |
PKGNAMEPREFIX= jetbrains- |
5 |
DIST_SUBDIR= jetbrains |
5 |
DIST_SUBDIR= jetbrains |
Lines 11-53
WWW= https://github.com/JetBrains/pty4j
Link Here
|
11 |
LICENSE= EPL |
11 |
LICENSE= EPL |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
|
13 |
|
|
|
14 |
ONLY_FOR_ARCHS= amd64 |
15 |
|
14 |
USES= gmake |
16 |
USES= gmake |
15 |
|
17 |
|
16 |
USE_GITHUB= yes |
18 |
USE_GITHUB= yes |
17 |
GH_ACCOUNT= JetBrains |
19 |
GH_ACCOUNT= JetBrains |
18 |
GH_PROJECT= pty4j |
20 |
GH_PROJECT= pty4j |
19 |
GH_TAGNAME= 7488f35f79bcd9801ce5ff68afc98a3f43bb97fa |
21 |
GH_TAGNAME= 32b777311438b7a9c5de4cf56cde269ffd27e65e |
20 |
|
22 |
|
21 |
.include <bsd.port.options.mk> |
23 |
DATADIR= ${PREFIX}/share/jetbrains/${PORTNAME} |
22 |
|
24 |
|
23 |
# The directory we need to install Pty4J's native library in depends |
25 |
ALL_TARGET= linux_x86_64 |
24 |
# on the install target's architecture. We rebuild libpty.so instead |
|
|
25 |
# of using one of the bundled ones which are FreeBSD 10.x only. |
26 |
.if ${ARCH} == "amd64" |
27 |
PTY4J_ARCH= x86-64 |
28 |
.elif ${ARCH} == "i386" |
29 |
PTY4J_ARCH= x86 |
30 |
.else |
31 |
PTY4J_ARCH= |
32 |
.endif |
33 |
|
34 |
.if ${PTY4J_ARCH} != "" |
35 |
# Despite what the name might suggest using the linux_x86_64 target |
36 |
# will always build libpty.so for the native platform. |
37 |
BUILD_WRKSRC= ${WRKSRC}/native |
26 |
BUILD_WRKSRC= ${WRKSRC}/native |
38 |
MAKEFILE= Makefile_freebsd |
27 |
MAKEFILE= Makefile_freebsd |
39 |
ALL_TARGET= linux_x86_64 |
28 |
PLIST_FILES= share/jetbrains/${PORTNAME}/${ARCH}/libpty.so |
40 |
PLIST_FILES+= lib/pty4j/freebsd/${PTY4J_ARCH}/libpty.so |
|
|
41 |
.else |
42 |
# If native Pty4J support is missing. |
43 |
NO_BUILD= yes |
44 |
.endif |
45 |
|
29 |
|
46 |
do-install: |
30 |
do-install: |
47 |
.if ${PTY4J_ARCH} != "" |
31 |
${MKDIR} ${STAGEDIR}${DATADIR}/${ARCH} |
48 |
${MKDIR} ${STAGEDIR}${PREFIX}/lib/pty4j/freebsd/${PTY4J_ARCH} |
32 |
${INSTALL_LIB} \ |
49 |
# See above why we always use freebsd/x86-64/ here |
33 |
${WRKSRC}/os/freebsd/x86-64/libpty.so \ |
50 |
${INSTALL_LIB} ${WRKSRC}/os/freebsd/x86-64/libpty.so ${STAGEDIR}${PREFIX}/lib/pty4j/freebsd/${PTY4J_ARCH}/ |
34 |
${STAGEDIR}${DATADIR}/${ARCH} |
51 |
.endif |
|
|
52 |
|
35 |
|
53 |
.include <bsd.port.mk> |
36 |
.include <bsd.port.mk> |