netpbm: added a recipe for version 10.68

* is actually a snapshot from svn
This commit is contained in:
Jerome Duval
2015-02-27 19:07:08 +00:00
parent 69baca2204
commit cb9ac2441b
2 changed files with 715 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
From a7cbcaef10622962a1aaa3ed36d76590ac49dd9a Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Fri, 27 Feb 2015 17:36:32 +0000
Subject: Haiku patch
diff --git a/lib/Makefile b/lib/Makefile
index b47c3aa..f63a6cd 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -126,7 +126,7 @@ $(SONAME): libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ).$(MIN)
$(SYMLINK) $< $@
libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ).$(MIN): $(LIBOBJECTS) $(LIBOBJECTS_X)
$(LD) $(LDSHLIB) -o $@ $(LIBOBJECTS) $(LIBOBJECTS_X) \
- $(SHLIB_CLIB) -lm $(LADD)
+ $(SHLIB_CLIB) $(MATHLIB) $(LADD)
endif
ifeq ($(NETPBMLIBTYPE),dll)
diff --git a/lib/util/pm_c_util.h b/lib/util/pm_c_util.h
index 01a0765..6dbf2b6 100644
--- a/lib/util/pm_c_util.h
+++ b/lib/util/pm_c_util.h
@@ -54,7 +54,8 @@
/* The test for __STDC__ is paranoid. It is there just in case some
nonstandard compiler defines __STDC_VERSION__ in an arbitrary manner.
*/
- #if ( defined(__GNUC__) && (__GNUC__ >= 3) ) || \
+ #if defined(__HAIKU__) || \
+ ( defined(__GNUC__) && (__GNUC__ >= 3) ) || \
( defined(__STDC__) && (__STDC__ ==1) && \
defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) )
#include <stdbool.h>
--
1.8.3.4