pkgsrc-WIP-changes archive

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

Import StormLib 9.22 as wip/stormlib.



Module Name:	pkgsrc-wip
Committed By:	Charlotte Koch <cfkoch%edgebsd.org@localhost>
Pushed By:	cfkoch
Date:		Sat Jul 6 17:33:58 2019 -0700
Changeset:	869fea8a32e01605cba484fe187eb00d582cb0e6

Modified Files:
	Makefile
Added Files:
	stormlib/DESCR
	stormlib/Makefile
	stormlib/PLIST
	stormlib/buildlink3.mk
	stormlib/distinfo
	stormlib/patches/patch-CMakeLists.txt

Log Message:
Import StormLib 9.22 as wip/stormlib.

The StormLib library is a pack of modules, written in C++, which are able to
read and also to write files from/to MPQ archives, Blizzard's archive format
for games such as Diablo, Warcraft and Starcraft.

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

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

diffstat:
 Makefile                              |  1 +
 stormlib/DESCR                        |  3 +++
 stormlib/Makefile                     | 22 ++++++++++++++++++++++
 stormlib/PLIST                        |  5 +++++
 stormlib/buildlink3.mk                | 13 +++++++++++++
 stormlib/distinfo                     |  7 +++++++
 stormlib/patches/patch-CMakeLists.txt | 17 +++++++++++++++++
 7 files changed, 68 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index d264aeb139..42a36c8bf9 100644
--- a/Makefile
+++ b/Makefile
@@ -4562,6 +4562,7 @@ SUBDIR+=	stksolver
 SUBDIR+=	stmd-git
 SUBDIR+=	stmpclean
 SUBDIR+=	stonx
+SUBDIR+=	stormlib
 SUBDIR+=	stress
 SUBDIR+=	stress-ng
 SUBDIR+=	strongswan
diff --git a/stormlib/DESCR b/stormlib/DESCR
new file mode 100644
index 0000000000..dfe34fe68b
--- /dev/null
+++ b/stormlib/DESCR
@@ -0,0 +1,3 @@
+The StormLib library is a pack of modules, written in C++, which are able to
+read and also to write files from/to MPQ archives, Blizzard's archive format
+for games such as Diablo, Warcraft and Starcraft.
diff --git a/stormlib/Makefile b/stormlib/Makefile
new file mode 100644
index 0000000000..89bb5937e3
--- /dev/null
+++ b/stormlib/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD$
+
+DISTNAME=	stormlib-9.22
+CATEGORIES=	games
+MASTER_SITES=	${MASTER_SITE_GITHUB:=ladislav-zezula/}
+GITHUB_PROJECT=	StormLib
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	cfkoch%edgebsd.org@localhost
+HOMEPAGE=	http://www.zezula.net/en/mpq/stormlib.html
+COMMENT=	Blizzard MPQ archive tool
+LICENSE=	mit
+
+EXTRACT_USING=	gtar
+USE_CMAKE=	yes
+USE_LANGUAGES=	c c++
+
+CMAKE_ARGS+=	-DSTORM_BUILD_TESTS=OFF
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/stormlib/PLIST b/stormlib/PLIST
new file mode 100644
index 0000000000..cc9485e0fb
--- /dev/null
+++ b/stormlib/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+bin/storm_test
+include/StormLib.h
+include/StormPort.h
+lib/libstorm.a
diff --git a/stormlib/buildlink3.mk b/stormlib/buildlink3.mk
new file mode 100644
index 0000000000..d59762c876
--- /dev/null
+++ b/stormlib/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	stormlib
+
+.if !defined(STORMLIB_BUILDLINK3_MK)
+STORMLIB_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.stormlib+=	stormlib-9.*
+BUILDLINK_PKGSRCDIR.stormlib?=		../../wip/stormlib
+
+.endif # STORMLIB_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-stormlib
diff --git a/stormlib/distinfo b/stormlib/distinfo
new file mode 100644
index 0000000000..b783f066d9
--- /dev/null
+++ b/stormlib/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (stormlib-9.22.tar.gz) = 661b7010a2df3dea2f01a72688af59361a4a4ccf
+RMD160 (stormlib-9.22.tar.gz) = 485bc2aba7d3f3ade94725a5b494e04e60ae68e4
+SHA512 (stormlib-9.22.tar.gz) = e08571fca21be2e853d390b8feda32001df810b8f4b60d36822a9de2a877f2be9d3dadacfeec181a2eb80e00b8fed66d0dc9a0d8d9e043e2959478a41ed4d13a
+Size (stormlib-9.22.tar.gz) = 600531 bytes
+SHA1 (patch-CMakeLists.txt) = 6ed844914f9493a4f9996efa9bd15c24003b0029
diff --git a/stormlib/patches/patch-CMakeLists.txt b/stormlib/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..89f7aa8bb3
--- /dev/null
+++ b/stormlib/patches/patch-CMakeLists.txt
@@ -0,0 +1,17 @@
+# $NetBSD$
+
+Enable NetBSD support.
+
+--- CMakeLists.txt.orig	2019-07-06 17:17:05.108805505 -0700
++++ CMakeLists.txt	2019-07-06 17:20:01.408439446 -0700
+@@ -293,8 +293,8 @@
+     endif()
+ endif()
+ 
+-if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
+-    message(STATUS "Using FreeBSD port")
++if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD OR ${CMAKE_SYSTEM_NAME} STREQUAL NetBSD)
++    message(STATUS "Using ${CMAKE_SYSTEM_NAME} port")
+     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DO_LARGEFILE=0 -Dstat64=stat -Dlstat64=lstat -Dlseek64=lseek -Doff64_t=off_t -Dfstat64=fstat -Dftruncate64=ftruncate")
+ endif()
+ 


Home | Main Index | Thread Index | Old Index