openbsd-ports/games/freeciv/Makefile

99 lines
2.4 KiB
Makefile
Raw Normal View History

2005-04-09 07:21:55 -04:00
# $OpenBSD: Makefile,v 1.42 2005/04/09 11:21:55 espie Exp $
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
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
PKGNAME-share= freeciv-share-${VERSION}
1998-05-19 19:44:24 -04:00
CATEGORIES= games
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>
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/
EXTRACT_SUFX= .tar.bz2
FLAVORS= gtk2 esd sdl
PSEUDO_FLAVORS= no_x11
FLAVOR?=
.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?=
.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
. if !${FLAVOR:L:Mno_x11}
# -client
USE_X11= Yes
MULTI_PACKAGES+=-client
1998-05-19 19:44:24 -04:00
. if ${FLAVOR:L:Msdl}
LIB_DEPENDS+= SDL_mixer::devel/sdl-mixer
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
. else
CONFIGURE_ARGS+=--disable-sdl-mixer
. endif
. if ${FLAVOR:L:Mesd}
LIB_DEPENDS+= esd.2::audio/esound
CONFIGURE_ARGS+=--with-esd-prefix=${LOCALBASE}
2004-11-29 11:20:10 -05:00
WANTLIB+= audiofile
. 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
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
. else
CONFIGURE_ARGS+=--enable-client=xaw
2004-11-29 11:20:10 -05:00
WANTLIB+= ICE SM X11 Xaw Xext Xmu Xpm Xt
. endif
. else
CONFIGURE_ARGS+=--enable-client=no
. endif
.endif
.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
FULLPKGNAME= ${PKGNAME}
FULLPKGNAME-share= ${PKGNAME-share}
NO_REGRESS= Yes
2003-03-31 08:07:46 -05: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>