Updated bep and added patch for libs3, from GCI2012 student Piotr

This commit is contained in:
Scott McCreary
2012-12-13 20:26:01 +00:00
parent 7e10298c9f
commit 94eee370f4
2 changed files with 46 additions and 9 deletions

View File

@@ -1,19 +1,20 @@
DESCRIPTION="A C Library API for Amazon S3"
HOMEPAGE="http://libs3.ischo.com"
SRC_URI="http://libs3.ischo.com/libs3-2.0.tar.gz"
DESCRIPTION="C Library API for Amazon S3"
HOMEPAGE="http://libs3.ischo.com.s3.amazonaws.com/index.html"
SRC_URI="http://libs3.ischo.com.s3.amazonaws.com/libs3-2.0.tar.gz"
CHECKSUM_MD5="e52da69ddc11019e98cf8246fc55b4e1"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND="net-misc/curl >= 7.24"
STATUS_HAIKU="stable"
DEPEND="dev-libs/libxml2>=2.7.3
net-misc/curl>=7.18.2"
BUILD {
cd libs3-2.0
make
make DESTDIR=${DESTDIR}/`finddir B_COMMON_DIRECTORY`
}
INSTALL {
cd libs3-2.0
make install
make install DESTDIR=${DESTDIR}/`finddir B_COMMON_DIRECTORY`
}
LICENSE="GNU GPL v3"
COPYRIGHT="2012 Bryan Ischo"
COPYRIGHT="2008 Bryan Ischo"

View File

@@ -0,0 +1,36 @@
diff -Naur libs3-2.0/GNUmakefile libs3-2.0-haiku/GNUmakefile
--- libs3-2.0/GNUmakefile 2011-09-28 08:16:09.000000000 +0000
+++ libs3-2.0-haiku/GNUmakefile 2012-12-12 16:19:46.457965568 +0000
@@ -134,7 +134,7 @@
-D_ISOC99_SOURCE \
-D_POSIX_C_SOURCE=200112L
-LDFLAGS = $(CURL_LIBS) $(LIBXML2_LIBS) -lpthread
+LDFLAGS = $(CURL_LIBS) $(LIBXML2_LIBS)
# --------------------------------------------------------------------------
diff -Naur libs3-2.0/src/request_context.c libs3-2.0-haiku/src/request_context.c
--- libs3-2.0/src/request_context.c 2011-09-28 08:16:09.000000000 +0000
+++ libs3-2.0-haiku/src/request_context.c 2012-12-12 14:04:42.375652352 +0000
@@ -29,6 +29,8 @@
#include <sys/select.h>
#include "request.h"
#include "request_context.h"
+#include <string.h> /* memset */
+#include <unistd.h> /* close */
S3Status S3_create_request_context(S3RequestContext **requestContextReturn)
diff -Naur libs3-2.0/src/s3.c libs3-2.0-haiku/src/s3.c
--- libs3-2.0/src/s3.c 2011-09-28 08:16:09.000000000 +0000
+++ libs3-2.0-haiku/src/s3.c 2012-12-12 14:31:37.335020032 +0000
@@ -52,7 +52,7 @@
#endif
// Also needed for Windows, because somehow MinGW doesn't define this
-extern int putenv(char *);
+//extern int putenv(char *);
// Command-line options, saved as globals ------------------------------------