View | Details | Raw Unified | Return to bug 260561 | Differences between
and this patch

Collapse All | Expand All

(-)archivers/Makefile (+1 lines)
Lines 221-226 Link Here
221
    SUBDIR += snzip
221
    SUBDIR += snzip
222
    SUBDIR += squsq
222
    SUBDIR += squsq
223
    SUBDIR += star
223
    SUBDIR += star
224
    SUBDIR += stormlib
224
    SUBDIR += streamvbyte
225
    SUBDIR += streamvbyte
225
    SUBDIR += stuffit
226
    SUBDIR += stuffit
226
    SUBDIR += szip
227
    SUBDIR += szip
(-)archivers/stormlib/Makefile (+30 lines)
Added Link Here
1
PORTNAME=	stormlib
2
PORTVERSION=	9.23
3
DISTVERSIONPREFIX=	v
4
CATEGORIES=	archivers
5
6
MAINTAINER=	ports@FreeBSD.org
7
COMMENT=	Library to process MPQ (MoPaQ) archives
8
9
LICENSE=	MIT
10
LICENSE_FILE=	${WRKSRC}/LICENSE
11
12
LIB_DEPENDS=	libtomcrypt.so:security/libtomcrypt
13
14
USES=		cmake compiler:c++11-lang pkgconfig
15
USE_GITHUB=	yes
16
USE_LDCONFIG=	yes
17
GH_ACCOUNT=	ladislav-zezula
18
GH_PROJECT=	StormLib
19
CMAKE_ON=	BUILD_SHARED_LIBS WITH_LIBTOMCRYPT
20
21
OPTIONS_DEFINE=		DOCS
22
23
PORTDOCS=	*
24
25
post-install-DOCS-on:
26
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
27
	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
28
	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
29
30
.include <bsd.port.mk>
(-)archivers/stormlib/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1640272865
2
SHA256 (ladislav-zezula-StormLib-v9.23_GH0.tar.gz) = d62ba42f1e02efcb2cbaa03bd2e20fbd18c45499ef5fe65ffb89ee52a7bd9c92
3
SIZE (ladislav-zezula-StormLib-v9.23_GH0.tar.gz) = 605295
(-)archivers/stormlib/distinfo_ (+3 lines)
Added Link Here
1
TIMESTAMP = 1639926041
2
SHA256 (ladislav-zezula-stormlib-v9.23_GH0.tar.gz) = d62ba42f1e02efcb2cbaa03bd2e20fbd18c45499ef5fe65ffb89ee52a7bd9c92
3
SIZE (ladislav-zezula-stormlib-v9.23_GH0.tar.gz) = 605295
(-)archivers/stormlib/files/patch-CMakeLists.txt (+16 lines)
Added Link Here
1
--- CMakeLists.txt.orig	2020-11-21 03:27:09 UTC
2
+++ CMakeLists.txt
3
@@ -293,7 +293,12 @@ else()
4
 
5
     option(WITH_LIBTOMCRYPT "Use system LibTomCrypt library" OFF)
6
     if(WITH_LIBTOMCRYPT)
7
-        set(LINK_LIBS ${LINK_LIBS} tomcrypt)
8
+        include(FindPkgConfig)
9
+        pkg_check_modules(PC_LIBTOMCRYPT libtomcrypt REQUIRED)
10
+        find_path(LIBTOMCRYPT_INCLUDE_DIR NAMES tomcrypt.h HINTS ${PC_LIBTOMCRYPT_INCLUDE_DIRS} REQUIRED)
11
+        find_library(LIBTOMCRYPT_LIBRARY NAMES tomcrypt HINTS ${PC_LIBTOMCRYPT_LIBRARY_DIRS} REQUIRED)
12
+        set(LINK_LIBS ${LINK_LIBS} ${LIBTOMCRYPT_LIBRARY})
13
+        include_directories(${LIBTOMCRYPT_INCLUDE_DIR})
14
     else()
15
         set(SRC_ADDITIONAL_FILES ${TOMCRYPT_FILES} ${TOMMATH_FILES})
16
     endif()
(-)archivers/stormlib/pkg-descr (+9 lines)
Added Link Here
1
StormLib is a pack of C++ modules, which provide the user means to modify MPQ
2
archives
3
4
MPQ (MoPaQ) is an archive format developed by Blizzard Entertainment, purposed
5
for storing data files, images, sounds, music and videos for their games. The
6
name MoPaQ comes from the author of the format, Mike O'Brien (Mike O'brien
7
PaCK).
8
9
WWW: http://www.zezula.net/en/mpq/main.html
(-)archivers/stormlib/pkg-plist (+5 lines)
Added Link Here
1
include/StormLib.h
2
include/StormPort.h
3
lib/libstorm.so
4
lib/libstorm.so.9
5
lib/libstorm.so.9.22.0

Return to bug 260561