summaryrefslogtreecommitdiff
path: root/converters/recode/patches/patch-aa
blob: cb4f7796553006028a0acf6b3ddff7d89ee614dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-aa,v 1.3 2011/08/26 08:13:44 wiz Exp $

date: 2009/03/04 08:44:13;  author: yyamano;  state: Exp;
Make this build on Mac OS X.

--- lib/Makefile.in.orig	2001-01-22 10:14:14.000000000 -0800
+++ lib/Makefile.in
@@ -108,7 +108,11 @@ 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
 
@@ -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: