1 # Created by: Tobias Kortkamp <t@tobik.me>
4 PORTNAME= intellij-pty4j
9 MAINTAINER= ports@FreeBSD.org
10 COMMENT= FreeBSD-compatible replacement for IntelliJ's bundled Pty4J
13 LICENSE_FILE= ${WRKSRC}/LICENSE
18 GH_TAGNAME= 5d29b891bca0ddf122fc51e3ce066fe421b47b54
22 .include "${.CURDIR}/../intellij/common.mk"
24 .include <bsd.port.options.mk>
26 # The directory we need to install Pty4J's native library in depends
27 # on the install target's architecture. We rebuild libpty.so instead
28 # of using one of the bundled ones which are FreeBSD 10.x only.
29 .if ${ARCH} == "x86_64"
31 .elif ${ARCH} == "i386"
37 .if ${PTY4J_ARCH} != ""
38 # Despite what the name might suggest using the linux_x86_64 target
39 # will always build libpty.so for the native platform.
40 BUILD_WRKSRC= ${WRKSRC}/native
41 MAKEFILE= Makefile_freebsd
42 ALL_TARGET= linux_x86_64
43 PLIST_FILES+= ${IDEA_HOME}/lib/libpty/freebsd/${PTY4J_ARCH}/libpty.so
45 # If native Pty4J support is missing IntelliJ IDEA will still work but
46 # without the ability to open terminals.
51 .if ${PTY4J_ARCH} != ""
52 ${MKDIR} ${STAGEDIR}${IDEA_HOME}/lib/libpty/freebsd/${PTY4J_ARCH}
53 # See above why we always use freebsd/x86_64/ here
54 ${INSTALL_LIB} ${WRKSRC}/os/freebsd/x86_64/libpty.so ${STAGEDIR}${IDEA_HOME}/lib/libpty/freebsd/${PTY4J_ARCH}/
57 .include <bsd.port.mk>