1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/java/jxgrabkey/Makefile
Rodrigo Osorio 06df180a9e */*: Update WWW to use HTTPS for sourceforge.net projects
Homepage link is permanent redirected to its HTTPS counterpart
Issue reported by repology : https://repology.org/repository/freebsd/problems

Approved by:	portmgr (blanket)
PR:		274888
2023-11-06 11:03:47 +01:00

43 lines
1.3 KiB
Makefile

PORTNAME= jxgrabkey
PORTVERSION= 0.3.2
CATEGORIES= java devel
MASTER_SITES= SF
DISTFILES= ${PORTNAME}-${PORTVERSION}_src${EXTRACT_SUFX}
MAINTAINER= mi@aldan.algebra.com
COMMENT= JNI library for easy use of global X11 hotkeys from Java
WWW= https://jxgrabkey.sourceforge.net/
LICENSE= LGPL3
USES= tar:bz2
USE_JAVA= yes
USE_ANT= yes
OPTIONS_DEFINE= TEST
TEST_BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:java/junit \
${JAVALIBDIR}/hamcrest.jar:java/hamcrest
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 ${ANT_ARGS}
do-install:
${INSTALL_LIB} ${WRKSRC}/JXGrabKey/C++/libJXGrabKey.so ${STAGEDIR}${PREFIX}/lib/
${INSTALL_DATA} ${WRKSRC}/JXGrabKey/Java/dist/JXGrabKey.jar ${STAGEDIR}${JAVAJARDIR}/
do-test-TEST-on: build
${ECHO_MSG} Tests require a valid DISPLAY
cd ${WRKSRC}/JXGrabKey/Java && \
${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>