1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/java/jxgrabkey/Makefile
Mikhail Teterin 8e8efec261 Add an explicit include of <unistd.h>, which is required on
some of our releases. Change to avoid building the useless
static libJXGrabKey.a (we weren't installing).

Reported by:	pkg-fallout
2016-07-03 05:17:23 +00:00

43 lines
1.2 KiB
Makefile

# Created by: Mikhail T. <mi@aldan.algebra.com>
# $FreeBSD$
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
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
do-build:
${SETENV} ${MAKE_ENV} ${MAKE} -C ${WRKSRC}/JXGrabKey/C++ \
-f ${FILESDIR}/Makefile.JXGrabKey libJXGrabKey.so
cd ${WRKSRC}/JXGrabKey/Java && ${ANT} -verbose jar
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 \
test
.include <bsd.port.mk>