pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games Split out an etlegacy-server package for etlegacy.
details: https://anonhg.NetBSD.org/pkgsrc/rev/73f98b5e76b2
branches: trunk
changeset: 335758:73f98b5e76b2
user: nia <nia%pkgsrc.org@localhost>
date: Sun Jun 30 23:33:40 2019 +0000
description:
Split out an etlegacy-server package for etlegacy.
Allows most of the dependencies to be disabled because they won't be used
on a headless server.
diffstat:
games/Makefile | 3 +-
games/etlegacy-server/DESCR | 6 ++
games/etlegacy-server/Makefile | 22 +++++++++
games/etlegacy-server/options.mk | 21 ++++++++
games/etlegacy/Makefile | 97 ++-------------------------------------
games/etlegacy/Makefile.common | 92 +++++++++++++++++++++++++++++++++++++
games/etlegacy/PLIST | 4 +-
games/etlegacy/options.mk | 20 +-------
8 files changed, 154 insertions(+), 111 deletions(-)
diffs (truncated from 341 to 300 lines):
diff -r 016c3498ebf8 -r 73f98b5e76b2 games/Makefile
--- a/games/Makefile Sun Jun 30 22:55:47 2019 +0000
+++ b/games/Makefile Sun Jun 30 23:33:40 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.434 2019/06/30 22:27:22 nia Exp $
+# $NetBSD: Makefile,v 1.435 2019/06/30 23:33:40 nia Exp $
#
COMMENT= Games
@@ -95,6 +95,7 @@
SUBDIR+= enigma
SUBDIR+= et
SUBDIR+= etlegacy
+SUBDIR+= etlegacy-server
SUBDIR+= eus-demo
SUBDIR+= exchess
SUBDIR+= exchess-book-medium
diff -r 016c3498ebf8 -r 73f98b5e76b2 games/etlegacy-server/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/etlegacy-server/DESCR Sun Jun 30 23:33:40 2019 +0000
@@ -0,0 +1,6 @@
+Enemy Territory: Legacy is an open source project that aims to
+create a fully compatible client and server for the popular online
+FPS game Wolfenstein: Enemy Territory.
+
+This package contains only the server and is intended for headless
+systems.
diff -r 016c3498ebf8 -r 73f98b5e76b2 games/etlegacy-server/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/etlegacy-server/Makefile Sun Jun 30 23:33:40 2019 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2019/06/30 23:33:41 nia Exp $
+
+.include "../../games/etlegacy/Makefile.common"
+
+PKGNAME= etlegacy-server-${ETL_VERSION}
+
+COMMENT= Open source Wolfenstein: Enemy Territory server
+
+CMAKE_ARGS+= -DBUILD_CLIENT=OFF
+
+# Disable client-only features.
+CMAKE_ARGS+= -DFEATURE_OGG_VORBIS=OFF
+CMAKE_ARGS+= -DFEATURE_THEORA=OFF
+CMAKE_ARGS+= -DFEATURE_OPENAL=OFF
+CMAKE_ARGS+= -DFEATURE_FREETYPE=OFF
+CMAKE_ARGS+= -DFEATURE_RENDERER2=OFF
+
+# Not set.
+PLIST_VARS+= client
+
+.include "options.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 016c3498ebf8 -r 73f98b5e76b2 games/etlegacy-server/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/etlegacy-server/options.mk Sun Jun 30 23:33:40 2019 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: options.mk,v 1.1 2019/06/30 23:33:41 nia Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.etlegacy-server
+PKG_SUPPORTED_OPTIONS= lua sqlite3
+PKG_SUGGESTED_OPTIONS= lua sqlite3
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mlua)
+CMAKE_ARGS+= -DFEATURE_LUA=ON
+.include "../../lang/lua53/buildlink3.mk"
+.else
+CMAKE_ARGS+= -DFEATURE_LUA=OFF
+.endif
+
+.if !empty(PKG_OPTIONS:Msqlite3)
+CMAKE_ARGS+= -DFEATURE_DBMS=ON
+.include "../../databases/sqlite3/buildlink3.mk"
+.else
+CMAKE_ARGS+= -DFEATURE_DBMS=OFF
+.endif
diff -r 016c3498ebf8 -r 73f98b5e76b2 games/etlegacy/Makefile
--- a/games/etlegacy/Makefile Sun Jun 30 22:55:47 2019 +0000
+++ b/games/etlegacy/Makefile Sun Jun 30 23:33:40 2019 +0000
@@ -1,99 +1,17 @@
-# $NetBSD: Makefile,v 1.6 2019/06/27 16:05:11 nia Exp $
-
-PKGNAME= etlegacy-2.76
-PKGREVISION= 4
-CATEGORIES= games
+# $NetBSD: Makefile,v 1.7 2019/06/30 23:33:40 nia Exp $
-DIST_SUBDIR= etlegacy-${PKGVERSION_NOREV}
-
-DISTFILES+= etlegacy.tar.gz
-DISTFILES+= etlegacy-libs.tar.gz
-
-LIBS_TAG= f04f846898a92d36fd9cfe7425b1ab4d31bca794
+.include "Makefile.common"
-SITES.etlegacy.tar.gz= \
- -https://github.com/etlegacy/etlegacy/archive/v${PKGVERSION_NOREV}.tar.gz
-
-SITES.etlegacy-libs.tar.gz= \
- -https://github.com/etlegacy/etlegacy-libs/archive/${LIBS_TAG}.tar.gz
+PKGNAME= etlegacy-${ETL_VERSION}
+PKGREVISION= 5
-MAINTAINER= nia%NetBSD.org@localhost
-HOMEPAGE= https://www.etlegacy.com/
COMMENT= Open source Wolfenstein: Enemy Territory client and server
-LICENSE= gnu-gpl-v3
-
-USE_CMAKE= yes
-USE_LANGUAGES= c c++
CMAKE_ARGS+= -DRENDERER_DYNAMIC=OFF
CMAKE_ARGS+= -DFEATURE_RENDERER2=OFF # experimental, buggy
-# use libraries from pkgsrc
-CMAKE_ARGS+= -DBUNDLED_CURL=OFF
-CMAKE_ARGS+= -DBUNDLED_FREETYPE=OFF
-CMAKE_ARGS+= -DBUNDLED_GLEW=OFF
-CMAKE_ARGS+= -DBUNDLED_JANSSON=OFF
-CMAKE_ARGS+= -DBUNDLED_JPEG=OFF
-CMAKE_ARGS+= -DBUNDLED_LUA=OFF
-CMAKE_ARGS+= -DBUNDLED_OGG_VORBIS=OFF
-CMAKE_ARGS+= -DBUNDLED_OPENAL=OFF
-CMAKE_ARGS+= -DBUNDLED_OPENSSL=OFF
-CMAKE_ARGS+= -DBUNDLED_SDL=OFF
-CMAKE_ARGS+= -DBUNDLED_SQLITE3=OFF
-CMAKE_ARGS+= -DBUNDLED_THEORA=OFF
-CMAKE_ARGS+= -DBUNDLED_ZLIB=OFF
-
-# don't try to build i386 binaries on amd64
-CMAKE_ARGS+= -DCROSS_COMPILE32=OFF
-
-CMAKE_ARGS+= -DFEATURE_AUTOUPDATE=OFF
-
-# tries to install binaries
-# but maybe this can be built from source separately
-CMAKE_ARGS+= -DFEATURE_OMNIBOT=OFF
-CMAKE_ARGS+= -DINSTALL_OMNIBOT=OFF
-
-CMAKE_ARGS+= -DCMAKE_BUILD_TYPE="Release"
-CMAKE_ARGS+= -DINSTALL_DEFAULT_BASEDIR="${PREFIX}/share/etlegacy"
-CMAKE_ARGS+= -DINSTALL_DEFAULT_BINDIR="bin"
-CMAKE_ARGS+= -DINSTALL_DEFAULT_MODDIR="share/etlegacy"
-
-# don't use fopen64 etc
-CFLAGS+= -DIOAPI_NO_64
-
-CHECK_PORTABILITY_SKIP+= libs/sdl2/build-scripts/*
-
-.include "../../mk/bsd.prefs.mk"
-
-.if ${MACHINE_ARCH} == "x86_64"
-PLIST_SUBST+= ARCH_STRING="x86_64"
-.elif ${MACHINE_ARCH} == "i386"
-PLIST_SUBST+= ARCH_STRING="i386"
-.elif ${MACHINE_ARCH} == "alpha"
-PLIST_SUBST+= ARCH_STRING="alpha"
-.elif ${MACHINE_ARCH} == "hppa"
-PLIST_SUBST+= ARCH_STRING="hppa"
-.elif !empty(MACHINE_ARCH:Mpowerpc64*)
-PLIST_SUBST+= ARCH_STRING="ppc64"
-.elif !empty(MACHINE_ARCH:Mpowerpc*)
-PLIST_SUBST+= ARCH_STRING="ppc"
-.elif !empty(MACHINE_ARCH:Msh3*)
-PLIST_SUBST+= ARCH_STRING="sh"
-.elif !empty(MACHINE_ARCH:Mmips*)
-PLIST_SUBST+= ARCH_STRING="mips"
-.elif !empty(MACHINE_ARCH:Msparc*)
-PLIST_SUBST+= ARCH_STRING="sparc"
-.elif !empty(MACHINE_ARCH:M*arm*)
-PLIST_SUBST+= ARCH_STRING="arm"
-.else
-# maybe architecture-neutral shared objects could be generated
-PKG_SKIP_REASON+=\
- "unsupported MACHINE_ARCH, maybe needs to be added to q_platform.h"
-.endif
-
-post-extract:
- ${MV} ${WRKDIR}/etlegacy-libs-${LIBS_TAG}/* \
- ${WRKDIR}/etlegacy-${PKGVERSION_NOREV}/libs
+PLIST_VARS+= client
+PLIST.client= yes
.include "options.mk"
.include "../../audio/openal-soft/buildlink3.mk"
@@ -102,10 +20,7 @@
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
-.include "../../devel/zlib/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libICE/buildlink3.mk"
-.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
-.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 016c3498ebf8 -r 73f98b5e76b2 games/etlegacy/Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/etlegacy/Makefile.common Sun Jun 30 23:33:40 2019 +0000
@@ -0,0 +1,92 @@
+# $NetBSD: Makefile.common,v 1.1 2019/06/30 23:33:40 nia Exp $
+# used by games/etlegacy/Makefile
+# used by games/etlegacy-server/Makefile
+
+ETL_VERSION= 2.76
+CATEGORIES= games
+
+DIST_SUBDIR= etlegacy-${PKGVERSION_NOREV}
+
+DISTFILES+= etlegacy.tar.gz
+DISTFILES+= etlegacy-libs.tar.gz
+
+LIBS_TAG= f04f846898a92d36fd9cfe7425b1ab4d31bca794
+
+SITES.etlegacy.tar.gz= \
+ -https://github.com/etlegacy/etlegacy/archive/v${PKGVERSION_NOREV}.tar.gz
+
+SITES.etlegacy-libs.tar.gz= \
+ -https://github.com/etlegacy/etlegacy-libs/archive/${LIBS_TAG}.tar.gz
+
+MAINTAINER= nia%NetBSD.org@localhost
+HOMEPAGE= https://www.etlegacy.com/
+LICENSE= gnu-gpl-v3
+
+DISTINFO_FILE= ${.CURDIR}/../../games/etlegacy/distinfo
+PATCHDIR= ${.CURDIR}/../../games/etlegacy/patches
+MESSAGE_SRC= ${.CURDIR}/../../games/etlegacy/MESSAGE
+PLIST_SRC= ${.CURDIR}/../../games/etlegacy/PLIST
+PLIST_SRC+= ${.CURDIR}/../../games/etlegacy/PLIST.${OPSYS}
+
+WRKSRC= ${WRKDIR}/etlegacy-${ETL_VERSION}
+
+USE_CMAKE= yes
+USE_LANGUAGES= c c++
+
+# use libraries from pkgsrc
+CMAKE_ARGS+= -DBUNDLED_CURL=OFF
+CMAKE_ARGS+= -DBUNDLED_FREETYPE=OFF
+CMAKE_ARGS+= -DBUNDLED_GLEW=OFF
+CMAKE_ARGS+= -DBUNDLED_JANSSON=OFF
+CMAKE_ARGS+= -DBUNDLED_JPEG=OFF
+CMAKE_ARGS+= -DBUNDLED_LUA=OFF
+CMAKE_ARGS+= -DBUNDLED_OGG_VORBIS=OFF
+CMAKE_ARGS+= -DBUNDLED_OPENAL=OFF
+CMAKE_ARGS+= -DBUNDLED_OPENSSL=OFF
+CMAKE_ARGS+= -DBUNDLED_SDL=OFF
+CMAKE_ARGS+= -DBUNDLED_SQLITE3=OFF
+CMAKE_ARGS+= -DBUNDLED_THEORA=OFF
+CMAKE_ARGS+= -DBUNDLED_ZLIB=OFF
+
+# don't try to build i386 binaries on amd64
+CMAKE_ARGS+= -DCROSS_COMPILE32=OFF
+
+CMAKE_ARGS+= -DFEATURE_AUTOUPDATE=OFF
+
+# tries to install binaries
+# but maybe this can be built from source separately
+CMAKE_ARGS+= -DFEATURE_OMNIBOT=OFF
+CMAKE_ARGS+= -DINSTALL_OMNIBOT=OFF
+
+CMAKE_ARGS+= -DCMAKE_BUILD_TYPE="Release"
+CMAKE_ARGS+= -DINSTALL_DEFAULT_BASEDIR="${PREFIX}/share/etlegacy"
+CMAKE_ARGS+= -DINSTALL_DEFAULT_BINDIR="bin"
+CMAKE_ARGS+= -DINSTALL_DEFAULT_MODDIR="share/etlegacy"
+
+# don't use fopen64 etc
+CFLAGS+= -DIOAPI_NO_64
+
+CHECK_PORTABILITY_SKIP+= libs/sdl2/build-scripts/*
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if ${MACHINE_ARCH} == "x86_64"
+PLIST_SUBST+= ARCH_STRING="x86_64"
+.elif ${MACHINE_ARCH} == "i386"
+PLIST_SUBST+= ARCH_STRING="i386"
+.elif !empty(MACHINE_ARCH:M*arm*)
+PLIST_SUBST+= ARCH_STRING="arm"
+.else
+# maybe architecture-neutral shared objects could be generated
+PKG_SKIP_REASON+=\
+ "unsupported MACHINE_ARCH, add it to ETLPlatform.cmake"
+.endif
+
+post-extract:
+ ${MV} ${WRKDIR}/etlegacy-libs-${LIBS_TAG}/* \
+ ${WRKDIR}/etlegacy-${PKGVERSION_NOREV}/libs
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
diff -r 016c3498ebf8 -r 73f98b5e76b2 games/etlegacy/PLIST
--- a/games/etlegacy/PLIST Sun Jun 30 22:55:47 2019 +0000
+++ b/games/etlegacy/PLIST Sun Jun 30 23:33:40 2019 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.3 2019/06/23 11:20:23 maya Exp $
-bin/etl
Home |
Main Index |
Thread Index |
Old Index