Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Feb 2011 03:35:49 +0200 (EET)
From:      "ports@c0decafe.net" <ports@c0decafe.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/154763: [NEW PORT] devel/stormlib-ghost++: C++ library to read and write MPQ archives
Message-ID:  <201102140135.p1E1ZncR097272@absolut.c0decafe.net>
Resent-Message-ID: <201102140140.p1E1e89e031631@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         154763
>Category:       ports
>Synopsis:       [NEW PORT] devel/stormlib-ghost++: C++ library to read and write MPQ archives
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 14 01:40:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     ports@c0decafe.net
>Release:        FreeBSD 8.1-RELEASE-p2 amd64
>Organization:
c0decafe networks
>Environment:
System: FreeBSD absolut.c0decafe.net 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #2: Sat Dec 11 02:59:34 EET 2010
>Description:
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
>How-To-Repeat:
>Fix:

--- stormlib-ghost++-6.25.shar begins here ---
# 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
--- stormlib-ghost++-6.25.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102140135.p1E1ZncR097272>