1997-07-09 09:39:09 +00:00
|
|
|
# New ports collection makefile for: freeciv
|
|
|
|
# Date created: Jun 20 1997
|
1997-07-09 10:11:47 +00:00
|
|
|
# Whom: ada@bsd.org
|
1997-07-09 09:39:09 +00:00
|
|
|
#
|
1999-08-25 06:06:33 +00:00
|
|
|
# $FreeBSD$
|
1997-07-09 09:39:09 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 06:43:02 +00:00
|
|
|
PORTNAME= freeciv
|
2008-01-26 10:35:44 +00:00
|
|
|
PORTVERSION= 2.1.3
|
1997-07-09 09:39:09 +00:00
|
|
|
CATEGORIES= games
|
2007-07-28 16:00:35 +00:00
|
|
|
MASTER_SITES= SF
|
1997-07-09 09:39:09 +00:00
|
|
|
|
2006-08-22 19:01:05 +00:00
|
|
|
MAINTAINER= infofarmer@FreeBSD.org
|
|
|
|
COMMENT= Free turn-based multiplayer strategy
|
2005-05-05 18:44:28 +00:00
|
|
|
|
2007-12-19 23:31:36 +00:00
|
|
|
RUN_DEPENDS= hicolor-icon-theme>=0:${PORTSDIR}/misc/hicolor-icon-theme
|
|
|
|
|
2004-02-04 04:36:30 +00:00
|
|
|
USE_GETTEXT= yes
|
2007-12-19 23:31:36 +00:00
|
|
|
USE_GMAKE= yes
|
1999-02-03 11:12:01 +00:00
|
|
|
USE_BZIP2= yes
|
2005-05-07 10:44:12 +00:00
|
|
|
USE_PYTHON= yes
|
1999-01-30 17:48:46 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2007-07-28 16:00:35 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
CONFIGURE_ARGS= --with-libiconv-prefix=${PREFIX} --program-transform-name=
|
2007-12-19 23:31:36 +00:00
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
PORT_VERBS= civ
|
2000-10-05 06:57:56 +00:00
|
|
|
|
2005-05-09 06:01:40 +00:00
|
|
|
MAN6= civserver.6 civclient.6
|
|
|
|
|
2006-08-22 19:01:05 +00:00
|
|
|
.ifndef WITHOUT_X11
|
|
|
|
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
|
2007-12-19 23:31:36 +00:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
ggz.5:${PORTSDIR}/games/libggz \
|
|
|
|
ggz-gtk.1:${PORTSDIR}/games/ggz-gtk-client \
|
|
|
|
ggzcore.9:${PORTSDIR}/games/ggz-client-libs \
|
|
|
|
ggzmod.5:${PORTSDIR}/games/ggz-client-libs
|
2006-08-22 19:01:05 +00:00
|
|
|
USE_XPM= yes
|
2007-07-28 16:00:35 +00:00
|
|
|
USE_SDL= mixer
|
|
|
|
USE_GNOME= gtk20
|
2007-12-19 23:31:36 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-client=gtk
|
2007-07-28 16:00:35 +00:00
|
|
|
.ifndef WITHOUT_ESOUND
|
|
|
|
USE_GNOME+= esound
|
1999-09-28 17:23:29 +00:00
|
|
|
.else
|
2007-07-28 16:00:35 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-esd
|
2005-05-07 10:44:12 +00:00
|
|
|
.endif
|
2007-07-28 16:28:37 +00:00
|
|
|
CONFLICTS= freeciv-nox11-[0-9]*
|
2004-05-03 19:22:02 +00:00
|
|
|
.else
|
2007-12-19 23:31:36 +00:00
|
|
|
PLIST= ${PKGDIR}/pkg-plist.nox11
|
2007-07-28 16:00:35 +00:00
|
|
|
PKGNAMESUFFIX?= -nox11
|
|
|
|
CONFIGURE_ARGS+=--enable-client=no
|
2007-07-28 16:28:37 +00:00
|
|
|
CONFLICTS= freeciv-[0-9]*
|
2004-05-03 19:22:02 +00:00
|
|
|
.endif
|
|
|
|
|
2006-04-30 19:17:46 +00:00
|
|
|
post-patch:
|
2007-07-28 16:00:35 +00:00
|
|
|
@${REINPLACE_CMD} -e '/test.*==/s|==|=|' ${WRKSRC}/configure
|
|
|
|
@${FIND} ${WRKSRC} -name Makefile.in|${XARGS} ${REINPLACE_CMD} -e\
|
|
|
|
'/pkgdatadir/s|$$[(]datadir[)]/@PACKAGE@|${DATADIR}|'
|
2006-04-30 19:17:46 +00:00
|
|
|
|
2007-12-22 11:21:03 +00:00
|
|
|
.ifndef WITHOUT_X11
|
|
|
|
post-install:
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/data/civclient.dsc ${DATADIR}/
|
|
|
|
.endif
|
|
|
|
|
2007-07-28 16:00:35 +00:00
|
|
|
.include <bsd.port.mk>
|