Update www/domoticz to version 2020.2
[dports.git] / java / intellij-pty4j / Makefile
1 # Created by: Tobias Kortkamp <t@tobik.me>
2 # $FreeBSD$
3
4 PORTNAME=       intellij-pty4j
5 PORTVERSION=    0.5
6 PORTREVISION=   1
7 CATEGORIES=     java devel
8
9 MAINTAINER=     ports@FreeBSD.org
10 COMMENT=        FreeBSD-compatible replacement for IntelliJ's bundled Pty4J
11
12 LICENSE=        EPL
13 LICENSE_FILE=   ${WRKSRC}/LICENSE
14
15 USE_GITHUB=     yes
16 GH_ACCOUNT=     traff
17 GH_PROJECT=     pty4j
18 GH_TAGNAME=     5d29b891bca0ddf122fc51e3ce066fe421b47b54
19
20 USES=   gmake
21
22 .include "${.CURDIR}/../intellij/common.mk"
23
24 .include <bsd.port.options.mk>
25
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"
30 PTY4J_ARCH=     x86_64
31 .elif ${ARCH} == "i386"
32 PTY4J_ARCH=     x86
33 .else
34 PTY4J_ARCH=
35 .endif
36
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
44 .else
45 # If native Pty4J support is missing IntelliJ IDEA will still work but
46 # without the ability to open terminals.
47 NO_BUILD=       yes
48 .endif
49
50 do-install:
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}/
55 .endif
56
57 .include <bsd.port.mk>