Make this build on Mac OS X.
This commit is contained in:
parent
d22db5bb78
commit
466611ccab
2 changed files with 49 additions and 1 deletions
|
@ -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
|
||||
|
|
47
converters/recode/patches/patch-aa
Normal file
47
converters/recode/patches/patch-aa
Normal file
|
@ -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:
|
Loading…
Reference in a new issue