41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.13 2019/07/12 20:46:17 sthen Exp $
|
|
|
|
COMMENT = free Colonization clone
|
|
DISTNAME = freecol-0.11.6
|
|
EXTRACT_SUFX = .zip
|
|
CATEGORIES = games java x11
|
|
REVISION = 2
|
|
|
|
HOMEPAGE = http://www.freecol.org/
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=freecol/}
|
|
|
|
MODULES = java
|
|
MODJAVA_VER = 1.8+
|
|
|
|
RUN_DEPENDS = java/javaPathHelper
|
|
|
|
NO_BUILD = Yes
|
|
NO_TEST = Yes
|
|
WRKDIST = ${WRKDIR}/freecol
|
|
|
|
do-install:
|
|
${SUBST_PROGRAM} ${FILESDIR}/freecol ${PREFIX}/bin/freecol
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/freecol
|
|
${INSTALL_DATA} ${WRKSRC}/{FreeCol.jar,freecol.xpm} ${PREFIX}/share/freecol
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/freecol
|
|
${INSTALL_DATA} ${WRKSRC}/FreeCol.pdf ${PREFIX}/share/doc/freecol
|
|
cd ${WRKSRC} && find * -type d -exec ${INSTALL_DATA_DIR} \
|
|
"${PREFIX}/share/freecol/{}" \;
|
|
cd ${WRKSRC}/data && find * -type d -exec ${INSTALL_DATA_DIR} \
|
|
"${PREFIX}/share/freecol/data/{}" \;
|
|
cd ${WRKSRC}/data && find * -type f -exec ${INSTALL_DATA} \
|
|
"{}" "${PREFIX}/share/freecol/data/{}" \;
|
|
cd ${WRKSRC}/jars && find * -type f -exec ${INSTALL_DATA} \
|
|
"{}" "${PREFIX}/share/freecol/jars/{}" \;
|
|
|
|
.include <bsd.port.mk>
|