mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
netpbm: added a recipe for version 10.68
* is actually a snapshot from svn
This commit is contained in:
36
media-libs/netpbm/patches/netpbm-10.68.patchset
Normal file
36
media-libs/netpbm/patches/netpbm-10.68.patchset
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user