diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2008-07-23 11:05:07 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2008-07-23 11:05:07 +0000 |
commit | 3553171db756a89005e661a4a6a10a8e4fe30481 (patch) | |
tree | 2ca3b33a9085e0d5a75009724a1ca3734cecec0c /games/stonesoup/Makefile | |
parent | e4c1357f817f1be0cee6c9c08f7558a204179749 (diff) | |
download | ports-3553171db756a89005e661a4a6a10a8e4fe30481.tar.gz ports-3553171db756a89005e661a4a6a10a8e4fe30481.zip |
Notes
Diffstat (limited to 'games/stonesoup/Makefile')
-rw-r--r-- | games/stonesoup/Makefile | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/games/stonesoup/Makefile b/games/stonesoup/Makefile new file mode 100644 index 000000000000..d31dae57e37a --- /dev/null +++ b/games/stonesoup/Makefile @@ -0,0 +1,80 @@ +# New ports collection makefile for: dcss +# Date created: 2008-07-11 +# Whom: Tobias Rehbein <tobias.rehbein@web.de> +# +# $FreeBSD$ +# + +PORTNAME= stonesoup +PORTVERSION= 0.4.1 +CATEGORIES= games +MASTER_SITES= SF +MASTER_SITE_SUBDIR= crawl-ref +DISTNAME= stone_soup-${PORTVERSION}-src +EXTRACT_SUFX= .tbz2 + +MAINTAINER= tobias.rehbein@web.de +COMMENT= Dungeon Crawl Stone Soup - a fun, free rogue-like game + +USE_BISON= build +USE_GMAKE= yes +MAKE_ENV= CC=${CC} CXX=${CXX} + +SAVEDIR?= /var/games/${PORTNAME} +WRKSRC= ${WRKDIR}/${DISTNAME}/source/ + +SUB_FILES= README.FreeBSD +PLIST_SUB= SAVEDIR="${SAVEDIR}" + +OPTIONS= X11 "X11 support" off \ + SOUND "sound support" off \ + LUA_BINDINGS "LUA bindings for user scripts" on + +.include <bsd.port.pre.mk> + +.if defined(WITH_X11) +USE_XORG= x11 +LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png +MAKEFILE= makefile.x11 +PLIST_SUB+= X11="" +.else +MAKEFILE= makefile.unix +PLIST_SUB+= X11="@comment " +.endif + +.if defined(WITH_SOUND) +RUN_DEPENDS+= sox:${PORTSDIR}/audio/sox +.endif + +post-patch: + @${REINPLACE_CMD} -e "s,%%MAKEFILE_SEL%%,${MAKEFILE_SEL}," ${WRKSRC}/makefile +.for makefile in makefile.unix makefile.x11 + @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/${makefile} + @${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," ${WRKSRC}/${makefile} + @${REINPLACE_CMD} -e "s,%%SAVEDIR%%,${SAVEDIR}," ${WRKSRC}/${makefile} + @${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE}," ${WRKSRC}/${makefile} +.if defined(WITHOUT_LUA_BINDINGS) + @${REINPLACE_CMD} -e "s,-DCLUA_BINDINGS,," ${WRKSRC}/${makefile} +.endif +.endfor + @${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE}," ${WRKSRC}/AppHdr.h +.if defined(WITH_SOUND) + @${REINPLACE_CMD} -e "s,%%SOUND%%,," ${WRKSRC}/AppHdr.h +.else + @${REINPLACE_CMD} -e "s,%%SOUND%%,// ," ${WRKSRC}/AppHdr.h +.endif + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for doc in CREDITS README.txt licence.txt + ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/${doc} ${DOCSDIR} +.endfor + ${INSTALL_DATA} ${WRKDIR}/README.FreeBSD ${DOCSDIR} +.endif +.if !defined(NOPORTEXAMPLES) + ${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${DATADIR}/settings/init.txt ${EXAMPLESDIR}/sample.crawlrc +.endif + +.include <bsd.port.post.mk> |