Lines 5-34
Link Here
|
5 |
# Vadim Zhukov <zhuk@openbsd.org> |
5 |
# Vadim Zhukov <zhuk@openbsd.org> |
6 |
|
6 |
|
7 |
PORTNAME= intellij |
7 |
PORTNAME= intellij |
8 |
PORTVERSION= 15.0.1 |
8 |
PORTVERSION= 15.0.3 |
9 |
CATEGORIES= java devel |
9 |
CATEGORIES= java devel |
10 |
MASTER_SITES= https://download.jetbrains.com/idea/ \ |
10 |
MASTER_SITES= https://download.jetbrains.com/idea/:jetbrains \ |
11 |
http://download.jetbrains.com/idea/ |
11 |
http://download.jetbrains.com/idea/:jetbrains \ |
12 |
DISTNAME= ideaIC-${PORTVERSION} |
12 |
GH:pty4j |
|
|
13 |
DISTFILES= ideaIC-${PORTVERSION}.tar.gz:jetbrains \ |
14 |
${DISTNAME}.tar.gz:pty4j |
13 |
|
15 |
|
14 |
MAINTAINER= t@tobik.me |
16 |
MAINTAINER= t@tobik.me |
15 |
COMMENT= IntelliJ IDEA Java IDE |
17 |
COMMENT= IntelliJ IDEA Community Edition |
16 |
|
18 |
|
17 |
LICENSE= APACHE20 |
19 |
LICENSE= APACHE20 |
18 |
|
20 |
|
|
|
21 |
# Upstream has merged pty4j FreeBSD support but no offical release/tag |
22 |
# with it yet |
23 |
USE_GITHUB= yes |
24 |
GH_ACCOUNT= traff |
25 |
GH_PROJECT= pty4j |
26 |
GH_TAGNAME= 335982264104fd4529f2ee75f08d1e1d9f9d544a |
27 |
|
19 |
USE_JAVA= yes |
28 |
USE_JAVA= yes |
20 |
JAVA_VERSION= 1.7+ |
29 |
JAVA_VERSION= 1.7+ |
21 |
|
30 |
|
22 |
NO_BUILD= yes |
31 |
WRKDIST= ${WRKDIR}/idea-IC-143.1821.5 |
23 |
|
32 |
|
24 |
WRKDIST= ${WRKDIR}/idea-IC-143.382.35 |
33 |
IDEA_HOME= ${PREFIX}/${PORTNAME} |
25 |
|
34 |
|
26 |
IDEA_HOME= ${PREFIX}/lib/intellij |
35 |
USES= gmake |
27 |
|
36 |
|
28 |
PLIST_SUB+= IDEA_HOME=${IDEA_HOME} |
37 |
PLIST_SUB+= IDEA_HOME=${IDEA_HOME} \ |
|
|
38 |
PTY4J_ARCH=${PTY4J_ARCH} |
29 |
SUB_FILES+= idea idea.desktop |
39 |
SUB_FILES+= idea idea.desktop |
30 |
SUB_LIST+= IDEA_HOME=${IDEA_HOME} |
40 |
SUB_LIST+= IDEA_HOME=${IDEA_HOME} |
31 |
|
41 |
|
|
|
42 |
.include <bsd.port.options.mk> |
43 |
|
44 |
# The directory we need to install Pty4J's native library in depends |
45 |
# on the install target's architecture. We rebuild libpty.so instead |
46 |
# of using one of the bundled ones which are FreeBSD 10.x only. |
47 |
.if ${ARCH} == "amd64" |
48 |
PTY4J_ARCH= x86_64 |
49 |
.elif ${ARCH} == "i386" |
50 |
PTY4J_ARCH= x86 |
51 |
.else |
52 |
PTY4J_ARCH= |
53 |
.endif |
54 |
|
55 |
.if ${PTY4J_ARCH} != "" |
56 |
# Despite what the name might suggest using the linux_x86_64 target |
57 |
# will always build libpty.so for the native platform. |
58 |
BUILD_WRKSRC= ${WRKSRC}/native |
59 |
MAKEFILE= Makefile_freebsd |
60 |
ALL_TARGET= linux_x86_64 |
61 |
.else |
62 |
# If native Pty4J support is missing IntelliJ IDEA will still work but |
63 |
# without the ability to open terminals. |
64 |
NO_BUILD= yes |
65 |
.endif |
66 |
|
32 |
do-install: |
67 |
do-install: |
33 |
${MKDIR} ${STAGEDIR}${IDEA_HOME} |
68 |
${MKDIR} ${STAGEDIR}${IDEA_HOME} |
34 |
@${TAR} -czf - -C ${WRKDIST} . | ${TAR} xzf - -C ${STAGEDIR}${IDEA_HOME} |
69 |
@${TAR} -czf - -C ${WRKDIST} . | ${TAR} xzf - -C ${STAGEDIR}${IDEA_HOME} |
Lines 44-54
Link Here
|
44 |
${STAGEDIR}${IDEA_HOME}/plugins/gradle/lib/native-platform-osx-i386-0.10.jar \ |
79 |
${STAGEDIR}${IDEA_HOME}/plugins/gradle/lib/native-platform-osx-i386-0.10.jar \ |
45 |
${STAGEDIR}${IDEA_HOME}/plugins/gradle/lib/native-platform-windows-amd64-0.10.jar \ |
80 |
${STAGEDIR}${IDEA_HOME}/plugins/gradle/lib/native-platform-windows-amd64-0.10.jar \ |
46 |
${STAGEDIR}${IDEA_HOME}/plugins/gradle/lib/native-platform-windows-i386-0.10.jar |
81 |
${STAGEDIR}${IDEA_HOME}/plugins/gradle/lib/native-platform-windows-i386-0.10.jar |
|
|
82 |
# Remove the bundled native Pty4J support libraries and replace with our own |
47 |
@${RM} -r ${STAGEDIR}${IDEA_HOME}/lib/libpty |
83 |
@${RM} -r ${STAGEDIR}${IDEA_HOME}/lib/libpty |
|
|
84 |
.if ${PTY4J_ARCH} != "" |
85 |
${MKDIR} ${STAGEDIR}${IDEA_HOME}/lib/libpty/freebsd/${PTY4J_ARCH} |
86 |
# See above why we always use freebsd/x86_64/ here |
87 |
${INSTALL_LIB} ${WRKSRC}/os/freebsd/x86_64/libpty.so ${STAGEDIR}${IDEA_HOME}/lib/libpty/freebsd/${PTY4J_ARCH}/ |
88 |
${INSTALL_DATA} ${WRKSRC}/build/pty4j-0.5.jar ${STAGEDIR}${IDEA_HOME}/lib/pty4j-0.5.jar |
89 |
.endif |
48 |
${INSTALL_SCRIPT} ${WRKDIR}/idea ${STAGEDIR}${PREFIX}/bin/idea |
90 |
${INSTALL_SCRIPT} ${WRKDIR}/idea ${STAGEDIR}${PREFIX}/bin/idea |
49 |
${INSTALL_MAN} ${FILESDIR}/idea.1 ${STAGEDIR}${PREFIX}/man/man1 |
91 |
${INSTALL_MAN} ${FILESDIR}/idea.1 ${STAGEDIR}${PREFIX}/man/man1 |
50 |
${INSTALL_DATA} ${WRKDIR}/idea.desktop ${STAGEDIR}${PREFIX}/share/applications/ |
92 |
${INSTALL_DATA} ${WRKDIR}/idea.desktop ${STAGEDIR}${PREFIX}/share/applications/ |
51 |
cd ${WRKDIST}/lib && ${JAVA_HOME}/bin/jar xf icons.jar |
93 |
cd ${WRKDIST}/lib && ${JAVA_HOME}/bin/jar xf icons.jar |
52 |
${INSTALL_DATA} ${WRKDIST}/lib/icon.png ${STAGEDIR}${IDEA_HOME}/idea.png |
94 |
${INSTALL_DATA} ${WRKDIST}/lib/icon.png ${STAGEDIR}${IDEA_HOME}/idea.png |
|
|
95 |
# Disable filewatcher warning message on IDEA startup |
96 |
${ECHO} "idea.filewatcher.disabled=true" >> ${STAGEDIR}${IDEA_HOME}/bin/idea.properties |
53 |
|
97 |
|
54 |
.include <bsd.port.mk> |
98 |
.include <bsd.port.mk> |