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-12-04 20:36:58 +00:00
|
|
|
PORTVERSION= 2.1.8
|
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
|
|
|
|
2008-09-24 08:32:58 +00:00
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
2006-08-22 19:01:05 +00:00
|
|
|
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
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
USE_XORG= xpm
|
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
|
|
|
|
|
2008-04-28 16:03:11 +00:00
|
|
|
.ifndef WITHOUT_AUTH
|
|
|
|
.ifndef WITHOUT_MYSQL
|
|
|
|
CONFIGURE_ARGS+= --enable-auth --with-mysql-prefix=${LOCALBASE}
|
|
|
|
USE_MYSQL= yes
|
|
|
|
.endif
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-auth
|
|
|
|
.endif
|
|
|
|
|
2006-04-30 19:17:46 +00:00
|
|
|
post-patch:
|
2008-02-27 16:12:11 +00:00
|
|
|
@${REINPLACE_CMD} -e '/test.*==/s|==|=|;\
|
|
|
|
/^LIBS/s|mixer|mixer $$SDL_LIBS|g' ${WRKSRC}/configure
|
2007-07-28 16:00:35 +00:00
|
|
|
@${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>
|