SF.net SVN: gar:[25977] csw/mgar/pkg

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Sat Oct 8 21:47:07 CEST 2016


Revision: 25977
          http://sourceforge.net/p/gar/code/25977
Author:   dmichelsen
Date:     2016-10-08 19:47:06 +0000 (Sat, 08 Oct 2016)
Log Message:
-----------
zstd/trunk: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/zstd/
    csw/mgar/pkg/zstd/Makefile
    csw/mgar/pkg/zstd/branches/
    csw/mgar/pkg/zstd/tags/
    csw/mgar/pkg/zstd/trunk/
    csw/mgar/pkg/zstd/trunk/Makefile
    csw/mgar/pkg/zstd/trunk/checksums
    csw/mgar/pkg/zstd/trunk/files/
    csw/mgar/pkg/zstd/trunk/files/0001-Add-SunOS-as-supported-platform.patch
    csw/mgar/pkg/zstd/trunk/files/0002-Use-bash-for-shellscripts.patch

Added: csw/mgar/pkg/zstd/Makefile
===================================================================
--- csw/mgar/pkg/zstd/Makefile	                        (rev 0)
+++ csw/mgar/pkg/zstd/Makefile	2016-10-08 19:47:06 UTC (rev 25977)
@@ -0,0 +1,2 @@
+%:
+	$(MAKE) -C trunk $*

Index: csw/mgar/pkg/zstd/trunk
===================================================================
--- csw/mgar/pkg/zstd/trunk	2016-10-08 13:27:47 UTC (rev 25976)
+++ csw/mgar/pkg/zstd/trunk	2016-10-08 19:47:06 UTC (rev 25977)

Property changes on: csw/mgar/pkg/zstd/trunk
___________________________________________________________________
Added: svn:ignore
## -0,0 +1 ##
+work
Added: csw/mgar/pkg/zstd/trunk/Makefile
===================================================================
--- csw/mgar/pkg/zstd/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/zstd/trunk/Makefile	2016-10-08 19:47:06 UTC (rev 25977)
@@ -0,0 +1,58 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = zstd
+VERSION = 1.1.0
+GARTYPE = v2
+
+DESCRIPTION = Fast real-time compression algorithm
+
+MASTER_SITES = https://github.com/facebook/zstd/releases/
+DISTFILES  = $(DISTNAME).tar.gz
+
+PATCHFILES += 0001-Add-SunOS-as-supported-platform.patch
+PATCHFILES += 0002-Use-bash-for-shellscripts.patch
+
+PACKAGES += CSWzstd
+SPKG_DESC_CSWzstd = Fast real-time compression algorithm
+# PKGFILES is catchall
+
+PACKAGES += CSWlibzstd1
+SPKG_DESC_CSWlibzstd1 = Fast real-time compression library, libzstd.so.1
+PKGFILES_CSWlibzstd1 += $(call pkgfiles_lib,libzstd.so.1)
+RUNTIME_DEP_PKGS_CSWlibzstd1 += CSWlibgcc-s1
+
+PACKAGES += CSWlibzstd-dev
+SPKG_DESC_CSWlibzstd-dev = Development files for libzstd.so.1
+PKGFILES_CSWlibzstd-dev += $(PKGFILES_DEVEL)
+RUNTIME_DEP_PKGS_CSWlibzstd-dev += CSWlibzstd1
+
+GARCOMPILER = GNU
+
+BUILD64 = 1
+ISAEXEC = 1
+
+# There is no configure
+CONFIGURE_SCRIPTS =
+
+BUILD_ARGS += CC=gcc CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
+
+TEST_TARGET = test
+# We need md5sum
+TEST_ENV_PATH = /opt/csw/gnu:$(PATH)
+
+# We need GNU install as install
+INSTALL_ENV_PATH = /opt/csw/gnu:$(PATH)
+
+EXTRA_INSTALL_EXPORTS += PREFIX LIBDIR INCLUDEDIR MANDIR
+INSTALL_ENV_PREFIX = $(prefix)
+INSTALL_ENV_LIBDIR = $(libdir)
+INSTALL_ENV_INCLUDEDIR = $(includedir)
+INSTALL_ENV_MANDIR = $(mandir)/man1
+
+# Until overriding BINDIR is possible use force here
+INSTALL_OVERRIDE_VARS += BINDIR
+INSTALL_OVERRIDE_VAR_BINDIR = $(bindir)
+
+include gar/category.mk
+


Property changes on: csw/mgar/pkg/zstd/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: csw/mgar/pkg/zstd/trunk/checksums
===================================================================
--- csw/mgar/pkg/zstd/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/zstd/trunk/checksums	2016-10-08 19:47:06 UTC (rev 25977)
@@ -0,0 +1 @@
+64fc5efcd1ca60a3cd74a3ccaf25006e  zstd-1.1.0.tar.gz

Added: csw/mgar/pkg/zstd/trunk/files/0001-Add-SunOS-as-supported-platform.patch
===================================================================
--- csw/mgar/pkg/zstd/trunk/files/0001-Add-SunOS-as-supported-platform.patch	                        (rev 0)
+++ csw/mgar/pkg/zstd/trunk/files/0001-Add-SunOS-as-supported-platform.patch	2016-10-08 19:47:06 UTC (rev 25977)
@@ -0,0 +1,67 @@
+From ff7c82ad4dff8147265978f25d9b0353a4bf6aa5 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Tue, 4 Oct 2016 15:03:20 +0200
+Subject: [PATCH 1/2] Add SunOS as supported platform
+
+---
+ Makefile          | 2 +-
+ lib/Makefile      | 2 +-
+ programs/Makefile | 2 +-
+ tests/Makefile    | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index ac0c583..6816a41 100644
+--- a/Makefile
++++ b/Makefile
+@@ -51,7 +51,7 @@ clean:
+ #----------------------------------------------------------------------------------
+ #make install is validated only for Linux, OSX, kFreeBSD, Hurd and some BSD targets
+ #----------------------------------------------------------------------------------
+-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD DragonFly NetBSD))
++ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD DragonFly NetBSD SunOS))
+ HOST_OS = POSIX
+ install:
+ 	$(MAKE) -C $(ZSTDDIR) $@
+diff --git a/lib/Makefile b/lib/Makefile
+index 4fb8ed9..cb61fc4 100644
+--- a/lib/Makefile
++++ b/lib/Makefile
+@@ -78,7 +78,7 @@ clean:
+ 
+ #------------------------------------------------------------------------
+ #make install is validated only for Linux, OSX, kFreeBSD, Hurd and some BSD targets
+-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD DragonFly NetBSD))
++ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD DragonFly NetBSD SunOS))
+ 
+ libzstd.pc:
+ libzstd.pc: libzstd.pc.in
+diff --git a/programs/Makefile b/programs/Makefile
+index 6e78d0e..fbfbd60 100644
+--- a/programs/Makefile
++++ b/programs/Makefile
+@@ -134,7 +134,7 @@ clean:
+ #----------------------------------------------------------------------------------
+ #make install is validated only for Linux, OSX, kFreeBSD, Hurd and some BSD targets
+ #----------------------------------------------------------------------------------
+-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD DragonFly NetBSD))
++ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD DragonFly NetBSD SunOS))
+ install: zstd
+ 	@echo Installing binaries
+ 	@install -d -m 755 $(DESTDIR)$(BINDIR)/ $(DESTDIR)$(MANDIR)/
+diff --git a/tests/Makefile b/tests/Makefile
+index 3ce9f31..cd8a481 100644
+--- a/tests/Makefile
++++ b/tests/Makefile
+@@ -151,7 +151,7 @@ clean:
+ #----------------------------------------------------------------------------------
+ #make valgrindTest is validated only for Linux, OSX, kFreeBSD, Hurd and some BSD targets
+ #----------------------------------------------------------------------------------
+-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD DragonFly))
++ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD DragonFly SunOS))
+ HOST_OS = POSIX
+ 
+ valgrindTest: VALGRIND = valgrind --leak-check=full --error-exitcode=1
+-- 
+2.4.0
+

Added: csw/mgar/pkg/zstd/trunk/files/0002-Use-bash-for-shellscripts.patch
===================================================================
--- csw/mgar/pkg/zstd/trunk/files/0002-Use-bash-for-shellscripts.patch	                        (rev 0)
+++ csw/mgar/pkg/zstd/trunk/files/0002-Use-bash-for-shellscripts.patch	2016-10-08 19:47:06 UTC (rev 25977)
@@ -0,0 +1,22 @@
+From eea8981b22e1d1ddde6e0f49fb6cb0a37df15e88 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Tue, 4 Oct 2016 15:03:41 +0200
+Subject: [PATCH 2/2] Use bash for shellscripts
+
+---
+ tests/playTests.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/playTests.sh b/tests/playTests.sh
+index d94d8fa..d343f10 100755
+--- a/tests/playTests.sh
++++ b/tests/playTests.sh
+@@ -1,4 +1,4 @@
+-#!/bin/sh -e
++#!/opt/csw/bin/bash -e
+ 
+ die() {
+     $ECHO "$@" 1>&2
+-- 
+2.4.0
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list