summaryrefslogtreecommitdiffstats
path: root/games/pcgen/Makefile
blob: 75dff811ab8ea4b1a6bebe90ced5c37d6bd146c6 (plain)
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
# $FreeBSD$

PORTNAME=	pcgen
PORTVERSION=	6.02.0
CATEGORIES=	games java
MASTER_SITES=	SF/${PORTNAME}/PCGen%20Stable/${PORTVERSION}
DISTNAME=	pcgen${PORTVERSION:S/.//g}0_full

MAINTAINER=	eadler@FreeBSD.org
COMMENT=	Java-based RPG character generator and maintenance program

RUN_DEPENDS=	java:${PORTSDIR}/java/javavmwrapper

USE_ZIP=	YES
WRKSRC=		${WRKDIR}/${PORTNAME}${PORTVERSION:S/.//g}0
USE_JAVA=	YES
JAVA_VERSION=	1.6+
NO_BUILD=	YES

DATADIR=	${JAVASHAREDIR}/${PORTNAME}
DATAFILES=	batch-convert.jar characters data filepaths.ini lib \
		logging.properties outputsheets pcgen.jar plugins preview system

SUB_FILES=	pcgen.sh

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

PORTDOCS=	*

do-install:
	cd ${WRKSRC} && ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} ";"
	cd ${WRKSRC} && ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} "{}" ${STAGEDIR}${DATADIR}/"{}" ";"
	${INSTALL_SCRIPT} ${WRKDIR}/pcgen.sh ${STAGEDIR}${PREFIX}/bin/pcgen
.if ${PORT_OPTIONS:MDOCS}
	cd "${WRKSRC}/docs" && ${COPYTREE_SHARE} . "${STAGEDIR}${DOCSDIR}"
	${INSTALL_DATA} "${WRKSRC}"/*.html "${STAGEDIR}${DOCSDIR}"
.endif


.include <bsd.port.mk>
OpenPOWER on IntegriCloud