summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2012-02-15 21:42:08 +0000
committerhans <hans@pkgsrc.org>2012-02-15 21:42:08 +0000
commit685b3bef1a93a2a07b2c1bdb4c5d1591d0a3b625 (patch)
tree5c3c4cde31423f3a5cc3f0b57d35af260749c546 /audio
parent1333d448b669fd919c6f5bc9a645bee80879f759 (diff)
downloadpkgsrc-685b3bef1a93a2a07b2c1bdb4c5d1591d0a3b625.tar.gz
Fix build on SunOS.
Add bash:run to USE_TOOLS, use REPLACE_BASH for scripts.
Diffstat (limited to 'audio')
-rw-r--r--audio/gtkpod/Makefile13
-rw-r--r--audio/gtkpod/distinfo3
-rw-r--r--audio/gtkpod/patches/patch-src_mp4file.c16
3 files changed, 24 insertions, 8 deletions
diff --git a/audio/gtkpod/Makefile b/audio/gtkpod/Makefile
index f5092e80885..91e38f1921b 100644
--- a/audio/gtkpod/Makefile
+++ b/audio/gtkpod/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2012/02/06 12:39:25 wiz Exp $
+# $NetBSD: Makefile,v 1.39 2012/02/15 21:42:08 hans Exp $
#
DISTNAME= gtkpod-1.0.0
@@ -18,15 +18,14 @@ GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
-USE_TOOLS+= intltool gmake lex msgfmt perl:run pkg-config
+USE_TOOLS+= bash:run intltool gmake lex msgfmt perl:run pkg-config
+
+CPPFLAGS.SunOS+= -Du_int8_t=uint8_t -Du_int16_t=uint16_t
+CPPFLAGS.SunOS+= -Du_int32_t=uint32_t -Du_int64_t=uint64_t
REPLACE_PERL+= scripts/mab2vcard
-REPLACE_INTERPRETER+= bash
-REPLACE.bash.old= .*/bin/bash
-REPLACE.bash.new= ${PREFIX}/bin/bash
-REPLACE_FILES.bash= scripts/sync-knotes.sh scripts/sync-evolution.sh \
- scripts/sync-ldif.sh
+REPLACE_BASH= scripts/*.sh
REPLACE_PYTHON+= scripts/sync-palm-jppy.py
.include "../../lang/python/application.mk"
diff --git a/audio/gtkpod/distinfo b/audio/gtkpod/distinfo
index 3529c658ec9..de3d6797955 100644
--- a/audio/gtkpod/distinfo
+++ b/audio/gtkpod/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2011/11/22 18:37:03 shattered Exp $
+$NetBSD: distinfo,v 1.13 2012/02/15 21:42:08 hans Exp $
SHA1 (gtkpod-1.0.0.tar.gz) = 77b768663458069a414c59b7aad285020c93a035
RMD160 (gtkpod-1.0.0.tar.gz) = 271e9aeb25493b89933f203ebce4c004ce0da573
@@ -6,3 +6,4 @@ Size (gtkpod-1.0.0.tar.gz) = 1899869 bytes
SHA1 (patch-bi) = 664a807d14318fd205a89dacc3084212cc9c6d5e
SHA1 (patch-bj) = 6caafe347a5d4cdb6cdfa48d72121272d75e8a80
SHA1 (patch-bk) = a1be464c20e1c291627a56c21892ddf7e599e896
+SHA1 (patch-src_mp4file.c) = 59cdfb1705d0051ebdefc009216c7482e4a7023e
diff --git a/audio/gtkpod/patches/patch-src_mp4file.c b/audio/gtkpod/patches/patch-src_mp4file.c
new file mode 100644
index 00000000000..199bcdb4ae3
--- /dev/null
+++ b/audio/gtkpod/patches/patch-src_mp4file.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_mp4file.c,v 1.1 2012/02/15 21:42:09 hans Exp $
+
+--- src/mp4file.c.orig 2010-04-26 21:30:52.000000000 +0200
++++ src/mp4file.c 2012-01-18 01:00:11.494883587 +0100
+@@ -35,6 +35,11 @@
+ # include <endian.h> /* for be32toh () */
+ #endif
+
++#ifdef __sun
++# include <sys/byteorder.h>
++# define be32toh BE_32
++#endif
++
+ #include "charset.h"
+ #include "itdb.h"
+ #include "misc.h"