53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.13 2013/03/11 11:07:40 espie Exp $
|
|
|
|
V = 0.8.1
|
|
COMMENT-client = race for the galaxy card game
|
|
COMMENT-server = race for the galaxy card game, game server
|
|
PKGNAME-client = rftg-$V
|
|
PKGNAME-server = rftg-server-$V
|
|
CATEGORIES = games
|
|
HOMEPAGE = http://keldon.net/rftg/
|
|
DISTNAME = rftg-$V
|
|
EXTRACT_SUFX = .tar.bz2
|
|
MASTER_SITES = http://warpcore.org/rftg/
|
|
MULTI_PACKAGES = -client #-server
|
|
SUBPACKAGE ?= -client
|
|
|
|
REVISION-client = 1
|
|
|
|
# Licence: GPL
|
|
# official authorization from the game publisher (Rio Grande)
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
|
|
LIB_DEPENDS-client = x11/gtk+2
|
|
|
|
LIB_DEPENDS-server = databases/mysql
|
|
|
|
.if ${MULTI_PACKAGES:M-server}
|
|
|
|
CONFIGURE_ARGS += --enable-server
|
|
CONFIGURE_ENV += LDFLAGS=-L${LOCALBASE}/lib CPPFLAGS=-I${LOCALBASE}/include
|
|
MAKE_FLAGS = server_LDADD='-lmysqlclient -pthread'
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/server ${PREFIX}/bin/rftg-server
|
|
.endif
|
|
|
|
MODULES = devel/gettext
|
|
|
|
cWANTLIB = c m pthread
|
|
|
|
WANTLIB-client = ${cWANTLIB} X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext \
|
|
Xfixes Xi Xinerama Xrandr Xrender atk-1.0 cairo expat fontconfig \
|
|
freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 \
|
|
gobject-2.0 gthread-2.0 gtk-x11-2.0 pango-1.0 \
|
|
pangocairo-1.0 pangoft2-1.0 pixman-1 png pthread-stubs xcb xcb-render \
|
|
xcb-render-util z ${MODGETTEXT_WANTLIB}
|
|
|
|
WANTLIB-server = ${cWANTLIB} c m pthread mysqlclient
|
|
|
|
|
|
.include <bsd.port.mk>
|