1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00

archivers/stormlib: add port

StormLib is a pack of C++ modules, which provide the user means to modify MPQ
archives

MPQ (MoPaQ) is an archive format developed by Blizzard Entertainment, purposed
for storing data files, images, sounds, music and videos for their games. The
name MoPaQ comes from the author of the format, Mike O'Brien (Mike O'brien
PaCK).

WWW: http://www.zezula.net/en/mpq/main.html

PR:		260561
Submitted by:	agh@riseup.net
This commit is contained in:
Dmitry Marakasov 2021-12-24 12:25:31 +03:00
parent 5ca485a193
commit c9f5fec2c6
6 changed files with 64 additions and 0 deletions

View File

@ -222,6 +222,7 @@
SUBDIR += snzip
SUBDIR += squsq
SUBDIR += star
SUBDIR += stormlib
SUBDIR += streamvbyte
SUBDIR += stuffit
SUBDIR += szip

View File

@ -0,0 +1,30 @@
PORTNAME= stormlib
PORTVERSION= 9.23
DISTVERSIONPREFIX= v
CATEGORIES= archivers
MAINTAINER= ports@FreeBSD.org
COMMENT= Library to process MPQ (MoPaQ) archives
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libtomcrypt.so:security/libtomcrypt
USES= cmake compiler:c++11-lang pkgconfig
USE_GITHUB= yes
USE_LDCONFIG= yes
GH_ACCOUNT= ladislav-zezula
GH_PROJECT= StormLib
CMAKE_ON= BUILD_SHARED_LIBS WITH_LIBTOMCRYPT
OPTIONS_DEFINE= DOCS
PORTDOCS= *
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1640272865
SHA256 (ladislav-zezula-StormLib-v9.23_GH0.tar.gz) = d62ba42f1e02efcb2cbaa03bd2e20fbd18c45499ef5fe65ffb89ee52a7bd9c92
SIZE (ladislav-zezula-StormLib-v9.23_GH0.tar.gz) = 605295

View File

@ -0,0 +1,16 @@
--- CMakeLists.txt.orig 2020-11-21 03:27:09 UTC
+++ CMakeLists.txt
@@ -293,7 +293,12 @@ else()
option(WITH_LIBTOMCRYPT "Use system LibTomCrypt library" OFF)
if(WITH_LIBTOMCRYPT)
- set(LINK_LIBS ${LINK_LIBS} tomcrypt)
+ include(FindPkgConfig)
+ pkg_check_modules(PC_LIBTOMCRYPT libtomcrypt REQUIRED)
+ find_path(LIBTOMCRYPT_INCLUDE_DIR NAMES tomcrypt.h HINTS ${PC_LIBTOMCRYPT_INCLUDE_DIRS} REQUIRED)
+ find_library(LIBTOMCRYPT_LIBRARY NAMES tomcrypt HINTS ${PC_LIBTOMCRYPT_LIBRARY_DIRS} REQUIRED)
+ set(LINK_LIBS ${LINK_LIBS} ${LIBTOMCRYPT_LIBRARY})
+ include_directories(${LIBTOMCRYPT_INCLUDE_DIR})
else()
set(SRC_ADDITIONAL_FILES ${TOMCRYPT_FILES} ${TOMMATH_FILES})
endif()

View File

@ -0,0 +1,9 @@
StormLib is a pack of C++ modules, which provide the user means to modify MPQ
archives
MPQ (MoPaQ) is an archive format developed by Blizzard Entertainment, purposed
for storing data files, images, sounds, music and videos for their games. The
name MoPaQ comes from the author of the format, Mike O'Brien (Mike O'brien
PaCK).
WWW: http://www.zezula.net/en/mpq/main.html

View File

@ -0,0 +1,5 @@
include/StormLib.h
include/StormPort.h
lib/libstorm.so
lib/libstorm.so.9
lib/libstorm.so.9.22.0