--- /dev/null +++ b/games/devilutionX/Makefile @@ -0,0 +1,41 @@ +# $FreeBSD$ + +PORTNAME= devilutionX +PORTVERSION= 0.4.0 +CATEGORIES= games + +MAINTAINER= benny.goemans@gmail.com +COMMENT= Open-source implementation of Diablo Game engine + +LICENSE= UNLICENSE + +ONLY_FOR_ARCHS= amd64 i386 +ONLY_FOR_ARCHS_REASON= Uses inline x86 assembly + +LIB_DEPENDS= libsodium.so:security/libsodium + +USES= cmake compiler:c++14-lang dos2unix sdl + +USE_GCC= yes +USE_SDL= sdl2 mixer2 ttf2 + +USE_GITHUB= yes +GH_ACCOUNT= diasurgical +GH_PROJECT= devilutionX +GH_TAGNAME= ${PORTVERSION} + +OPTIONS_DEFAULT= RELEASE + +OPTIONS_SINGLE= TYPE +OPTIONS_SINGLE_TYPE= RELEASE NIGHTLY + +RELEASE_DESC= Build a release build +NIGHTLY_DESC= Build a debug build + +RELEASE_CMAKE_BOOL= BINARY_RELEASE +NIGHTLY_CMAKE_BOOL= NIGHTLY_BUILD + +DESKTOP_ENTRIES="DevilutionX" "" "" "devilutionx" \ + "Game;AdventureGame;" false + +.include --- /dev/null +++ b/games/devilutionX/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1558349866 +SHA256 (diasurgical-devilutionX-0.4.0_GH0.tar.gz) = 2a2ca9c375aaca6958a4bcca001acf7e714e86adca80b1c03684befa48ea576c +SIZE (diasurgical-devilutionX-0.4.0_GH0.tar.gz) = 1351201 --- /dev/null +++ b/games/devilutionX/files/patch-CMakeLists.txt @@ -0,0 +1,8 @@ +--- CMakeLists.txt.orig 2019-05-13 15:14:29 UTC ++++ CMakeLists.txt +@@ -287,3 +287,5 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") + # Silence appfat.cpp warnings + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-narrowing") + endif() ++ ++install(TARGETS devilutionx DESTINATION ${BINDIR}) --- /dev/null +++ b/games/devilutionX/pkg-descr @@ -0,0 +1,4 @@ +Open-Source implementation of the Diablo(TM) game engine for X. This port +requires a file from the original game to work. + +WWW: https://github.com/diasurgical/devilutionX --- /dev/null +++ b/games/devilutionX/pkg-message @@ -0,0 +1,11 @@ +This game requires a datafile from the original Diablo(tm) CD or the GOG release. +If you don't own it yet, you can buy it at https://www.gog.com/game/diablo + +Copy DIABDAT.MPQ to ~/.local/share/diasurgical/devilution/diabdat.mpq +Pay attention to the case, the resulting file needs to be entirely lowercase! + +If you have any issues with this game, file a bug report on the GitHub page: +https://github.com/diasurgical/devilutionX/issues + +Note that only 32-bit builds are currently supported, amd64 is experimental but +seems to be working fine as far as I've tested. --- /dev/null +++ b/games/devilutionX/pkg-plist @@ -0,0 +1, @@ +bin/devilutionx