2013-03-28 04:28:30 +01:00
|
|
|
# Created by: Travis Poppe <tlp@liquidx.org>
|
2004-07-04 07:29:25 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= wargus
|
2011-02-05 04:30:25 +01:00
|
|
|
PORTVERSION= 2.2.5.5
|
2014-12-25 21:54:41 +01:00
|
|
|
PORTREVISION= 3
|
2004-07-04 07:29:25 +02:00
|
|
|
CATEGORIES= games
|
2011-02-05 04:30:25 +01:00
|
|
|
MASTER_SITES= http://launchpadlibrarian.net/59493162/
|
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
EXTRACT_SUFX= .orig.tar.gz
|
2004-07-04 07:29:25 +02:00
|
|
|
|
2009-05-29 05:19:51 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-10-13 20:13:16 +02:00
|
|
|
COMMENT= Warcraft 2 mod that allows you to play Warcraft 2 with Stratagus
|
2004-07-04 07:29:25 +02:00
|
|
|
|
2014-10-22 13:48:36 +02:00
|
|
|
LICENSE= GPLv2 # or later
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2014-05-17 01:56:53 +02:00
|
|
|
|
2014-12-24 14:24:01 +01:00
|
|
|
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png
|
2007-02-27 15:02:47 +01:00
|
|
|
RUN_DEPENDS= stratagus:${PORTSDIR}/games/stratagus
|
2004-07-04 07:29:25 +02:00
|
|
|
|
2007-02-27 15:02:47 +01:00
|
|
|
NOT_FOR_ARCHS= sparc64
|
2013-09-12 02:48:38 +02:00
|
|
|
USES= pathfix gmake pkgconfig
|
2013-03-28 18:56:37 +01:00
|
|
|
USE_GNOME= gtk20
|
2004-07-04 07:29:25 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2007-02-27 15:02:47 +01:00
|
|
|
SUB_FILES= ${PORTNAME} pkg-message
|
2004-11-10 09:42:25 +01:00
|
|
|
|
2014-12-24 14:24:01 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-08-26 16:06:08 +02:00
|
|
|
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
|
2004-07-04 07:29:25 +02:00
|
|
|
do-install:
|
2014-05-17 01:56:53 +02:00
|
|
|
${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}
|
2004-07-04 07:29:25 +02:00
|
|
|
|
2007-02-27 15:02:47 +01:00
|
|
|
.include <bsd.port.mk>
|