# Created by: Travis Poppe # $FreeBSD$ PORTNAME= wargus PORTVERSION= 2.2.5.5 PORTREVISION= 3 CATEGORIES= games MASTER_SITES= http://launchpadlibrarian.net/59493162/ DISTNAME= ${PORTNAME}_${PORTVERSION} EXTRACT_SUFX= .orig.tar.gz MAINTAINER= ports@FreeBSD.org COMMENT= Warcraft 2 mod that allows you to play Warcraft 2 with Stratagus LICENSE= GPLv2 # or later LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png RUN_DEPENDS= stratagus:${PORTSDIR}/games/stratagus NOT_FOR_ARCHS= sparc64 USES= pathfix gmake pkgconfig USE_GNOME= gtk20 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} SUB_FILES= ${PORTNAME} pkg-message CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib post-patch: @${REINPLACE_CMD} \ -e '/^CFLAGS/s|-O2|${CPPFLAGS} ${CFLAGS}|' \ -e '/^CXXFLAGS/s|$$| ${CXXFLAGS}|' \ -e '/^LDFLAGS/s|$$| ${LDFLAGS}|' \ -e '/^GTKFLAGS/s/gtk+-2.0/& x11/' \ ${WRKSRC}/Makefile do-install: ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin cd ${WRKSRC} && ${COPYTREE_SHARE} "campaigns contrib maps scripts" ${STAGEDIR}${DATADIR} ${INSTALL_PROGRAM} ${WRKSRC}/wartool ${STAGEDIR}${DATADIR} ${INSTALL_SCRIPT} ${WRKSRC}/build.sh ${STAGEDIR}${DATADIR} .include