openbsd-ports/games/freeciv/Makefile
sturm 98feffca51 update to freeciv 1.14.1
- uses MULTI_PACKAGES (-client, -server, -share)
- gtk2 support in the client

from maintainer Aleksander Piotrowski <aleksander.piotrowski at piestrak.waw.pl>
cleaned up by yours truly
2004-06-02 12:40:42 +00:00

89 lines
2.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.35 2004/06/02 12:40:42 sturm Exp $
COMMENT= "Civilization clone for X11; multiplayer; game server"
COMMENT-client= "Freeciv client"
COMMENT-share= "shared data files for Freeciv"
VERSION= 1.14.1
DISTNAME= freeciv-${VERSION}
PKGNAME= freeciv-server-${VERSION}
PKGNAME-client= freeciv-client-${VERSION}
PKGNAME-share= freeciv-share-${VERSION}
CATEGORIES= games
HOMEPAGE= http://www.freeciv.org/
MAINTAINER= Aleksander Piotrowski <aleksander.piotrowski@nic.com.pl>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
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
SUBPACKAGES?=
.if !defined(PACKAGING) || ${SUBPACKAGE} != "-share"
# -client and -server
MODULES= gettext
RUN_DEPENDS+= :freeciv-share-${VERSION}:games/freeciv
. if !${FLAVOR:L:Mno_x11}
# -client
USE_X11= Yes
MULTI_PACKAGES+=-client
. if ${FLAVOR:L:Msdl}
LIB_DEPENDS+= SDL_mixer::devel/sdl-mixer
CONFIGURE_ARGS+=--with-sdl-prefix=${LOCALBASE}
. else
CONFIGURE_ARGS+=--disable-sdl-mixer
. endif
. if ${FLAVOR:L:Mesd}
LIB_DEPENDS+= esd.2::audio/esound
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
.endif
.if defined(PACKAGING) && ${SUBPACKAGE} == "-share"
PKG_ARCH= *
.endif
FULLPKGNAME= ${PKGNAME}
FULLPKGNAME-share= ${PKGNAME-share}
NO_REGRESS= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.mk>