aboutsummaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2016-12-11 04:18:38 +0800
committerbsam <bsam@FreeBSD.org>2016-12-11 04:18:38 +0800
commit02de42616fbcb6a47788791f7b3e84b331e4ff57 (patch)
tree5dae8e8b56985635fac9fbebcc737f1b967fe622 /comms
parent618a279644394074b58cb8b04329b91addfe50f8 (diff)
downloadfreebsd-ports-gnome-02de42616fbcb6a47788791f7b3e84b331e4ff57.tar.gz
freebsd-ports-gnome-02de42616fbcb6a47788791f7b3e84b331e4ff57.tar.zst
freebsd-ports-gnome-02de42616fbcb6a47788791f7b3e84b331e4ff57.zip
comms/java-simple-serial-connector: Do not rewrite system variable ARCH:
rename ARCH -> JSSC_ARCH. PR: 177334 Submitted by: linimon Patched by: Kyle Evans <bsdports@kyle-evans.net> (maintainer)
Diffstat (limited to 'comms')
-rw-r--r--comms/java-simple-serial-connector/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/comms/java-simple-serial-connector/Makefile b/comms/java-simple-serial-connector/Makefile
index cefd777580d6..3430aa8fb181 100644
--- a/comms/java-simple-serial-connector/Makefile
+++ b/comms/java-simple-serial-connector/Makefile
@@ -25,7 +25,9 @@ PLIST_FILES= ${JAVA_HOME}/jre/lib/ext/jssc-${PORTVERSION}.jar
.include <bsd.port.pre.mk>
.if ${ARCH} == "armv6" || ${ARCH} == "aarch64"
-ARCH= arm
+JSSC_ARCH= arm
+.else
+JSSC_ARCH= ${ARCH}
.endif
post-extract:
@@ -35,8 +37,8 @@ post-extract:
pre-build:
${RM} -r ${WRKSRC_LIBS}/*
${MKDIR} ${WRKSRC_LIBS}/freebsd
- (cd ${WRKSRC}/src/cpp/_nix_based && ${CXX} ${CXXFLAGS} ${CPPFLAGS} -shared -fPIC -o ${WRKSRC_LIBS}/freebsd/libjSSC-${MAJOR_MINOR}_${ARCH}.so jssc.cpp)
- ${STRIP_CMD} ${WRKSRC_LIBS}/freebsd/libjSSC-${MAJOR_MINOR}_${ARCH}.so
+ (cd ${WRKSRC}/src/cpp/_nix_based && ${CXX} ${CXXFLAGS} ${CPPFLAGS} -shared -fPIC -o ${WRKSRC_LIBS}/freebsd/libjSSC-${MAJOR_MINOR}_${JSSC_ARCH}.so jssc.cpp)
+ ${STRIP_CMD} ${WRKSRC_LIBS}/freebsd/libjSSC-${MAJOR_MINOR}_${JSSC_ARCH}.so
do-install:
@${MKDIR} ${STAGEDIR}${JAVA_HOME}/jre/lib/ext