Hedgewars is a turn based strategy, artillery, action and comedy
game, featuring the antics of pink hedgehogs with attitude as they battle from the depths of hell to the depths of space. As commander, it's your job to assemble your crack team of hedgehog soldiers and bring the war to your enemy. ok landry@
This commit is contained in:
parent
6ee7468c4f
commit
5c44c802ad
82
games/hedgewars/Makefile
Normal file
82
games/hedgewars/Makefile
Normal file
@ -0,0 +1,82 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2015/12/27 21:40:56 pascal Exp $
|
||||
|
||||
SHARED_ONLY = Yes
|
||||
|
||||
COMMENT-main = Worms-like strategy game
|
||||
COMMENT-server = Worms-like strategy game, server
|
||||
|
||||
MULTI_PACKAGES = -main -server
|
||||
|
||||
SHARED_LIBS += physlayer 0.0 # 0.0
|
||||
|
||||
R = 0.9.22
|
||||
V = $R
|
||||
DISTNAME = hedgewars-src-$V
|
||||
PKGNAME-main = hedgewars-$V
|
||||
PKGNAME-server = hedgewars-server-$V
|
||||
|
||||
CATEGORIES = games
|
||||
|
||||
HOMEPAGE = http://www.hedgewars.org/
|
||||
|
||||
MAINTAINER = Pascal Stumpf <Pascal.Stumpf@cubes.de>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
WANTLIB-main += QtGui QtNetwork SDL SDL_image SDL_mixer SDL_net SDL_ttf
|
||||
WANTLIB-main += c m physfs png pthread stdc++ z
|
||||
WANTLIB-main += ${MODLUA_WANTLIB} ${MODQT4_WANTLIB}
|
||||
|
||||
# dlopen()ed; do not remove.
|
||||
WANTLIB-main += GL GLU glut
|
||||
|
||||
WANTLIB-server = c m pthread ${MODLIBICONV_WANTLIB}
|
||||
|
||||
MASTER_SITES = http://download.gna.org/hedgewars/
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
|
||||
MODULES = devel/cmake \
|
||||
x11/qt4 \
|
||||
lang/lua \
|
||||
converters/libiconv
|
||||
USE_NINJA = No
|
||||
BUILD_DEPENDS = lang/fpc
|
||||
LIB_DEPENDS-main = devel/sdl-image \
|
||||
devel/sdl-ttf \
|
||||
devel/sdl-net \
|
||||
devel/sdl-mixer \
|
||||
devel/physfs \
|
||||
graphics/freeglut \
|
||||
${MODQT4_LIB_DEPENDS} \
|
||||
${MODLUA_LIB_DEPENDS}
|
||||
LIB_DEPENDS-server = converters/libiconv
|
||||
|
||||
CONFIGURE_ARGS += -DNOVIDEOREC=ON
|
||||
|
||||
CONFIGURE_ENV += HOME="${WRKBUILD}"
|
||||
|
||||
PSEUDO_FLAVORS = no_server
|
||||
FLAVOR ?=
|
||||
|
||||
.if ${FLAVOR:Mno_server}
|
||||
CONFIGURE_ARGS += -DNOSERVER=ON
|
||||
.else
|
||||
MODULES += lang/ghc
|
||||
BUILD_DEPENDS += devel/hs-vector \
|
||||
devel/hs-network \
|
||||
devel/hs-random \
|
||||
devel/hs-hslogger \
|
||||
devel/hs-dataenc \
|
||||
security/hs-SHA \
|
||||
security/hs-entropy \
|
||||
textproc/hs-bytestring-show \
|
||||
archivers/hs-zlib
|
||||
MODGHC_BUILD = nort
|
||||
.endif
|
||||
|
||||
NO_TEST = Yes
|
||||
|
||||
WRKDIST = ${WRKDIR}/hedgewars-src-$R
|
||||
|
||||
.include <bsd.port.mk>
|
2
games/hedgewars/distinfo
Normal file
2
games/hedgewars/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (hedgewars-src-0.9.22.tar.bz2) = tpnIlx/0IMPt1lM1J64umQQPHnkgfJFAgmlFvPDmIZI=
|
||||
SIZE (hedgewars-src-0.9.22.tar.bz2) = 160103313
|
12
games/hedgewars/patches/patch-hedgewars_CMakeLists_txt
Normal file
12
games/hedgewars/patches/patch-hedgewars_CMakeLists_txt
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-hedgewars_CMakeLists_txt,v 1.1.1.1 2015/12/27 21:40:57 pascal Exp $
|
||||
--- hedgewars/CMakeLists.txt.orig Thu Jul 30 23:31:06 2015
|
||||
+++ hedgewars/CMakeLists.txt Sun Dec 27 11:40:11 2015
|
||||
@@ -162,7 +162,7 @@ if(LUA_SYSTEM)
|
||||
get_filename_component(LUA_LIBRARY_DIR ${LUA_LIBRARY} PATH)
|
||||
get_filename_component(LUA_LIBRARY_NAME ${LUA_LIBRARY} NAME)
|
||||
#NAME_WE would strip the .1 (or .2) next to the ".so"
|
||||
- string(REGEX REPLACE "${CMAKE_SHARED_LIBRARY_PREFIX}(.*)${CMAKE_SHARED_LIBRARY_SUFFIX}" "\\1" LUA_LIBRARY_NAME "${LUA_LIBRARY_NAME}")
|
||||
+ string(REGEX REPLACE "${CMAKE_SHARED_LIBRARY_PREFIX}(.*)${CMAKE_SHARED_LIBRARY_SUFFIX}.[0-9].[0-9]" "\\1" LUA_LIBRARY_NAME "${LUA_LIBRARY_NAME}")
|
||||
add_flag_append(CMAKE_Pascal_FLAGS "-Fl${LUA_LIBRARY_DIR} -XLAlua=${LUA_LIBRARY_NAME}")
|
||||
else()
|
||||
add_definitions(-dLUA_INTERNAL)
|
13
games/hedgewars/patches/patch-hedgewars_SDLh_pas
Normal file
13
games/hedgewars/patches/patch-hedgewars_SDLh_pas
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-hedgewars_SDLh_pas,v 1.1.1.1 2015/12/27 21:40:57 pascal Exp $
|
||||
--- hedgewars/SDLh.pas.orig Tue Jul 30 13:15:03 2013
|
||||
+++ hedgewars/SDLh.pas Tue Jul 30 13:15:27 2013
|
||||
@@ -27,6 +27,9 @@ interface
|
||||
{$IFDEF FREEBSD}
|
||||
{$DEFINE UNIX}
|
||||
{$ENDIF}
|
||||
+{$IFDEF OPENBSD}
|
||||
+ {$DEFINE UNIX}
|
||||
+{$ENDIF}
|
||||
{$IFDEF DARWIN}
|
||||
{$DEFINE UNIX}
|
||||
{$ENDIF}
|
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-hedgewars_avwrapper_CMakeLists_txt,v 1.1.1.1 2015/12/27 21:40:57 pascal Exp $
|
||||
--- hedgewars/avwrapper/CMakeLists.txt.orig Thu Oct 2 17:53:27 2014
|
||||
+++ hedgewars/avwrapper/CMakeLists.txt Sun Apr 5 17:46:06 2015
|
||||
@@ -7,7 +7,9 @@ find_package(GLUT REQUIRED)
|
||||
include_directories(${LIBAV_INCLUDE_DIR})
|
||||
|
||||
add_library(avwrapper avwrapper.c)
|
||||
-#TODO: find good VERSION and SOVERSION values
|
||||
+set_target_properties(avwrapper PROPERTIES
|
||||
+ VERSION 0.0
|
||||
+ SOVERSION 0.0)
|
||||
target_link_libraries(avwrapper ${LIBAV_LIBRARIES})
|
||||
install(TARGETS avwrapper RUNTIME DESTINATION ${target_binary_install_dir}
|
||||
LIBRARY DESTINATION ${target_library_install_dir}
|
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-misc_libphyslayer_CMakeLists_txt,v 1.1.1.1 2015/12/27 21:40:57 pascal Exp $
|
||||
--- misc/libphyslayer/CMakeLists.txt.orig Mon Feb 3 13:12:47 2014
|
||||
+++ misc/libphyslayer/CMakeLists.txt Mon Feb 3 13:13:16 2014
|
||||
@@ -15,6 +15,9 @@ set(PHYSLAYER_SRCS
|
||||
#compiles and links actual library
|
||||
add_library (physlayer ${PHYSLAYER_SRCS})
|
||||
#TODO: find good VERSION and SOVERSION values
|
||||
+set_target_properties(physlayer PROPERTIES
|
||||
+ VERSION 0.0
|
||||
+ SOVERSION 0.0)
|
||||
target_link_libraries(physlayer ${SDL_LIBRARY} lua physfs)
|
||||
install(TARGETS physlayer RUNTIME DESTINATION ${target_binary_install_dir}
|
||||
LIBRARY DESTINATION ${target_library_install_dir}
|
6
games/hedgewars/pkg/DESCR-main
Normal file
6
games/hedgewars/pkg/DESCR-main
Normal file
@ -0,0 +1,6 @@
|
||||
Hedgewars is a turn based strategy, artillery, action and comedy
|
||||
game, featuring the antics of pink hedgehogs with attitude as they
|
||||
battle from the depths of hell to the depths of space.
|
||||
|
||||
As commander, it's your job to assemble your crack team of hedgehog
|
||||
soldiers and bring the war to your enemy.
|
8
games/hedgewars/pkg/DESCR-server
Normal file
8
games/hedgewars/pkg/DESCR-server
Normal file
@ -0,0 +1,8 @@
|
||||
Hedgewars is a turn based strategy, artillery, action and comedy
|
||||
game, featuring the antics of pink hedgehogs with attitude as they
|
||||
battle from the depths of hell to the depths of space.
|
||||
|
||||
As commander, it's your job to assemble your crack team of hedgehog
|
||||
soldiers and bring the war to your enemy.
|
||||
|
||||
This package contains the Hedgewars server.
|
2722
games/hedgewars/pkg/PLIST-main
Normal file
2722
games/hedgewars/pkg/PLIST-main
Normal file
File diff suppressed because it is too large
Load Diff
5
games/hedgewars/pkg/PLIST-server
Normal file
5
games/hedgewars/pkg/PLIST-server
Normal file
@ -0,0 +1,5 @@
|
||||
@comment $OpenBSD: PLIST-server,v 1.1.1.1 2015/12/27 21:40:57 pascal Exp $
|
||||
@newgroup _hedgewars:765
|
||||
@newuser _hedgewars:765:765:daemon:Hedgewars server:/nonexistent:/sbin/nologin
|
||||
@bin bin/hedgewars-server
|
||||
@rcscript ${RCDIR}/hedgewars_server
|
13
games/hedgewars/pkg/hedgewars_server.rc
Normal file
13
games/hedgewars/pkg/hedgewars_server.rc
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: hedgewars_server.rc,v 1.1.1.1 2015/12/27 21:40:57 pascal Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/bin/hedgewars-server"
|
||||
daemon_user="_hedgewars"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_reload=NO
|
||||
rc_bg=YES
|
||||
|
||||
rc_cmd $1
|
Loading…
Reference in New Issue
Block a user