2005-04-09 07:21:55 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.42 2005/04/09 11:21:55 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
|
|
|
|
2004-06-02 08:40:42 -04:00
|
|
|
VERSION= 1.14.1
|
|
|
|
DISTNAME= freeciv-${VERSION}
|
|
|
|
PKGNAME= freeciv-server-${VERSION}
|
2005-04-09 07:21:55 -04:00
|
|
|
PKGNAME-client= freeciv-client-${VERSION}p0
|
2004-06-02 08:40:42 -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
|
|
|
|
2004-11-04 17:14:11 -05:00
|
|
|
MAINTAINER= Aleksander Piotrowski <alek@openbsd.org>
|
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
|
2004-08-10 06:36:36 -04:00
|
|
|
MODULES= devel/gettext
|
2004-11-29 11:20:10 -05:00
|
|
|
WANTLIB= c m ncurses readline z
|
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}
|
2004-11-29 11:20:10 -05:00
|
|
|
WANTLIB+= ICE SDL SM X11 Xaw Xext Xmu Xpm Xt pthread usbhid
|
2004-06-02 08:40:42 -04:00
|
|
|
. 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}
|
2004-11-29 11:20:10 -05:00
|
|
|
WANTLIB+= audiofile
|
2004-06-02 08:40:42 -04:00
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+=--disable-esd
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if ${FLAVOR:L:Mgtk2}
|
|
|
|
BUILD_DEPENDS+= :pkgconfig-*:devel/pkgconfig
|
2004-09-14 20:46:07 -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
|
2004-06-02 08:40:42 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-client=gtk2
|
2005-04-09 07:21:55 -04:00
|
|
|
WANTLIB+= X11 Xext Xft Xinerama Xrender Xcursor atk-1.0.0.0 fontconfig \
|
2004-11-29 11:20:10 -05:00
|
|
|
freetype glib-2.0.0.0 gmodule-2.0.0.0 gobject-2.0.0.0 \
|
|
|
|
pango-1.0.0.0 pangox-1.0.0.0 pangoxft-1.0.0.0
|
2004-06-02 08:40:42 -04:00
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+=--enable-client=xaw
|
2004-11-29 11:20:10 -05:00
|
|
|
WANTLIB+= ICE SM X11 Xaw Xext Xmu Xpm Xt
|
2004-06-02 08:40:42 -04:00
|
|
|
. 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>
|