1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/games/jin/Makefile
2024-05-18 11:22:43 +03:00

44 lines
1.0 KiB
Makefile

PORTNAME= jin
PORTVERSION= 2.14.1
PORTREVISION= 5
CATEGORIES= games java
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
MAINTAINER= ports@virtual-estates.net
COMMENT= Graphical client for chess servers
WWW= https://www.jinchess.com/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/src/free/jin/legal/copyright.txt
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= ${JAVAJARDIR}/bsh.jar:lang/bsh
USES= dos2unix
DOS2UNIX_GLOB= *.java *.txt
USE_JAVA= yes
USE_ANT= yes
MAKE_ARGS+= -lib ${JAVAJARDIR}/bsh.jar
SUB_FILES= ${PORTNAME}
SUB_LIST= JINJAR=${JINJAR:Q}
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
EXTRACT_AFTER_ARGS= --exclude 'bsh*.jar' \
--exclude os-specific/unix/jin \
--exclude jgoodies-windows.jar
JINJAR= ${PORTNAME}.jar
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
do-install:
${FIND} ${WRKSRC} -empty -delete
cd ${WRKSRC}/build && ${COPYTREE_BIN} . ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>