summaryrefslogtreecommitdiff
path: root/games/freecol/Makefile
blob: 36cca2fd6b13911c2ee9320a7dce0e039dd253a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Created by: Alex Dupre <ale@FreeBSD.org>
# $FreeBSD$

PORTNAME=	freecol
PORTVERSION=	0.10.7
PORTREVISION=	1
CATEGORIES=	games java
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	ale@FreeBSD.org
COMMENT=	An open source version of Colonization

LICENSE=	GPLv2

USE_ZIP=	yes
NO_BUILD=	yes
SUB_FILES=	freecol
USE_JAVA=	yes
JAVA_VERSION=	1.6+

.if defined(NOPORTDATA)
IGNORE=		needs data file to run, unset NOPORTDATA
.endif

PLIST_FILES=	bin/freecol
PORTDATA=	*
PORTDOCS=	*

DESKTOP_ENTRIES="FreeCol" "${COMMENT}" "${DATADIR}/freecol.xpm" "freecol" "Game;StrategyGame;" "false"

.include <bsd.port.options.mk>

post-extract:
	@${MV} ${WRKDIR}/freecol ${WRKSRC}

do-install:
	${INSTALL_SCRIPT} ${WRKDIR}/freecol ${PREFIX}/bin/
	@${MKDIR} ${DATADIR}
	@${INSTALL_DATA} ${WRKSRC}/FreeCol.jar ${DATADIR}/
	@${INSTALL_DATA} ${WRKSRC}/freecol.xpm ${DATADIR}/
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR}/)
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} jars ${DATADIR}/)
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	@${INSTALL_DATA} ${WRKSRC}/FreeCol.pdf ${DOCSDIR}/
.endif

.include <bsd.port.mk>