1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

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)
This commit is contained in:
Boris Samorodov 2016-12-10 20:18:38 +00:00
parent fb6546cf8e
commit 019bc116c7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=428322

View File

@ -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