pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/devIL devel/devIL: make this build & install on ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9e1bbba6a268
branches:  trunk
changeset: 385710:9e1bbba6a268
user:      he <he%pkgsrc.org@localhost>
date:      Sat Sep 24 21:06:42 2022 +0000

description:
devel/devIL: make this build & install on NetBSD/macppc.

A few patches to include <altivec.h> when __ALTIVEC__ is defined,
and passing -maltivec on powerpc ports.

diffstat:

 devel/devIL/Makefile                                       |   7 ++++-
 devel/devIL/distinfo                                       |   5 +++-
 devel/devIL/patches/patch-src-IL_include_altivec__common.h |  17 ++++++++++++++
 devel/devIL/patches/patch-src-IL_src_il__quantizer.c       |  17 ++++++++++++++
 devel/devIL/patches/patch-src-IL_src_il__sgi.c             |  17 ++++++++++++++
 5 files changed, 61 insertions(+), 2 deletions(-)

diffs (102 lines):

diff -r 8ef9902fdca6 -r 9e1bbba6a268 devel/devIL/Makefile
--- a/devel/devIL/Makefile      Sat Sep 24 20:41:48 2022 +0000
+++ b/devel/devIL/Makefile      Sat Sep 24 21:06:42 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2020/06/05 12:48:59 jperkin Exp $
+# $NetBSD: Makefile,v 1.43 2022/09/24 21:06:42 he Exp $
 #
 
 DISTNAME=      DevIL-${DEVIL_VERSION}
@@ -25,6 +25,11 @@
 CONFIGURE_ARGS+=       --enable-ILU
 CONFIGURE_ARGS+=       --enable-ILUT
 
+.if (${MACHINE_ARCH} == "powerpc")
+# Uses __vector deep in the gcc10 includes...
+CFLAGS+=       -maltivec
+.endif
+
 .include "options.mk"
 .include "../../devel/SDL/buildlink3.mk"
 .include "../../graphics/glu/buildlink3.mk"
diff -r 8ef9902fdca6 -r 9e1bbba6a268 devel/devIL/distinfo
--- a/devel/devIL/distinfo      Sat Sep 24 20:41:48 2022 +0000
+++ b/devel/devIL/distinfo      Sat Sep 24 21:06:42 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2021/10/26 10:14:32 nia Exp $
+$NetBSD: distinfo,v 1.16 2022/09/24 21:06:42 he Exp $
 
 BLAKE2s (DevIL-1.7.8.tar.gz) = 135843f792b50024862d04d63a924d053d4f810d2f50c4f49bcafa4ee2d79bb1
 SHA512 (DevIL-1.7.8.tar.gz) = a67e1488d6cb366431d9fcb460b8fe5b8a1dd79426ac77f8abd0db4a5aad7512697f72ef0c49ddb0e806469cc37ba1319e10ccd2ebd73942332df2c3c507458e
@@ -10,5 +10,8 @@
 SHA1 (patch-include_IL_il.h) = 553b2fbbd930ff6bab4b5bc790d13ebcccbfffba
 SHA1 (patch-lib_Makefile.in) = a2ae8d1a97f2cbd9c46b2f5923be06839dd6c64f
 SHA1 (patch-src-ILU_ilur_ilur.c) = 611f0068a98f4da6771c11c8b267cafbea7cb76a
+SHA1 (patch-src-IL_include_altivec__common.h) = ac14657153ff7dbe3292b69bf57eb5d1bed4a945
 SHA1 (patch-src-IL_include_il__endian.h) = 25ed5f24fc871ceebb685e1c242a4c7b724142a2
 SHA1 (patch-src-IL_src_il__jp2.c) = 7474bdc6507f4a9daa42800fa626ec9ffe6892fe
+SHA1 (patch-src-IL_src_il__quantizer.c) = 0744471f7b92f746d5dbb5ba207c79803c97bf82
+SHA1 (patch-src-IL_src_il__sgi.c) = d01754446dd2a51b2f0b6a6b91700a3b85508487
diff -r 8ef9902fdca6 -r 9e1bbba6a268 devel/devIL/patches/patch-src-IL_include_altivec__common.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/devIL/patches/patch-src-IL_include_altivec__common.h        Sat Sep 24 21:06:42 2022 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src-IL_include_altivec__common.h,v 1.1 2022/09/24 21:06:42 he Exp $
+
+Use <altivec.h> if __ALTIVEC__ is defined.
+
+--- ./src-IL/include/altivec_common.h.orig     2009-03-08 07:10:08.000000000 +0000
++++ ./src-IL/include/altivec_common.h
+@@ -8,6 +8,10 @@
+ 
+ #include "il_internal.h"
+ 
++#ifdef __ALTIVEC__
++#include <altivec.h>
++#endif
++
+ #ifdef ALTIVEC_GCC
+ #ifndef ALTIVEC_COMMON
+ #define ALTIVEC_COMMON
diff -r 8ef9902fdca6 -r 9e1bbba6a268 devel/devIL/patches/patch-src-IL_src_il__quantizer.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/devIL/patches/patch-src-IL_src_il__quantizer.c      Sat Sep 24 21:06:42 2022 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src-IL_src_il__quantizer.c,v 1.1 2022/09/24 21:06:42 he Exp $
+
+Use <altivec.h> if __ALTIVEC__ is defined.
+
+--- src-IL/src/il_quantizer.c.orig     2009-03-08 07:10:09.000000000 +0000
++++ src-IL/src/il_quantizer.c
+@@ -35,6 +35,10 @@
+ 
+ #include "il_internal.h"
+ 
++#ifdef __ALTIVEC__
++#include <altivec.h>
++#endif
++
+ #define MAXCOLOR      256
+ #define       RED                     2
+ #define       GREEN           1
diff -r 8ef9902fdca6 -r 9e1bbba6a268 devel/devIL/patches/patch-src-IL_src_il__sgi.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/devIL/patches/patch-src-IL_src_il__sgi.c    Sat Sep 24 21:06:42 2022 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src-IL_src_il__sgi.c,v 1.1 2022/09/24 21:06:42 he Exp $
+
+Use <altivec.h> if __ALTIVEC__ is defined.
+
+--- src-IL/src/il_sgi.c.orig   2009-03-08 07:10:09.000000000 +0000
++++ src-IL/src/il_sgi.c
+@@ -16,6 +16,10 @@
+ #include "il_manip.h"
+ #include <limits.h>
+ 
++#ifdef __ALTIVEC__
++#include <altivec.h>
++#endif
++
+ static char *FName = NULL;
+ 
+ /*----------------------------------------------------------------------------*/



Home | Main Index | Thread Index | Old Index