diff options
Diffstat (limited to 'games/pcgen/Makefile')
-rw-r--r-- | games/pcgen/Makefile | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/games/pcgen/Makefile b/games/pcgen/Makefile new file mode 100644 index 000000000000..1f9d74c9c381 --- /dev/null +++ b/games/pcgen/Makefile @@ -0,0 +1,55 @@ +# Ports collection makefile for: PCGen +# Date created: 17 November 2003 +# Whom: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr> +# +# $FreeBSD$ + +PORTNAME= pcgen +PORTVERSION= 5.4.0 +CATEGORIES= games java +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= pcgen +DISTFILES= pcgen${PORTVERSION:S/.//g:S/0$//}_part1of3.zip \ + pcgen${PORTVERSION:S/.//g:S/0$//}_part2of3.zip \ + pcgen${PORTVERSION:S/.//g:S/0$//}_part3of3.zip \ + skin.zip pdf.zip + +MAINTAINER= herve.quiroz@esil.univ-mrs.fr +COMMENT= A Java-based RPG character generator and maintenance program + +USE_ZIP= YES +USE_JAVA= 1.4+ +NO_BUILD= YES + +WRKSRC= ${WRKDIR} +PORTDESTDIR= ${JAVASHAREDIR}/${PORTNAME} +WRKDIRS= characters data lib outputsheets system +WRKDOCSDIR= ${WRKSRC}/docs +WRKSCRIPT= ${WRKSRC}/pcgen.bsd.sh +PLIST_SUB+= T=${PORTDESTDIR:S/^${PREFIX}//} + +post-extract: + ${RM} -rf ${WRKSRC}/lib/themes/CVS + ${RM} -rf ${WRKSRC}/lib/CVS + +do-install: + @${ECHO_CMD} -n ">> Installing..." + @cd ${WRKSRC} && ${FIND} ${WRKDIRS} -type d -exec ${MKDIR} ${PORTDESTDIR}/{} ";" + @cd ${WRKSRC} && ${FIND} ${WRKDIRS} -type f -exec ${INSTALL_DATA} {} ${PORTDESTDIR}/{} ";" + @cd ${WRKSRC} && ${INSTALL_DATA} pcgen.jar ${PORTDESTDIR} + @cd ${WRKSRC} && ${SED} "s|^java|${JAVA}|" pcgen.sh | ${SED} 's|`dirname $$0`|${PORTDESTDIR}|' > ${WRKSCRIPT} + @cd ${WRKSRC} && ${INSTALL_SCRIPT} ${WRKSCRIPT} ${PORTDESTDIR}/pcgen.sh + @${LN} -fs ${PORTDESTDIR}/pcgen.sh ${PREFIX}/bin/pcgen.sh + @${ECHO_CMD} " [DONE]" + @${ECHO_CMD} -n ">> Configuring..." + @${ECHO_CMD} "pcgen.filepaths=user" > ${PORTDESTDIR}/filepaths.ini + @${ECHO_CMD} " [DONE]" + +.if !defined(NOPORTDOCS) + @${ECHO_CMD} -n ">> Installing documentation..." + @cd ${WRKDOCSDIR} && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} ";" + @cd ${WRKDOCSDIR} && ${FIND} . -type f -exec ${INSTALL_MAN} {} ${DOCSDIR}/{} ";" + @${ECHO_CMD} " [DONE]" +.endif + +.include <bsd.port.mk> |