Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pseudo terminal support for devel/jetbrains-*. WWW: https://github.com/JetBrains/pty4j PR: 268152
- Loading branch information
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
PORTNAME= pty4j | ||
PORTVERSION= 0.12.10 | ||
CATEGORIES= devel java | ||
PKGNAMEPREFIX= jetbrains- | ||
DIST_SUBDIR= jetbrains | ||
|
||
MAINTAINER= dmitry.wagin@ya.ru | ||
COMMENT= Pty4J's native library | ||
WWW= https://github.com/JetBrains/pty4j | ||
|
||
LICENSE= EPL | ||
LICENSE_FILE= ${WRKSRC}/LICENSE | ||
|
||
USES= gmake | ||
|
||
USE_GITHUB= yes | ||
GH_ACCOUNT= JetBrains | ||
GH_PROJECT= pty4j | ||
GH_TAGNAME= aa7f15307744d5d33a44bd72b42513327c879fd3 | ||
|
||
.include <bsd.port.options.mk> | ||
|
||
# The directory we need to install Pty4J's native library in depends | ||
# on the install target's architecture. We rebuild libpty.so instead | ||
# of using one of the bundled ones which are FreeBSD 10.x only. | ||
.if ${ARCH} == "amd64" | ||
PTY4J_ARCH= x86-64 | ||
.elif ${ARCH} == "i386" | ||
PTY4J_ARCH= x86 | ||
.else | ||
PTY4J_ARCH= | ||
.endif | ||
|
||
.if ${PTY4J_ARCH} != "" | ||
# Despite what the name might suggest using the linux_x86_64 target | ||
# will always build libpty.so for the native platform. | ||
BUILD_WRKSRC= ${WRKSRC}/native | ||
MAKEFILE= Makefile_freebsd | ||
ALL_TARGET= linux_x86_64 | ||
PLIST_FILES+= lib/pty4j/freebsd/${PTY4J_ARCH}/libpty.so | ||
.else | ||
# If native Pty4J support is missing. | ||
NO_BUILD= yes | ||
.endif | ||
|
||
do-install: | ||
.if ${PTY4J_ARCH} != "" | ||
${MKDIR} ${STAGEDIR}${PREFIX}/lib/pty4j/freebsd/${PTY4J_ARCH} | ||
# See above why we always use freebsd/x86-64/ here | ||
${INSTALL_LIB} ${WRKSRC}/os/freebsd/x86-64/libpty.so ${STAGEDIR}${PREFIX}/lib/pty4j/freebsd/${PTY4J_ARCH}/ | ||
.endif | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1670074422 | ||
SHA256 (jetbrains/JetBrains-pty4j-0.12.10-aa7f15307744d5d33a44bd72b42513327c879fd3_GH0.tar.gz) = 386a5057f4d5b33139f83bd8ed57a703714fa71c649ab750f8a9839b5133c306 | ||
SIZE (jetbrains/JetBrains-pty4j-0.12.10-aa7f15307744d5d33a44bd72b42513327c879fd3_GH0.tar.gz) = 1586412 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Pty4J - Pseudo terminal(PTY) implementation in Java. |