0031945c6e
the FULLPKGPATH, thus providing changes to packing-lists which shouldn't happen, and making update more difficult. Accordingly, bump all pkgnames with PSEUDO_FLAVORS, and provide an update @pkgpath for the bug for most of them (left out the ones with 3 or 4 pseudo flavors for space constraints...)
78 lines
1.8 KiB
Makefile
78 lines
1.8 KiB
Makefile
# $OpenBSD: Makefile,v 1.50 2005/09/16 09:51:27 espie Exp $
|
|
|
|
COMMENT= "Civilization clone for X11; multiplayer; game server"
|
|
COMMENT-client= "Freeciv client"
|
|
COMMENT-share= "shared data files for Freeciv"
|
|
|
|
VERSION= 2.0.3
|
|
DISTNAME= freeciv-${VERSION}
|
|
PKGNAME= freeciv-server-${VERSION}p0
|
|
PKGNAME-client= freeciv-client-${VERSION}p2
|
|
PKGNAME-share= freeciv-share-${VERSION}p1
|
|
CATEGORIES= games
|
|
HOMEPAGE= http://www.freeciv.org/
|
|
|
|
MAINTAINER= Rui Reis <rui@rui.cx>
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=freeciv/} \
|
|
ftp://ftp.freeciv.org/pub/freeciv/stable/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
PSEUDO_FLAVORS= no_x11
|
|
FLAVOR?=
|
|
|
|
MULTI_PACKAGES= -share
|
|
SUBPACKAGE?=
|
|
|
|
BUILD_DEPENDS= ::lang/python/2.3
|
|
|
|
MODULES= devel/gettext
|
|
WANTLIB= c m z ncurses readline
|
|
|
|
.if !${FLAVOR:L:Mno_x11}
|
|
MULTI_PACKAGES+=-client
|
|
|
|
BUILD_DEPENDS+= :pkgconfig-*:devel/pkgconfig
|
|
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
|
|
CONFIGURE_ARGS= --enable-client=gtk2 \
|
|
--disable-sdl-mixer \
|
|
--with-esd-prefix=${LOCALBASE}
|
|
WANTLIB-client= X11 Xft Xrender atk-1.0.0.0 fontconfig freetype audiofile \
|
|
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 audiofile
|
|
.else
|
|
CONFIGURE_ARGS= --enable-client=no
|
|
.endif
|
|
|
|
.if defined(PACKAGING)
|
|
. if ${SUBPACKAGE} == "-share"
|
|
PKG_ARCH= *
|
|
MODULES=
|
|
LIB_DEPENDS=
|
|
WANTLIB=
|
|
. elif ${SUBPACKAGE} == "-client"
|
|
WANTLIB+= ${WANTLIB-client}
|
|
. else
|
|
LIB_DEPENDS=
|
|
. endif
|
|
|
|
. if ${SUBPACKAGE} != "-share"
|
|
RUN_DEPENDS= :freeciv-share-${VERSION}:games/freeciv,-share
|
|
. endif
|
|
.endif
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
.include <bsd.port.mk>
|