aboutsummaryrefslogtreecommitdiffstats
path: root/games/dhewm3
diff options
context:
space:
mode:
Diffstat (limited to 'games/dhewm3')
-rw-r--r--games/dhewm3/Makefile57
-rw-r--r--games/dhewm3/distinfo2
-rw-r--r--games/dhewm3/files/pkg-message.in25
-rw-r--r--games/dhewm3/pkg-descr10
-rw-r--r--games/dhewm3/pkg-plist8
5 files changed, 102 insertions, 0 deletions
diff --git a/games/dhewm3/Makefile b/games/dhewm3/Makefile
new file mode 100644
index 000000000000..b6cef60d2d31
--- /dev/null
+++ b/games/dhewm3/Makefile
@@ -0,0 +1,57 @@
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= dhewm3
+PORTVERSION= 1.4.0
+CATEGORIES= games
+
+MAINTAINER= amdmi3@FreeBSD.org
+COMMENT= Doom 3 GPL source port
+
+LICENSE= GPLv3 # or later
+LICENSE_FILE= ${WRKSRC}/../COPYING.txt
+
+LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
+ libogg.so:${PORTSDIR}/audio/libogg \
+ libvorbis.so:${PORTSDIR}/audio/libvorbis
+
+USE_GITHUB= yes
+GH_ACCOUNT= dhewm
+
+USES= cmake jpeg openal:al
+USE_SDL= sdl2
+
+WRKSRC_SUBDIR= neo
+
+SUB_FILES= pkg-message
+
+PORTDOCS= *
+
+DESKTOP_ENTRIES="dhewm 3" \
+ "" \
+ "doom3" \
+ "${PORTNAME}" \
+ "Game;ActionGame;" \
+ ""
+
+OPTIONS_DEFINE= OPTIMIZED_CFLAGS DEDICATED DOCS
+OPTIONS_DEFAULT=OPTIMIZED_CFLAGS DEDICATED
+OPTIONS_SUB= yes
+
+DEDICATED_DESC= Build dedicated server
+DEDICATED_CMAKE_ON= -DDEDICATED=ON
+
+post-patch-OPTIMIZED_CFLAGS-off:
+ @${REINPLACE_CMD} -e 's|-O3 -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer||' ${WRKSRC}/CMakeLists.txt
+
+post-install:
+ ${MKDIR} ${STAGEDIR}${DATADIR}/base
+ ${MKDIR} ${STAGEDIR}${DATADIR}/d3xp
+ ${INSTALL_DATA} ${WRKSRC}/sys/linux/setup/image/doom3.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/
+
+post-install-DOCS-on:
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/../README.md ${STAGEDIR}${DOCSDIR}/
+
+.include <bsd.port.mk>
diff --git a/games/dhewm3/distinfo b/games/dhewm3/distinfo
new file mode 100644
index 000000000000..9ca51f3e96e9
--- /dev/null
+++ b/games/dhewm3/distinfo
@@ -0,0 +1,2 @@
+SHA256 (dhewm-dhewm3-1.4.0_GH0.tar.gz) = b579cd2d07d4efc0ebb536c933857ee28a302d9e9484ebd5bda9b40f8da17f88
+SIZE (dhewm-dhewm3-1.4.0_GH0.tar.gz) = 5311334
diff --git a/games/dhewm3/files/pkg-message.in b/games/dhewm3/files/pkg-message.in
new file mode 100644
index 000000000000..79f64bf1b51a
--- /dev/null
+++ b/games/dhewm3/files/pkg-message.in
@@ -0,0 +1,25 @@
+You need data files from original Doom 3 version 1.3.1 (NOT BFG
+edition):
+
+ MD5 (base/pak000.pk4) = 71b8d37b2444d3d86a36fd61783844fe
+ MD5 (base/pak001.pk4) = 4bc4f3ba04ec2b4f4837be40e840a3c1
+ MD5 (base/pak002.pk4) = fa84069e9642ad9aa4b49624150cc345
+ MD5 (base/pak003.pk4) = f22d8464997924e4913e467e7d62d5fe
+ MD5 (base/pak004.pk4) = 38561a3c73f93f2e6fd31abf1d4e9102
+ MD5 (base/pak005.pk4) = 2afd4ece27d36393b7538d55a345b90d
+ MD5 (base/pak006.pk4) = a6e7003fa9dcc75073dc02b56399b370
+ MD5 (base/pak007.pk4) = 6319f086f930ec1618ab09b4c20c268c
+ MD5 (base/pak008.pk4) = 28750b7841de9453eb335bad6841a2a5
+
+Please place them under %%DATADIR%%/base.
+
+Optionally, you can also use Resurrection of Evil expansion pack
+files:
+
+ MD5 (d3xp/pak000.pk4) = a883fef0fd10aadeb73d34c462ff865d
+ MD5 (d3xp/pak001.pk4) = 06fc9be965e345587064056bf22236d2
+
+These should be placed under %%DATADIR%%/d3xp
+
+Please consult https://github.com/dhewm/dhewm3/wiki/FAQ for more
+info.
diff --git a/games/dhewm3/pkg-descr b/games/dhewm3/pkg-descr
new file mode 100644
index 000000000000..f0e45cc671dc
--- /dev/null
+++ b/games/dhewm3/pkg-descr
@@ -0,0 +1,10 @@
+dhewm 3 is a Doom 3 GPL source port, know to work on at least
+Windows, Linux, Mac OS X and FreeBSD.
+
+The goal of dhewm 3 is bring DOOM 3 with the help of SDL to all
+suitable platforms.
+
+Bugs present in the original DOOM 3 will be fixed (when identified)
+without altering the original gameplay.
+
+WWW: https://github.com/dhewm/dhewm3
diff --git a/games/dhewm3/pkg-plist b/games/dhewm3/pkg-plist
new file mode 100644
index 000000000000..9c73657ed495
--- /dev/null
+++ b/games/dhewm3/pkg-plist
@@ -0,0 +1,8 @@
+bin/dhewm3
+%%DEDICATED%%bin/dhewm3ded
+lib/dhewm3/base.so
+lib/dhewm3/d3xp.so
+share/pixmaps/doom3.png
+@dir %%DATADIR%%/d3xp
+@dir %%DATADIR%%/base
+@dir %%DATADIR%%