pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/xfractint Include <machine/endian.h> on Darwin, a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/90b8303653b1
branches:  trunk
changeset: 530432:90b8303653b1
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Sat Jun 30 14:19:52 2007 +0000

description:
Include <machine/endian.h> on Darwin, and supply a fake <malloc.h>
if the system lacks one (trick borrowed from multimedia/smpeg).
Fixes build on Darwin.

diffstat:

 math/xfractint/Makefile         |  13 +++++++++++--
 math/xfractint/distinfo         |   4 ++--
 math/xfractint/patches/patch-ao |  15 +++++++++------
 3 files changed, 22 insertions(+), 10 deletions(-)

diffs (88 lines):

diff -r dd88cfd55622 -r 90b8303653b1 math/xfractint/Makefile
--- a/math/xfractint/Makefile   Sat Jun 30 13:47:38 2007 +0000
+++ b/math/xfractint/Makefile   Sat Jun 30 14:19:52 2007 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.5 2007/04/16 14:48:31 joerg Exp $
+# $NetBSD: Makefile,v 1.6 2007/06/30 14:19:52 schmonz Exp $
 #
 
 DISTNAME=              xfrac310
 PKGNAME=               xfractint-3.10
 PKGREVISION=           1
 CATEGORIES=            math
-MASTER_SITES=          http://spanky.triumf.ca/pub/fractals/programs/unix/
+MASTER_SITES=          ${HOMEPAGE}
 EXTRACT_SUFX=          .zip
 
 MAINTAINER=            rillig%NetBSD.org@localhost
@@ -25,6 +25,15 @@
 
 MAKE_ENV+=     X11_LDFLAGS=${X11_LDFLAGS:Q}
 
+# xfractint sources assume <malloc.h> exists.
+# Create a fake one for platforms that don't have it.
+#
+post-wrapper:
+       if ${TEST} ! -f /usr/include/malloc.h; then                     \
+               ${ECHO} "#include <stdlib.h>"                           \
+                       > ${BUILDLINK_DIR}/include/malloc.h;            \
+       fi
+
 .include "../../mk/curses.buildlink3.mk"
 .include "../../x11/libX11/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r dd88cfd55622 -r 90b8303653b1 math/xfractint/distinfo
--- a/math/xfractint/distinfo   Sat Jun 30 13:47:38 2007 +0000
+++ b/math/xfractint/distinfo   Sat Jun 30 14:19:52 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2007/04/16 14:48:31 joerg Exp $
+$NetBSD: distinfo,v 1.6 2007/06/30 14:19:52 schmonz Exp $
 
 SHA1 (xfrac310.zip) = 420de4ca20623b4fe6b6367a269e5525b6bff3af
 RMD160 (xfrac310.zip) = ede481d77f8f5b71a6cef9d7ec4b2e09d9662f5b
@@ -14,6 +14,6 @@
 SHA1 (patch-al) = 1954f3243be20ceb03c0e9d6dba86c2fd101ce89
 SHA1 (patch-am) = ae214e36ff64009d18724e80638f1fa55544d19e
 SHA1 (patch-an) = 5c4728b4d4ffa4ddd1ff904943af1484d75308f1
-SHA1 (patch-ao) = c4c7f6d73f04a8a31503d84ca4ab4a2a64b7a9cd
+SHA1 (patch-ao) = c9fb472e44bbc4d939fe00725be9b06fd8cecb26
 SHA1 (patch-ap) = 87f6bc9db67554f600428e3369f83849b81d23fa
 SHA1 (patch-aq) = 8202b8a7adc3e3badee6de0b395d912910aa6710
diff -r dd88cfd55622 -r 90b8303653b1 math/xfractint/patches/patch-ao
--- a/math/xfractint/patches/patch-ao   Sat Jun 30 13:47:38 2007 +0000
+++ b/math/xfractint/patches/patch-ao   Sat Jun 30 14:19:52 2007 +0000
@@ -1,17 +1,20 @@
-$NetBSD: patch-ao,v 1.2 2006/06/14 14:34:10 joerg Exp $
+$NetBSD: patch-ao,v 1.3 2007/06/30 14:19:52 schmonz Exp $
 
---- port.h.orig        1999-09-06 17:38:10.000000000 +0200
-+++ port.h     2006-06-15 08:52:47.000000000 +0200
-@@ -42,7 +42,7 @@
+--- port.h.orig        1999-09-06 11:38:10.000000000 -0400
++++ port.h
+@@ -42,8 +42,10 @@
  /* If endian.h is not present, it can be handled in the code below, */
  /* but if you have this file, it can make it more fool proof. */
  #if (defined(XFRACT) && !defined(__sun))
 -#if defined(sgi)
 +#if defined(sgi) || defined(__NetBSD__) || defined(__DragonFly__)
  #include <sys/endian.h>
++#elif defined (__APPLE__)
++#include <machine/endian.h>
  #else
  #include <endian.h>
-@@ -290,6 +290,9 @@ typedef int sigfunc(int);
+ #endif
+@@ -290,6 +292,9 @@ typedef int sigfunc(int);
  #ifdef sun
  #define DO_NOT_USE_LONG_DOUBLE
  #endif
@@ -21,7 +24,7 @@
  
  #ifndef DO_NOT_USE_LONG_DOUBLE
  #ifdef LDBL_DIG
-@@ -353,6 +356,7 @@ typedef int sigfunc(int);
+@@ -353,6 +358,7 @@ typedef int sigfunc(int);
  #define fabsl           fabs
  #define sinl            sin
  #define cosl            cos



Home | Main Index | Thread Index | Old Index