games/freesynd: Update to 0.8

- Add LICENSE
This commit is contained in:
Guido Falsi
2024-06-15 19:12:34 +02:00
parent 0f489f5d1e
commit abe7fa2d17
8 changed files with 54 additions and 82 deletions

View File

@@ -1,22 +1,38 @@
PORTNAME= freesynd
PORTVERSION= 0.7.5
DISTVERSION= 0.8
DISTVERSIONSUFFIX= -Source
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
DISTNAME= Freesynd-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
MAINTAINER= madpilot@FreeBSD.org
COMMENT= Reimplementation of the classic Bullfrog game Syndicate
WWW= http://freesynd.sourceforge.net/
LIB_DEPENDS= libpng.so:graphics/png
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cmake:insource sdl
USE_SDL= sdl image mixer
LIB_DEPENDS= libpng16.so:graphics/png
USES= cmake sdl zip
USE_SDL= image2 mixer2 sdl2
CMAKE_ARGS= -DCMAKE_INSTALL_DOCDIR=${DOCSDIR}
SUB_FILES= pkg-message
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/src/freesynd ${STAGEDIR}${PREFIX}/bin
(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR})
OPTIONS_DEFINE= DOXYGEN
OPTIONS_DEFAULT= DOXYGEN
OPTIONS_SUB= yes
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
post-patch-DOXYGEN-off:
@${REINPLACE_CMD} -e '/find_package(Doxygen)/d' \
${WRKSRC}/CMakeLists.txt
post-install:
@${MV} ${STAGEDIR}/${ETCDIR}/freesynd.ini \
${STAGEDIR}/${ETCDIR}/freesynd.ini.sample
.include <bsd.port.mk>

View File

@@ -1,2 +1,3 @@
SHA256 (freesynd-0.7.5.tar.gz) = 1a1611cdc3af5659fcc3f6c1db5e4895e67b5a7b22c55416ffeeedd6360080e3
SIZE (freesynd-0.7.5.tar.gz) = 2622888
TIMESTAMP = 1717944793
SHA256 (Freesynd-0.8-Source.zip) = a73de4657c5d945e338a14b915ccd976c473f9da5a965f0dc22fb2a233a5158b
SIZE (Freesynd-0.8-Source.zip) = 6406015

View File

@@ -1,21 +0,0 @@
--- src/app.h.orig 2016-05-01 20:07:33 UTC
+++ src/app.h
@@ -153,13 +153,13 @@ class App : public Singleton < App > { (private)
private:
bool running_;
/*! A structure to hold general application informations.*/
- std::auto_ptr<AppContext> context_;
+ std::unique_ptr<AppContext> context_;
/*! A structure to hold player informations.*/
- std::auto_ptr<GameSession> session_;
+ std::unique_ptr<GameSession> session_;
/*! Controls the game logic. */
- std::auto_ptr<GameController> game_ctlr_;
- std::auto_ptr<Screen> screen_;
- std::auto_ptr<System> system_;
+ std::unique_ptr<GameController> game_ctlr_;
+ std::unique_ptr<Screen> screen_;
+ std::unique_ptr<System> system_;
std::string iniPath_;

View File

@@ -1,11 +0,0 @@
--- src/dump.cpp.orig 2016-05-01 20:07:33 UTC
+++ src/dump.cpp
@@ -584,7 +584,7 @@ int main(int argc, char *argv[]) {
}
LOG(Log::k_FLG_INFO, "Main", "main", ("----- Initializing application..."))
- std::auto_ptr<EditorApp> app(new EditorApp(disable_sound));
+ std::unique_ptr<EditorApp> app(new EditorApp(disable_sound));
if (app->initialize(iniPath)) {
LOG(Log::k_FLG_INFO, "Main", "main", ("----- Initializing application completed"))

View File

@@ -1,19 +0,0 @@
--- src/editor/editorapp.h.orig 2016-05-01 20:07:33 UTC
+++ src/editor/editorapp.h
@@ -122,12 +122,12 @@ class EditorApp : public Singleton < EditorApp > { (pr
private:
bool running_;
- std::auto_ptr<Screen> screen_;
- std::auto_ptr<System> system_;
+ std::unique_ptr<Screen> screen_;
+ std::unique_ptr<System> system_;
/*! A structure to hold general application informations.*/
- std::auto_ptr<AppContext> context_;
+ std::unique_ptr<AppContext> context_;
/*! Controls the game logic. */
- std::auto_ptr<GameController> game_ctlr_;
+ std::unique_ptr<GameController> game_ctlr_;
std::string iniPath_;

View File

@@ -1,11 +0,0 @@
--- src/freesynd.cpp.orig 2016-05-01 20:07:33 UTC
+++ src/freesynd.cpp
@@ -229,7 +229,7 @@ int main(int argc, char *argv[]) {
}
LOG(Log::k_FLG_INFO, "Main", "main", ("----- Initializing application..."))
- std::auto_ptr<App> app(new App(disable_sound));
+ std::unique_ptr<App> app(new App(disable_sound));
if (app->initialize(iniPath)) {
// setting the cheat codes

View File

@@ -0,0 +1,13 @@
--- utils/src/file.cpp.orig 2024-05-15 21:07:46 UTC
+++ utils/src/file.cpp
@@ -356,8 +356,8 @@ void File::setOriginalDataFolder(const std::string& pa
#if defined(__APPLE__)
// Under Mac, it can't be in the bundle as user should not access it
#else
- // Under Windows/unix it's in the same directory as our data
- dataPath_ = ourDataPath_;
+ // Under Windows/unix it's in the data subdirectory of our data
+ dataPath_ = ourDataPath_ / "data";
#endif
}
LOG(Log::k_FLG_IO, "File", "setOriginalDataPath", ("set data path to %s", dataPath_.string().c_str()));

View File

@@ -1,11 +1,15 @@
bin/freesynd
%%DATADIR%%/data/cursors/cursors.png
%%DATADIR%%/data/lang/english.lng
%%DATADIR%%/data/lang/french.lng
%%DATADIR%%/data/lang/german.lng
%%DATADIR%%/data/lang/italian.lng
%%DATADIR%%/data/music/assassinate.ogg
%%DATADIR%%/data/music/intro.ogg
%%DATADIR%%/data/ref/original_data.crc
%%DATADIR%%/data/ref/research.dat
%%DATADIR%%/data/ref/weapons.dat
@sample %%ETCDIR%%/freesynd.ini.sample
%%DOCSDIR%%/changelog.gz
%%DOCSDIR%%/copyright
%%DATADIR%%/cursors/cursors.png
%%DATADIR%%/lang/english.lng
%%DATADIR%%/lang/french.lng
%%DATADIR%%/lang/german.lng
%%DATADIR%%/lang/italian.lng
%%DATADIR%%/music/assassinate.ogg
%%DATADIR%%/music/intro.ogg
%%DATADIR%%/ref/original_data.crc
%%DATADIR%%/ref/research.dat
%%DATADIR%%/ref/weapons.dat
%%DOXYGEN%%share/man/man6/freesynd.6.gz