Page MenuHomeFreeBSD

D15310.id42172.diff
No OneTemporary

D15310.id42172.diff

Index: games/barony/Makefile
===================================================================
--- /dev/null
+++ games/barony/Makefile
@@ -0,0 +1,44 @@
+# $FreeBSD$
+
+PORTNAME= barony
+DISTVERSIONPREFIX= v
+DISTVERSION= 3.1.4
+CATEGORIES= games
+MASTER_SITES= http://www.baronygame.com/
+
+MAINTAINER= David Carlier <devnexen@gmail.com>
+COMMENT= 3D roguelike game
+
+LICENSE= GPLv3
+
+LIB_DEPENDS= libvorbisfile.so:audio/libvorbis \
+ libpng.so:graphics/png
+
+USES= cmake compiler:c++11-lib openal:al pkgconfig
+USE_GL= gl glu
+USE_SDL= sdl2 image2 mixer2 ttf2
+
+USE_GITHUB= yes
+GH_ACCOUNT= TurningWheel
+GH_PROJECT= Barony
+
+LDFLAGS+= -L${LOCALBASE}/lib
+
+CMAKE_ARGS= -DOPENAL_ENABLED=ON \
+ -DEDITOR_EXE_NAME="barony-editor" \
+ -DCMAKE_INSTALL_BINDIR="${LOCALBASE}/bin" \
+ -DDATA_DIR=ON
+
+post-install:
+ ${SED} -e 's:%%PREFIX%%:${PREFIX}:g' \
+ ${FILESDIR}/barony.sh > ${STAGEDIR}${PREFIX}/bin/barony
+ ${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/barony
+
+
+PLIST_FILES= bin/barony \
+ bin/barony-bin \
+ bin/barony-editor \
+ share/games/barony/lang/en.ttf \
+ share/games/barony/lang/en.txt
+
+.include <bsd.port.mk>
Index: games/barony/distinfo
===================================================================
--- /dev/null
+++ games/barony/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1524914514
+SHA256 (TurningWheel-Barony-v3.1.4_GH0.tar.gz) = bcf7522636a2dc21fdda47114f8d9c0eec78ca2c41613e896310e6110fbf04c4
+SIZE (TurningWheel-Barony-v3.1.4_GH0.tar.gz) = 53299453
Index: games/barony/files/barony.sh
===================================================================
--- /dev/null
+++ games/barony/files/barony.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+mkdir -p ~/.barony
+cd ~/.barony || { echo "Can't cd into ~/.barony" >&2; exit 1; }
+exec %%PREFIX%%/bin/barony-bin $@
Index: games/barony/files/patch-CMakeLists.txt
===================================================================
--- /dev/null
+++ games/barony/files/patch-CMakeLists.txt
@@ -0,0 +1,85 @@
+--- CMakeLists.txt.orig 2018-04-17 03:51:23.000000000 +0100
++++ CMakeLists.txt 2018-05-05 16:57:15.312350000 +0100
+@@ -290,7 +290,7 @@ SET_SOURCE_FILES_PROPERTIES(${MACOSX_BUN
+ set_source_files_properties(${GAME_SOURCES} PROPERTIES COMPILE_FLAGS "-x objective-c++")
+ #set_source_files_properties(${GAME_SOURCES} PROPERTIES COMPILE_FLAGS "-stdlib=libc++")
+ else()
+-add_executable(barony ${GAME_SOURCES})
++add_executable(barony-bin ${GAME_SOURCES})
+ endif()
+
+ if(WIN32)
+@@ -307,9 +307,9 @@ if(WIN32)
+ else()
+ if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
+ # 64 bit
+- target_link_libraries(barony -L/usr/lib64 -lstdc++)
++ target_link_libraries(barony-bin -L/usr/lib64 -lstdc++)
+ endif()
+- target_link_libraries(barony ${SDL2_LIBRARIES} ${SDL2_LIBRARY} ${SDL2IMAGE_LIBRARIES} ${SDL2_IMAGE_LIBRARIES} ${SDL2_NET_LIBRARIES} ${SDL2_TTF_LIBRARIES} ${SDL2TTF_LIBRARY})
++ target_link_libraries(barony-bin ${SDL2_LIBRARIES} ${SDL2_LIBRARY} ${SDL2IMAGE_LIBRARIES} ${SDL2_IMAGE_LIBRARIES} ${SDL2_NET_LIBRARIES} ${SDL2_TTF_LIBRARIES} ${SDL2TTF_LIBRARY})
+ if (STEAMWORKS_ENABLED)
+ target_link_libraries(barony ${STEAMWORKS_LIBRARY})
+ #target_link_libraries(barony ${STEAMWORKS_CWRAPPER_LIBRARIES} -lstdc++)
+@@ -322,17 +322,17 @@ else()
+ find_path(EXECINFO_INC NAMES execinfo.h)
+ find_library(EXECINFO_LIB NAMES execinfo)
+ include_directories(${EXECINFO_INC})
+- target_link_libraries(barony ${EXECINFO_LIB})
++ target_link_libraries(barony-bin ${EXECINFO_LIB})
+ endif()
+ endif()
+-target_link_libraries(barony ${OPENGL_LIBRARIES})
+-target_link_libraries(barony ${THREADS_LIBRARIES})
+-target_link_libraries(barony -lm)
++target_link_libraries(barony-bin ${OPENGL_LIBRARIES})
++target_link_libraries(barony-bin ${THREADS_LIBRARIES})
++target_link_libraries(barony-bin -lm)
+ if( NOT WIN32 AND NOT APPLE)
+ #Remember, Windows and Mac aren't using find_package for FMOD and PNG.
+- target_link_libraries(barony ${PNG_LIBRARY})
++ target_link_libraries(barony-bin ${PNG_LIBRARY})
+ if (FMOD_FOUND)
+- target_link_libraries(barony ${FMOD_LIBRARY})
++ target_link_libraries(barony-bin ${FMOD_LIBRARY})
+ endif()
+ endif()
+ # We need to link to Winsock if we're on Windows
+@@ -348,11 +348,11 @@ endif()
+ target_link_libraries(barony ${EXTRA_LIBS}) #Apple needs this for OpenGL to work.
+
+ if (OPENAL)
+- target_link_libraries(barony ${OPENAL_LIBRARY})
++ target_link_libraries(barony-bin ${OPENAL_LIBRARY})
+ if(TREMOR_ENABLED)
+- target_link_libraries(barony ${TREMOR_LIBRARY})
++ target_link_libraries(barony-bin ${TREMOR_LIBRARY})
+ else()
+- target_link_libraries(barony ${VORBISFILE_LIBRARY} ${OGG_LIBRARY})
++ target_link_libraries(barony-bin ${VORBISFILE_LIBRARY} ${OGG_LIBRARY})
+ endif()
+ endif()
+
+@@ -361,11 +361,11 @@ set(BASE_DATA_DIR "./" CACHE INTERNAL "B
+ if (NOT APPLE AND UNIX)
+ include(GNUInstallDirs)
+ if (DATA_DIR)
+- set(BASE_DATA_DIR "${CMAKE_INSTALL_FULL_DATAROOTDIR}/barony")
++ set(BASE_DATA_DIR "${CMAKE_INSTALL_FULL_DATAROOTDIR}/games/barony")
+ endif()
+ message(STATUS "Base data directory ${BASE_DATA_DIR}")
+
+- install(TARGETS barony
++ install(TARGETS barony-bin
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ COMPONENT Runtime
+ )
+@@ -445,7 +445,7 @@ if (NOT APPLE AND UNIX)
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT Runtime
+ )
+
+- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lang DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/barony)
++ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lang DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/games/barony)
+
+ if (EXISTS books)
+ install(DIRECTORY
Index: games/barony/pkg-descr
===================================================================
--- /dev/null
+++ games/barony/pkg-descr
@@ -0,0 +1,8 @@
+Barony is a 3D, first-person roguelike. The goal of the game is to descend to
+the bottom of a dark dungeon known as the Devil's Bastion and destroy an undead
+lich named Baron Herx, who terrorized the peaceful town of Hamlet in life and is
+now harboring a curse against the land from beyond the grave. To aid you in your
+quest are friendly humans who have been eeking out a rough life within the
+dungeon for generations, as well as any friends you can bring with you in real
+life: Barony is the first of its kind as a first-person roguelike in that it
+fully supports cooperative multiplayer for up to four players.

File Metadata

Mime Type
text/plain
Expires
Mon, Aug 17, 6:20 PM (16 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36861339
Default Alt Text
D15310.id42172.diff (6 KB)

Event Timeline