2006-08-02 05:36:20 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.58 2006/08/02 09:36:20 espie Exp $
|
2001-05-05 21:06:09 -04:00
|
|
|
|
2004-06-02 08:40:42 -04:00
|
|
|
COMMENT= "Civilization clone for X11; multiplayer; game server"
|
|
|
|
COMMENT-client= "Freeciv client"
|
|
|
|
COMMENT-share= "shared data files for Freeciv"
|
2000-03-03 05:39:42 -05:00
|
|
|
|
2006-03-12 19:02:10 -05:00
|
|
|
VERSION= 2.0.8
|
2004-06-02 08:40:42 -04:00
|
|
|
DISTNAME= freeciv-${VERSION}
|
2005-10-07 16:52:09 -04:00
|
|
|
PKGNAME= freeciv-server-${VERSION}
|
2006-06-13 09:19:08 -04:00
|
|
|
PKGNAME-client= freeciv-client-${VERSION}p0
|
2005-10-07 16:52:09 -04:00
|
|
|
PKGNAME-share= freeciv-share-${VERSION}
|
1998-05-19 19:44:24 -04:00
|
|
|
CATEGORIES= games
|
2000-07-22 14:56:22 -04:00
|
|
|
HOMEPAGE= http://www.freeciv.org/
|
1998-05-19 19:44:24 -04:00
|
|
|
|
2005-09-06 18:28:10 -04:00
|
|
|
MAINTAINER= Rui Reis <rui@rui.cx>
|
2005-07-17 15:28:41 -04:00
|
|
|
|
2001-08-23 21:59:19 -04:00
|
|
|
# GPL
|
2000-03-05 13:30:21 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2005-07-09 06:36:18 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=freeciv/} \
|
|
|
|
ftp://ftp.freeciv.org/pub/freeciv/stable/
|
2002-07-17 17:08:09 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2000-07-22 14:56:22 -04:00
|
|
|
|
2004-06-02 08:40:42 -04:00
|
|
|
PSEUDO_FLAVORS= no_x11
|
2000-10-04 01:39:18 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2004-06-02 08:40:42 -04:00
|
|
|
MULTI_PACKAGES= -share
|
2004-06-10 02:54:48 -04:00
|
|
|
SUBPACKAGE?=
|
2004-06-02 08:40:42 -04:00
|
|
|
|
2004-08-10 06:36:36 -04:00
|
|
|
MODULES= devel/gettext
|
2005-07-09 06:36:18 -04:00
|
|
|
WANTLIB= c m z ncurses readline
|
2001-08-23 21:59:19 -04:00
|
|
|
|
2005-07-09 06:36:18 -04:00
|
|
|
.if !${FLAVOR:L:Mno_x11}
|
2004-06-02 08:40:42 -04:00
|
|
|
MULTI_PACKAGES+=-client
|
1998-05-19 19:44:24 -04:00
|
|
|
|
2004-06-02 08:40:42 -04:00
|
|
|
BUILD_DEPENDS+= :pkgconfig-*:devel/pkgconfig
|
2006-08-02 05:36:20 -04:00
|
|
|
LIB_DEPENDS= gtk-x11-2.0.>=0.5,gdk-x11-2.0.>=0.5,gdk_pixbuf-2.0.>=0.5::x11/gtk+2 \
|
|
|
|
esd.>=2::audio/esound
|
2005-07-09 06:36:18 -04:00
|
|
|
CONFIGURE_ARGS= --enable-client=gtk2 \
|
|
|
|
--disable-sdl-mixer \
|
|
|
|
--with-esd-prefix=${LOCALBASE}
|
2006-06-13 09:19:08 -04:00
|
|
|
WANTLIB-client= X11 atk-1.0.0.0 fontconfig freetype audiofile \
|
2005-07-09 06:36:18 -04:00
|
|
|
glib-2.0.0.0 gmodule-2.0.0.0 gobject-2.0.0.0 pango-1.0.0.0 \
|
2006-06-13 09:19:08 -04:00
|
|
|
pangocairo-1.0.0.0 pangoft2-1.0.0.0 audiofile cairo
|
2005-07-09 06:36:18 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS= --enable-client=no
|
|
|
|
.endif
|
2004-06-02 08:40:42 -04:00
|
|
|
|
2005-07-09 06:36:18 -04:00
|
|
|
.if defined(PACKAGING)
|
|
|
|
. if ${SUBPACKAGE} == "-share"
|
|
|
|
PKG_ARCH= *
|
|
|
|
MODULES=
|
|
|
|
LIB_DEPENDS=
|
|
|
|
WANTLIB=
|
|
|
|
. elif ${SUBPACKAGE} == "-client"
|
|
|
|
WANTLIB+= ${WANTLIB-client}
|
2004-06-02 08:40:42 -04:00
|
|
|
. else
|
2005-07-09 06:36:18 -04:00
|
|
|
LIB_DEPENDS=
|
2004-06-02 08:40:42 -04:00
|
|
|
. endif
|
|
|
|
|
2005-07-09 06:36:18 -04:00
|
|
|
. if ${SUBPACKAGE} != "-share"
|
|
|
|
RUN_DEPENDS= :freeciv-share-${VERSION}:games/freeciv,-share
|
|
|
|
. endif
|
2002-07-17 17:08:09 -04:00
|
|
|
.endif
|
|
|
|
|
2005-07-09 06:36:18 -04:00
|
|
|
USE_GMAKE= Yes
|
2003-03-31 08:07:46 -05:00
|
|
|
|
2005-07-09 06:36:18 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2001-08-23 21:59:19 -04:00
|
|
|
|
1998-05-19 19:44:24 -04:00
|
|
|
.include <bsd.port.mk>
|