Bug 154763 - [NEW PORT] devel/stormlib-ghost++: C++ library to read and write MPQ archives
Summary: [NEW PORT] devel/stormlib-ghost++: C++ library to read and write MPQ archives
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-14 01:40 UTC by ports@c0decafe.net
Modified: 2011-02-14 03:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ports@c0decafe.net 2011-02-14 01:40:07 UTC
The StormLib library is a pack of modules, written in C++,
which are able to read and also to write files from/to the MPQ archives.

WWW:	https://code.google.com/p/ghostplusplus/

Generated with FreeBSD Port Tools 0.99

Fix: --- stormlib-ghost++-6.25.shar begins here ---


--- stormlib-ghost++-6.25.shar ends here -----9WgrJB4jkeYtEsWqEmlLL8yehkNHya8LTljdOU7XgudJAYLX
Content-Type: text/plain; name="file.shar"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.shar"

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	stormlib-ghost++
#	stormlib-ghost++/files
#	stormlib-ghost++/files/patch-Makefile
#	stormlib-ghost++/files/patch-StormPortLinux.cpp
#	stormlib-ghost++/pkg-descr
#	stormlib-ghost++/Makefile
#	stormlib-ghost++/pkg-plist
#	stormlib-ghost++/distinfo
#
echo c - stormlib-ghost++
mkdir -p stormlib-ghost++ > /dev/null 2>&1
echo c - stormlib-ghost++/files
mkdir -p stormlib-ghost++/files > /dev/null 2>&1
echo x - stormlib-ghost++/files/patch-Makefile
sed 's/^X//' >stormlib-ghost++/files/patch-Makefile << '09c7c2a04489b010bc33626f86d80fcf'
X--- Makefile
X+++ Makefile
X@@ -19,12 +19,11 @@
X 
X SHELL = /bin/sh
X SYSTEM = $(shell uname)
X-C++ = g++
X-CC = gcc
X+C++ = $(CXX)
X DFLAGS = -D__SYS_ZLIB
X OFLAGS =
X-LFLAGS = -lbz2 -lz
X-CFLAGS = -fPIC
X+LFLAGS += -lbz2 -lz
X+CFLAGS += -fPIC
X CFLAGS += $(OFLAGS) $(DFLAGS)
X 
X OBJS = SCommon.o SCompression.o SFileCompactArchive.o \
X@@ -66,8 +65,7 @@
X all: $(LIB)
X 
X install: $(LIB)
X-	install $(LIB) /usr/local/lib
X-	mkdir -p /usr/local/include/StormLib
X-	cp StormLib.h /usr/local/include/StormLib
X-	cp StormPort.h /usr/local/include/StormLib
X-	ldconfig
X+	install $(LIB) $(PREFIX)/lib
X+	mkdir -p $(PREFIX)/include/StormLib
X+	cp StormLib.h $(PREFIX)/include/StormLib
X+	cp StormPort.h $(PREFIX)/include/StormLib
09c7c2a04489b010bc33626f86d80fcf
echo x - stormlib-ghost++/files/patch-StormPortLinux.cpp
sed 's/^X//' >stormlib-ghost++/files/patch-StormPortLinux.cpp << 'f087be5186c66d8b86eb17fbf695484d'
X--- StormPortLinux.cpp
X+++ StormPortLinux.cpp
X@@ -24,6 +24,7 @@
X *
X ********************************************************************/
X 
X+#define O_LARGEFILE 0100000
X #ifndef _WIN32
X #include "StormPort.h"
X 
X@@ -104,8 +105,8 @@
X         return 0xffffffff;
X     }
X 
X-    struct stat64 fileinfo;
X-    fstat64((intptr_t)hFile, &fileinfo);
X+    struct stat fileinfo;
X+    fstat((intptr_t)hFile, &fileinfo);
X     
X     // Fix by Ladik: If "ulOffSetHigh" is not NULL, it needs to be set 
X     // to higher 32 bits of a file size.
X@@ -118,12 +119,12 @@
X 
X DWORD SetFilePointer(HANDLE hFile, LONG lOffSetLow, LONG *pOffSetHigh, DWORD ulMethod)
X {
X-    off64_t nFileOffset = (DWORD)lOffSetLow;
X+    off_t nFileOffset = (DWORD)lOffSetLow;
X 
X     if(pOffSetHigh != NULL)
X-        nFileOffset |= (*(off64_t *)pOffSetHigh) << 32;
X+        nFileOffset |= (*(off_t *)pOffSetHigh) << 32;
X 
X-    return lseek64((intptr_t)hFile, nFileOffset, ulMethod);
X+    return lseek((intptr_t)hFile, nFileOffset, ulMethod);
X }
X 
X BOOL SetEndOfFile(HANDLE hFile)
f087be5186c66d8b86eb17fbf695484d
echo x - stormlib-ghost++/pkg-descr
sed 's/^X//' >stormlib-ghost++/pkg-descr << '303cdb801669954a4cbefeb730abfada'
XThe StormLib library is a pack of modules, written in C++,
Xwhich are able to read and also to write files from/to the MPQ archives.
X
XWWW:	https://code.google.com/p/ghostplusplus/
303cdb801669954a4cbefeb730abfada
echo x - stormlib-ghost++/Makefile
sed 's/^X//' >stormlib-ghost++/Makefile << 'f0ec5fd580755077e3b1971628a56918'
X# New ports collection makefile for:	stormlib
X# Date created:		2011-02-13
X# Whom:			 <ports@c0decafe.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	stormlib
XPORTVERSION=	6.25
XCATEGORIES=	devel archivers
XMASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
XPKGNAMESUFFIX=	-ghost++
XDISTNAME=	${PROJECTHOST}_${PROJECTVERSION}
X
XMAINTAINER=	ports@c0decafe.net
XCOMMENT=	C++ library to read and write MPQ archives
X
XPROJECTHOST=	ghostplusplus
XPROJECTVERSION=	17.1
X
XUSE_ZIP=	yes
XUSE_DOS2UNIX=	yes
X
XWRKSRC=		${WRKDIR}/ghost/StormLib/stormlib
X
XUSE_GMAKE=	yes
XUSE_LDCONFIG=	yes
X
X.include <bsd.port.mk>
f0ec5fd580755077e3b1971628a56918
echo x - stormlib-ghost++/pkg-plist
sed 's/^X//' >stormlib-ghost++/pkg-plist << '52fbcf9c786346adae924291af0652f7'
X@comment $FreeBSD$
Xinclude/StormLib/StormLib.h
Xinclude/StormLib/StormPort.h
Xlib/libStorm.so
52fbcf9c786346adae924291af0652f7
echo x - stormlib-ghost++/distinfo
sed 's/^X//' >stormlib-ghost++/distinfo << '681f22afa14aa9942e3f87b2373c002c'
XSHA256 (ghostplusplus_17.1.zip) = bd4acc61ab553213cb39e6a465b38d1ea7a5b9b4ca2b54fa7e082766b98c729f
XSIZE (ghostplusplus_17.1.zip) = 6720401
681f22afa14aa9942e3f87b2373c002c
exit
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2011-02-14 02:04:00 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2011-02-14 03:24:51 UTC
State Changed
From-To: open->closed

New port added, with minor changes. Thanks!