9a2b2a14b2
(the server code is included, but keldon forgot to include directions nor the mysql schema, so don't build it yet).
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.5 2010/08/17 22:22:59 espie Exp $
|
|
|
|
V = 0.7.3
|
|
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
|
|
|
|
# Licence: GPL
|
|
# official authorization from the game publisher (Rio Grande)
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = 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
|
|
|
|
|
|
WANTLIB = c m pthread
|
|
WANTLIB-client = ${WANTLIB} 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 glitz gmodule-2.0 \
|
|
gobject-2.0 gthread-2.0 gtk-x11-2.0 iconv intl pango-1.0 \
|
|
pangocairo-1.0 pangoft2-1.0 pixman-1 png pthread-stubs xcb xcb-render \
|
|
xcb-render-util z
|
|
|
|
WANTLIB-server = ${WANTLIB} c m pthread mysqlclient
|
|
|
|
|
|
.include <bsd.port.mk>
|