pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add freeserf.



Module Name:	pkgsrc-wip
Committed By:	nia <nia%NetBSD.org@localhost>
Pushed By:	nee
Date:		Sat Sep 21 15:21:12 2019 +0100
Changeset:	a2867ede4a784dbde1713be0d6662dda69a48168

Modified Files:
	Makefile
Added Files:
	freeserf/DESCR
	freeserf/MESSAGE
	freeserf/Makefile
	freeserf/PLIST
	freeserf/TODO
	freeserf/distinfo
	freeserf/files/freeserf.desktop
	freeserf/patches/patch-CMakeLists.txt

Log Message:
Add freeserf.

A faithful clone of the brilliant simulation game The Settlers
(also known as Serf City: Life is Feudal).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a2867ede4a784dbde1713be0d6662dda69a48168

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                              |  1 +
 freeserf/DESCR                        |  2 ++
 freeserf/MESSAGE                      | 19 +++++++++++++
 freeserf/Makefile                     | 52 +++++++++++++++++++++++++++++++++++
 freeserf/PLIST                        |  7 +++++
 freeserf/TODO                         |  1 +
 freeserf/distinfo                     |  7 +++++
 freeserf/files/freeserf.desktop       |  9 ++++++
 freeserf/patches/patch-CMakeLists.txt | 17 ++++++++++++
 9 files changed, 115 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index f44e24c5f8..56251ac033 100644
--- a/Makefile
+++ b/Makefile
@@ -876,6 +876,7 @@ SUBDIR+=	freedup16
 SUBDIR+=	freefem++
 SUBDIR+=	freej
 SUBDIR+=	freerdp
+SUBDIR+=	freeserf
 SUBDIR+=	freeswitch-core
 SUBDIR+=	freeswitch-music
 SUBDIR+=	freesynd
diff --git a/freeserf/DESCR b/freeserf/DESCR
new file mode 100644
index 0000000000..432d1f800d
--- /dev/null
+++ b/freeserf/DESCR
@@ -0,0 +1,2 @@
+A faithful clone of the brilliant simulation game The Settlers
+(also known as Serf City: Life is Feudal).
diff --git a/freeserf/MESSAGE b/freeserf/MESSAGE
new file mode 100644
index 0000000000..0d82aa7b98
--- /dev/null
+++ b/freeserf/MESSAGE
@@ -0,0 +1,19 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.2 2018/10/15 17:53:23 nia Exp $
+
+The original data files from the DOS or Amiga versions is required for the
+game to function.
+
+The name of the Amiga files are: gfxheader, gfxfast, gfxchip, gfxpics,
+sounds, music.
+
+The name of the DOS file is SPAE.PA, SPAD.PA, SPAF.PA, or SPAU.PA,
+depending on the language.
+
+It is very important that you copy the data after actually installing the
+original game, otherwise the data file will be compressed. The DOS data
+file will be about 1.3MB.
+
+Place them in ${PREFIX}/share/freeserf or ~/.local/share/freeserf.
+
+===========================================================================
diff --git a/freeserf/Makefile b/freeserf/Makefile
new file mode 100644
index 0000000000..9874e75470
--- /dev/null
+++ b/freeserf/Makefile
@@ -0,0 +1,52 @@
+# $NetBSD$
+
+DISTNAME=	freeserf-0.3
+CATEGORIES=	games
+MASTER_SITES=	${MASTER_SITE_GITHUB:=freeserf/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://jonls.dk/freeserf/
+COMMENT=	Settlers 1 (Serf City: Life is Feudal) clone
+LICENSE=	gnu-gpl-v3
+
+USE_CMAKE=	yes
+USE_TOOLS+=	pkg-config
+USE_LANGUAGES=	c c++11
+
+# C++11
+GCC_REQD+=	4.7
+
+CMAKE_ARGS+=	-DENABLE_TESTS=OFF
+CMAKE_ARGS+=	-DFREESERF_VERSION=${PKGVERSION}
+
+SUBST_CLASSES+=		prefix
+SUBST_STAGE.prefix=	pre-configure
+SUBST_MESSAGE.prefix=	Correcting path to PREFIX.
+SUBST_FILES.prefix+=	src/data.cc
+SUBST_SED.prefix+=	-e "s,/usr/local,${PREFIX},g"
+
+PYTHON_FOR_BUILD_ONLY=	tool
+
+INSTALLATION_DIRS+=	bin
+INSTALLATION_DIRS+=	share/applications
+INSTALLATION_DIRS+=	share/doc/freeserf
+INSTALLATION_DIRS+=	share/freeserf
+INSTALLATION_DIRS+=	share/pixmaps
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/src/FreeSerf \
+	    ${DESTDIR}${PREFIX}/bin/freeserf
+	${INSTALL_DATA} ${FILESDIR}/freeserf.desktop \
+	    ${DESTDIR}${PREFIX}/share/applications
+	${INSTALL_DATA} ${WRKSRC}/cmake/icon.png \
+	    ${DESTDIR}${PREFIX}/share/pixmaps/freeserf.png
+	cd ${WRKSRC} && ${INSTALL_DATA} README.md COPYING \
+	    ${DESTDIR}${PREFIX}/share/doc/freeserf
+
+.include "../../audio/SDL2_mixer/buildlink3.mk"
+.include "../../audio/libxmp/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../graphics/SDL2_image/buildlink3.mk"
+.include "../../lang/python/tool.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/freeserf/PLIST b/freeserf/PLIST
new file mode 100644
index 0000000000..5018b81ca2
--- /dev/null
+++ b/freeserf/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD$
+bin/freeserf
+share/applications/freeserf.desktop
+share/doc/freeserf/COPYING
+share/doc/freeserf/README.md
+share/pixmaps/freeserf.png
+@pkgdir share/freeserf
diff --git a/freeserf/TODO b/freeserf/TODO
new file mode 100644
index 0000000000..613a363842
--- /dev/null
+++ b/freeserf/TODO
@@ -0,0 +1 @@
+Segfaults a lot. Wait for it to become more stable, probably.
diff --git a/freeserf/distinfo b/freeserf/distinfo
new file mode 100644
index 0000000000..e1dedf8161
--- /dev/null
+++ b/freeserf/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (freeserf-0.3.tar.gz) = f8c9e038536b8dc4519104d8ce32ebf66b909830
+RMD160 (freeserf-0.3.tar.gz) = 174287b4c95b26879c96d8a013c86e9a2871e4b0
+SHA512 (freeserf-0.3.tar.gz) = fe7ef340d736990218d561316812031f58af9f258bab296f1cbd8de0d4c58610a4e8d8d11f490fc873a596cf49f7b203cfb51881c25717ce31fa7ba3eb0299b1
+Size (freeserf-0.3.tar.gz) = 862188 bytes
+SHA1 (patch-CMakeLists.txt) = 15d6fc895f72fe25aa5cedd2c38e24119c9a2e8c
diff --git a/freeserf/files/freeserf.desktop b/freeserf/files/freeserf.desktop
new file mode 100644
index 0000000000..264933ef0b
--- /dev/null
+++ b/freeserf/files/freeserf.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Encoding=UTF-8
+Name=Freeserf
+Comment=Settlers 1 (Serf City) clone
+Icon=freeserf
+Exec=FreeSerf
+Terminal=false
+Categories=Game;StrategyGame;
diff --git a/freeserf/patches/patch-CMakeLists.txt b/freeserf/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..87a0e9000b
--- /dev/null
+++ b/freeserf/patches/patch-CMakeLists.txt
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Don't try to use git to find the version.
+
+--- CMakeLists.txt.orig	2019-01-20 08:58:53.000000000 +0000
++++ CMakeLists.txt
+@@ -10,10 +10,6 @@ set_property(GLOBAL PROPERTY USE_FOLDERS
+ 
+ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
+ 
+-include(GitTools)
+-git_make_version(FREESERF_VERSION ${CMAKE_CURRENT_SOURCE_DIR} ${PROJECT_VERSION})
+-message(STATUS "FREESERF_VERSION = ${FREESERF_VERSION}")
+-
+ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+   set(CMAKE_CXX_FLAGS "-std=gnu++11 ${CMAKE_CXX_FLAGS}")
+ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")


Home | Main Index | Thread Index | Old Index