2004-06-10 03:41:18 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.37 2004/06/10 07:41:18 sturm 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
|
|
|
|
2004-06-02 08:40:42 -04:00
|
|
|
VERSION= 1.14.1
|
|
|
|
DISTNAME= freeciv-${VERSION}
|
|
|
|
PKGNAME= freeciv-server-${VERSION}
|
|
|
|
PKGNAME-client= freeciv-client-${VERSION}
|
|
|
|
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
|
|
|
|
2004-05-04 07:31:48 -04:00
|
|
|
MAINTAINER= Aleksander Piotrowski <aleksander.piotrowski@nic.com.pl>
|
2002-07-17 17:08:09 -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
|
|
|
|
2001-08-23 21:59:19 -04:00
|
|
|
MASTER_SITES= 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
|
|
|
FLAVORS= gtk2 esd sdl
|
|
|
|
PSEUDO_FLAVORS= no_x11
|
2000-10-04 01:39:18 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2004-06-02 08:40:42 -04:00
|
|
|
.if ${FLAVOR:L:Mno_x11} && ${FLAVOR:L} != "no_x11"
|
|
|
|
ERRORS+= "Fatal: FLAVOR 'no_x11' and the other FLAVORS are mutually exclusive."
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MULTI_PACKAGES= -share
|
2004-06-10 02:54:48 -04:00
|
|
|
SUBPACKAGE?=
|
2004-06-02 08:40:42 -04:00
|
|
|
|
|
|
|
.if !defined(PACKAGING) || ${SUBPACKAGE} != "-share"
|
|
|
|
# -client and -server
|
2001-10-24 22:19:12 -04:00
|
|
|
MODULES= gettext
|
2001-08-23 21:59:19 -04:00
|
|
|
|
2004-06-02 08:40:42 -04:00
|
|
|
. if !${FLAVOR:L:Mno_x11}
|
|
|
|
# -client
|
|
|
|
USE_X11= Yes
|
|
|
|
MULTI_PACKAGES+=-client
|
1998-05-19 19:44:24 -04:00
|
|
|
|
2004-06-02 08:40:42 -04:00
|
|
|
. if ${FLAVOR:L:Msdl}
|
2002-07-17 17:08:09 -04:00
|
|
|
LIB_DEPENDS+= SDL_mixer::devel/sdl-mixer
|
2004-06-02 08:40:42 -04:00
|
|
|
CONFIGURE_ARGS+=--with-sdl-prefix=${LOCALBASE}
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+=--disable-sdl-mixer
|
|
|
|
. endif
|
2002-07-17 17:08:09 -04:00
|
|
|
|
2004-06-02 08:40:42 -04:00
|
|
|
. if ${FLAVOR:L:Mesd}
|
2002-07-17 17:08:09 -04:00
|
|
|
LIB_DEPENDS+= esd.2::audio/esound
|
2004-06-02 08:40:42 -04:00
|
|
|
CONFIGURE_ARGS+=--with-esd-prefix=${LOCALBASE}
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+=--disable-esd
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if ${FLAVOR:L:Mgtk2}
|
|
|
|
BUILD_DEPENDS+= :pkgconfig-*:devel/pkgconfig
|
|
|
|
LIB_DEPENDS+= gtk-x11-2.0.0.5,gdk-x11-2.0.0.5::x11/gtk+2
|
|
|
|
CONFIGURE_ARGS+=--enable-client=gtk2
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+=--enable-client=xaw
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+=--enable-client=no
|
|
|
|
. endif
|
|
|
|
|
2002-07-17 17:08:09 -04:00
|
|
|
.endif
|
|
|
|
|
2004-06-02 08:40:42 -04:00
|
|
|
.if defined(PACKAGING) && ${SUBPACKAGE} == "-share"
|
|
|
|
PKG_ARCH= *
|
|
|
|
.endif
|
|
|
|
|
2004-06-10 03:41:18 -04:00
|
|
|
.if defined(PACKAGING) && ${SUBPACKAGE} != "-share"
|
|
|
|
RUN_DEPENDS+= :freeciv-share-${VERSION}:games/freeciv,-share
|
|
|
|
.endif
|
|
|
|
|
2004-06-02 08:40:42 -04:00
|
|
|
FULLPKGNAME= ${PKGNAME}
|
|
|
|
FULLPKGNAME-share= ${PKGNAME-share}
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
2003-03-31 08:07:46 -05:00
|
|
|
|
2002-07-17 17:08:09 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2004-06-02 08:40:42 -04:00
|
|
|
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>
|