# Created by: Jasper Jongmans # $FreeBSD$ PORTNAME= crossfire PORTVERSION= 1.70.0 PORTREVISION= 4 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION} PKGNAMESUFFIX= -server DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}.maps${EXTRACT_SUFX} MAINTAINER= games@FreeBSD.org COMMENT= Server for multiplayer graphical arcade and adventure game BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash RUN_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \ libpng15.so:${PORTSDIR}/graphics/png \ libsablot.so:${PORTSDIR}/textproc/sablotron LICENSE= GPLv2 GPLv3 LICENSE_COMB= dual USES= gmake perl5 uidfix USE_XORG= ice sm x11 xaw xext xmu xpm xt USE_SQLITE= 3 USE_PYTHON= yes USE_AUTOTOOLS= libtool CONFIGURE_ARGS= --with-check=no --localstatedir=/var/games CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} PORTDOCS= * DOCSRCDIR1= ${WRKSRC} DOC_FILES1= AUTHORS ChangeLog DEVELOPERS NEWS README DOCSRCDIR2= ${WRKSRC}/doc DOCSDIR2= ${DOCSDIR}/doc DOC_FILES2= PlayerStats README RunTimeCommands SurvivalGuide *.doc *.ps \ metaserver multigod plugins spellcasters_guide_to_runes OPTIONS_DEFINE= DOCS .include post-patch: @${FIND} ${WRKSRC} -name 'Makefile.in'| ${XARGS} ${REINPLACE_CMD} -e \ 's|-ldl||g' @${REINPLACE_CMD} -e 's|^#.*/bin/sh|#! ${LOCALBASE}/bin/bash|g; \ s|-ldl||g; \ s|python[{].*[}]|${PYTHON_VERSION}|g; \ s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e '//d' ${WRKSRC}/socket/metaserver.c @${REINPLACE_CMD} -e 's| /usr/bin/perl|${LOCALBASE}/bin/perl|' \ ${WRKSRC}/lib/adm/map_expand.pl post-install: .for l in cflogger citylife cfpython cfanim cfnewspaper ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/crossfire/plugins/${l}.so .endfor @${MKDIR} ${STAGEDIR}${DATADIR}/maps @(cd ${WRKDIR}/maps && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/maps) @${FIND} ${STAGEDIR}${PREFIX} -exec ${GREP} -q "#!/usr/bin/perl" {} \; \ -exec ${REINPLACE_CMD} -e \ 's|#!/usr/bin/perl|#!${LOCALBASE}/bin/perl|g' {} \; @${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' \ ${STAGEDIR}${PREFIX}/bin/crossloop.web @${FIND} ${STAGEDIR}${PREFIX} -name "*.bak" -delete @${CHMOD} 775 ${STAGEDIR}/var/games/crossfire @${CHMOD} 664 ${STAGEDIR}/var/games/crossfire/* .for d in account datafiles maps players template-maps unique-items @${CHMOD} 774 ${STAGEDIR}/var/games/crossfire/${d} .endfor .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} @${FIND} ${WRKSRC}/doc -name 'Makefile*' -delete .for d in playbook playbook-html spoiler spoiler-html @(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DOCSDIR2}) .endfor ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2} .endif .include ='id' value='2518d41871addf7ebf1a86bb13ba0c523f9897ae'/>
Commit message (Expand)AuthorAgeFilesLines
* I've committed MASTER_SITES changes proposed by Marin Wilke some days ago,garga2006-05-311-1/+2
* Make it fetchable againgarga2006-05-241-1/+1
* - Add SHA256pav2005-11-261-0/+1