forked from Lainports/freebsd-ports
java/jxgrabkey: overwrite source- and target-versions on command-line.
The author's properties file (from 2010) sets source- and target-versions to 1.5, which is too old for JDK-1.7, for example. Instead of patching the properties-file, overwrite the two settings on command-line. Use the conservative value of 1.7...
This commit is contained in:
parent
da83830681
commit
c0eef0ceec
1 changed files with 3 additions and 1 deletions
|
|
@ -20,11 +20,12 @@ TEST_BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:java/junit \
|
|||
MAKE_ENV+= JAVA_HOME=${JAVA_HOME} OPSYS=${OPSYS}
|
||||
PLIST_FILES= %%JAVAJARDIR%%/JXGrabKey.jar lib/libJXGrabKey.so
|
||||
USE_LDCONFIG= yes
|
||||
ANT_ARGS= -Djavac.source=1.7 -Djavac.target=1.7
|
||||
|
||||
do-build:
|
||||
${SETENV} ${MAKE_ENV} ${MAKE} -C ${WRKSRC}/JXGrabKey/C++ \
|
||||
-f ${FILESDIR}/Makefile.JXGrabKey libJXGrabKey.so
|
||||
cd ${WRKSRC}/JXGrabKey/Java && ${ANT} -verbose jar
|
||||
cd ${WRKSRC}/JXGrabKey/Java && ${ANT} -verbose jar ${ANT_ARGS}
|
||||
|
||||
do-install:
|
||||
${INSTALL_LIB} ${WRKSRC}/JXGrabKey/C++/libJXGrabKey.so ${STAGEDIR}${PREFIX}/lib/
|
||||
|
|
@ -36,6 +37,7 @@ do-test-TEST-on: build
|
|||
${SETENV} CLASSPATH=${JAVALIBDIR}/junit.jar:${JAVALIBDIR}/hamcrest.jar \
|
||||
LD_LIBRARY_PATH=${WRKSRC}/JXGrabKey/C++ \
|
||||
${ANT} -Djavac.classpath=${JAVALIBDIR}/junit.jar \
|
||||
${ANT_ARGS} \
|
||||
test
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue