2012-04-18 10:59:58 +02:00
|
|
|
PORTNAME= jinput
|
2019-12-08 16:14:42 +01:00
|
|
|
DISTVERSION= 2.0.10
|
|
|
|
PORTEPOCH= 1
|
2012-04-18 10:59:58 +02:00
|
|
|
CATEGORIES= games java
|
|
|
|
|
2019-12-08 16:14:42 +01:00
|
|
|
MAINTAINER= voidanix@420blaze.it
|
2012-04-18 10:59:58 +02:00
|
|
|
COMMENT= Java Game Controller API
|
|
|
|
|
2019-12-08 16:14:42 +01:00
|
|
|
LICENSE= BSD2CLAUSE
|
2012-04-18 10:59:58 +02:00
|
|
|
|
2019-12-08 16:14:42 +01:00
|
|
|
BUILD_DEPENDS= ${JAVAJARDIR}/jutils/jutils.jar:games/jutils \
|
|
|
|
mvn:devel/maven
|
|
|
|
RUN_DEPENDS= ${JAVAJARDIR}/jutils/jutils.jar:games/jutils
|
2012-04-18 10:59:58 +02:00
|
|
|
|
2019-12-08 16:14:42 +01:00
|
|
|
# Using a fork because of maven dependencies
|
|
|
|
USE_GITLAB= yes
|
|
|
|
GL_ACCOUNT= voidanix
|
|
|
|
GL_COMMIT= bf22dd975bbba31f01895332255b63df376894e6
|
2012-04-18 10:59:58 +02:00
|
|
|
|
2019-12-08 16:14:42 +01:00
|
|
|
USE_JAVA= 8+
|
|
|
|
|
|
|
|
PLIST_DIRS= ${JAVAJARDIR}/${PORTNAME}
|
2022-07-19 07:51:39 +02:00
|
|
|
PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}/${PORTNAME}.jar
|
2019-12-08 16:14:42 +01:00
|
|
|
|
|
|
|
MAVEN_ARGS= -Dmaven.antrun.skip -Dmaven.javadoc.skip -Dmaven.source.skip -Dmaven.test.skip -DskipTests -DskipITs
|
|
|
|
MAVEN_REPO= -Dmaven.repo.local=${WRKSRC}/repository
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
${CP} ${JAVAJARDIR}/jutils/jutils.jar ${WRKSRC}/repository/net/java/jutils/jutils/1/jutils-1.jar
|
2022-07-19 07:51:39 +02:00
|
|
|
${SED} -i -e '/example/d' ${WRKSRC}/pom.xml # example/ReadAllEvents.java:[5,28] cannot find symbol ...
|
2012-04-18 10:59:58 +02:00
|
|
|
|
2013-11-17 01:28:16 +01:00
|
|
|
do-build:
|
2019-12-08 16:14:42 +01:00
|
|
|
cd ${WRKSRC}; \
|
|
|
|
${SETENV} mvn -P windows,linux,osx,wintab ${MAVEN_REPO} ${MAVEN_ARGS} --offline package
|
2013-11-17 01:28:16 +01:00
|
|
|
|
2012-04-18 10:59:58 +02:00
|
|
|
do-install:
|
2013-11-17 01:28:16 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}
|
2019-12-08 16:14:42 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/uberjar/target/${PORTNAME}-${PORTVERSION}-SNAPSHOT.jar \
|
|
|
|
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}/${PORTNAME}.jar
|
2012-04-18 10:59:58 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|