summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authoryyamano <yyamano@pkgsrc.org>2009-03-04 08:44:13 +0000
committeryyamano <yyamano@pkgsrc.org>2009-03-04 08:44:13 +0000
commit466611ccab447070efb9b2a6f14f35ec0cdcc284 (patch)
tree0b9e59e09f2abc1e9146ff8bfbb1ff9fe3a9a0d1 /converters
parentd22db5bb783ead46957e6413fffcd12e136baaf0 (diff)
downloadpkgsrc-466611ccab447070efb9b2a6f14f35ec0cdcc284.tar.gz
Make this build on Mac OS X.
Diffstat (limited to 'converters')
-rw-r--r--converters/recode/distinfo3
-rw-r--r--converters/recode/patches/patch-aa47
2 files changed, 49 insertions, 1 deletions
diff --git a/converters/recode/distinfo b/converters/recode/distinfo
index ee4346af576..a8cf9a24f67 100644
--- a/converters/recode/distinfo
+++ b/converters/recode/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.4 2005/02/23 16:12:35 agc Exp $
+$NetBSD: distinfo,v 1.5 2009/03/04 08:44:13 yyamano Exp $
SHA1 (recode-3.6.tar.gz) = 2de90cd2ba553bc07d75a29913ea4424dd9e616b
RMD160 (recode-3.6.tar.gz) = 97dcb2544472c9025689452a94bed98ea36374b5
Size (recode-3.6.tar.gz) = 1751886 bytes
+SHA1 (patch-aa) = 249f24a2598987107dc171ec1d6a7dd4249b20f8
diff --git a/converters/recode/patches/patch-aa b/converters/recode/patches/patch-aa
new file mode 100644
index 00000000000..1693b3ae2be
--- /dev/null
+++ b/converters/recode/patches/patch-aa
@@ -0,0 +1,47 @@
+$NetBSD: patch-aa,v 1.1 2009/03/04 08:44:13 yyamano Exp $
+
+--- lib/Makefile.in.orig 2001-01-22 10:14:14.000000000 -0800
++++ lib/Makefile.in
+@@ -108,14 +108,18 @@ AUTOMAKE_OPTIONS = gnits
+
+ noinst_LIBRARIES = libreco.a
+ noinst_HEADERS = error.h getopt.h gettext.h pathmax.h xstring.h
++.if ${OPSYS} == "Darwin"
++libreco_a_SOURCES = error.c xstrdup.c
++.else
+ libreco_a_SOURCES = error.c getopt.c getopt1.c xstrdup.c
++.endif
+
+ EXTRA_DIST = alloca.c gettext.c malloc.c realloc.c strtol.c strtoul.c
+
+ INCLUDES = -I.. -I$(srcdir)
+
+ libreco_a_LIBADD = @ALLOCA@ @LIBOBJS@
+-localedir = $(prefix)/share/locale
++localedir = /usr/pkg/share/locale
+ aliaspath = $(localedir):.
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ CONFIG_HEADER = ../config.h
+@@ -128,7 +132,11 @@ CPPFLAGS = @CPPFLAGS@
+ LDFLAGS = @LDFLAGS@
+ LIBS = @LIBS@
+ libreco_a_DEPENDENCIES = @ALLOCA@ @LIBOBJS@
++.if ${OPSYS} == "Darwin"
++libreco_a_OBJECTS = error.o xstrdup.o
++.else
+ libreco_a_OBJECTS = error.o getopt.o getopt1.o xstrdup.o
++.endif
+ AR = ar
+ CFLAGS = @CFLAGS@
+ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+@@ -256,8 +264,10 @@ distdir: $(DISTFILES)
+ fi; \
+ done
+ error.o: error.c ../config.h error.h
++.if ${OPSYS} != "Darwin"
+ getopt.o: getopt.c ../config.h
+ getopt1.o: getopt1.c ../config.h getopt.h
++.endif
+ xstrdup.o: xstrdup.c ../config.h
+
+ info-am: