Index: head/games/chocolate-doom/Makefile =================================================================== --- head/games/chocolate-doom/Makefile (revision 490374) +++ head/games/chocolate-doom/Makefile (revision 490375) @@ -1,35 +1,36 @@ # $FreeBSD$ PORTNAME= chocolate-doom -PORTVERSION= 2.3.0 +PORTVERSION= 3.0.0 CATEGORIES= games MASTER_SITES= http://www.chocolate-doom.org/downloads/${PORTVERSION}/ MAINTAINER= jakub_lach@mailplus.pl COMMENT= Doom/Heretic/Hexen/Strife engine port compatible with the originals LICENSE= GPLv2 LIB_DEPENDS= libpng.so:graphics/png -USES= gmake python:build -USE_SDL= mixer net sdl +USES= gmake python:build pkgconfig +USE_SDL= mixer2 net2 sdl2 GNU_CONFIGURE= yes BINARY_ALIAS= python=${PYTHON_CMD} PORTDOCS= CMDLINE.doom ChangeLog INSTALL.doom NEWS.md NOT-BUGS.md PHILOSOPHY.md \ README.md README.Music.md OPTIONS_DEFINE= DOCS +USE_RC_SUBR= chocolate-server .include "${.CURDIR}/../doom-data/Makefile.include" post-patch: ${REINPLACE_CMD} -e 's|gamesdir = $${exec_prefix}/games|gamesdir = $${exec_prefix}/bin|' \ ${WRKSRC}/src/Makefile.in ${REINPLACE_CMD} -e 's|gamesdir = $$(prefix)/games|gamesdir = $$(prefix)/bin|' \ ${WRKSRC}/src/setup/Makefile.in post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/chocolate-* .include Index: head/games/chocolate-doom/distinfo =================================================================== --- head/games/chocolate-doom/distinfo (revision 490374) +++ head/games/chocolate-doom/distinfo (revision 490375) @@ -1,3 +1,3 @@ -TIMESTAMP = 1483106037 -SHA256 (chocolate-doom-2.3.0.tar.gz) = 3e6d1a82ac5c8b025a9695ce1e47d0dc6ed142ebb1129b1e4a70e2740f79150c -SIZE (chocolate-doom-2.3.0.tar.gz) = 2190744 +TIMESTAMP = 1514687305 +SHA256 (chocolate-doom-3.0.0.tar.gz) = 73aea623930c7d18a7a778eea391e1ddfbe90ad1ac40a91b380afca4b0e1dab8 +SIZE (chocolate-doom-3.0.0.tar.gz) = 2495591 Index: head/games/chocolate-doom/files/chocolate-server.in =================================================================== --- head/games/chocolate-doom/files/chocolate-server.in (nonexistent) +++ head/games/chocolate-doom/files/chocolate-server.in (revision 490375) @@ -0,0 +1,22 @@ +#!/bin/sh +# +# PROVIDE: chocolate_server +# REQUIRE: LOGIN +# KEYWORD: shutdown + +. /etc/rc.subr + +name="chocolate_server" +rcvar=`set_rcvar` + +load_rc_config $name + +: ${chocolate_server_enable:="NO"} +: ${chocolate_server_commandline:=""} + +pidfile="/var/run/${name}.pid" +command="/usr/sbin/daemon" +procname="%%PREFIX%%/bin/chocolate-server" +command_args="-f -p ${pidfile} -u nobody %%PREFIX%%/bin/chocolate-server $chocolate_server_commandline" + +run_rc_command "$1" Property changes on: head/games/chocolate-doom/files/chocolate-server.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/games/chocolate-doom/files/patch-src_d__iwad.c =================================================================== --- head/games/chocolate-doom/files/patch-src_d__iwad.c (revision 490374) +++ head/games/chocolate-doom/files/patch-src_d__iwad.c (revision 490375) @@ -1,11 +1,11 @@ ---- src/d_iwad.c.orig 2015-09-26 11:05:54 UTC -+++ src/d_iwad.c -@@ -632,7 +632,7 @@ static void AddXdgDirs(void) +--- src/d_iwad.c.orig 2017-12-30 16:20:28.000000000 -0500 ++++ src/d_iwad.c 2018-01-25 09:43:00.567417000 -0500 +@@ -658,7 +658,7 @@ // The "standard" location for IWADs on Unix that is supported by most // source ports is /usr/share/games/doom - we support this through the // XDG_DATA_DIRS mechanism, through which it can be overridden. - AddIWADPath(env, "/games/doom"); + AddIWADPath(env, "/doom"); - } - // + // The convention set by RBDOOM-3-BFG is to install Doom 3: BFG + // Edition into this directory, under which includes the Doom Index: head/games/chocolate-doom/pkg-message =================================================================== --- head/games/chocolate-doom/pkg-message (revision 490374) +++ head/games/chocolate-doom/pkg-message (revision 490375) @@ -1,10 +1,44 @@ ****************************************************** -To switch on OPL (Adlib/SB) or GUS emulation you need -to run chocolate-doom-setup, default Native MIDI is -very similar to Roland SC-55. +The default location for a configuration files and +saves is no longer ~/.chocolate-doom, current one is +~/.local/share/chocolate-doom/. -GUS emulation needs setting "gus_patch_path" in *.cfg -to GUS patch set (dgguspat.zip). +You can recreate the sound of the historical vanilla +game according to your own experience. + +The default is an emulation of OPL2 Chip (Adlib/ +Soundblaster) for MIDI music output. OPL3 is also +available. + +If you prefer Gravis Ultrasound, ensure that +audio/guspat is installed, run chocolate-doom-setup, +select "Configure Sound", choose "GUS (emulated)", +and enter the path: + +/usr/local/share/guspat/inst/GUS + +into the "Path to patch files:" field. + +If you wish to enable native MIDI, ensure that a +suitable set of patches is installed such as +audio/eawpats, audio/eawplus, audio/freepats, or +audio/guspat, enter chocolate-doom-setup, select +"Configure Sound", choose "Native MIDI", and enter +the path to the Timidity configuration file. + +Examples: + +/usr/local/share/timidity/timidity.cfg-eawpats + +/usr/local/share/timidity/timidity.cfg-eawplus + +/usr/local/share/freepats/freepats.cfg + +/usr/local/share/timidity/timidity.cfg-guspat + +If you choose either Gravis Ultrasound emulation or +native MIDI and provide no path, there will be no +music. ******************************************************