Added
Link Here
|
1 |
PORTNAME= pty4j |
2 |
PORTVERSION= 0.12.10 |
3 |
CATEGORIES= devel java |
4 |
PKGNAMEPREFIX= jetbrains- |
5 |
DIST_SUBDIR= jetbrains |
6 |
|
7 |
MAINTAINER= dmitry.wagin@ya.ru |
8 |
COMMENT= Pty4J's native library |
9 |
WWW= https://github.com/JetBrains/pty4j |
10 |
|
11 |
LICENSE= EPL |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
|
14 |
USES= gmake |
15 |
|
16 |
USE_GITHUB= yes |
17 |
GH_ACCOUNT= JetBrains |
18 |
GH_PROJECT= pty4j |
19 |
GH_TAGNAME= aa7f15307744d5d33a44bd72b42513327c879fd3 |
20 |
|
21 |
.include <bsd.port.options.mk> |
22 |
|
23 |
# The directory we need to install Pty4J's native library in depends |
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 |
38 |
MAKEFILE= Makefile_freebsd |
39 |
ALL_TARGET= linux_x86_64 |
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 |
|
46 |
do-install: |
47 |
.if ${PTY4J_ARCH} != "" |
48 |
${MKDIR} ${STAGEDIR}${PREFIX}/lib/pty4j/freebsd/${PTY4J_ARCH} |
49 |
# See above why we always use freebsd/x86-64/ here |
50 |
${INSTALL_LIB} ${WRKSRC}/os/freebsd/x86-64/libpty.so ${STAGEDIR}${PREFIX}/lib/pty4j/freebsd/${PTY4J_ARCH}/ |
51 |
.endif |
52 |
|
53 |
.include <bsd.port.mk> |