mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-07 11:20:04 -04:00
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
$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:
|