pkgsrc/security/libident/patches/patch-aa
1999-03-12 16:32:08 +00:00

78 lines
1.7 KiB
Text

$NetBSD: patch-aa,v 1.5 1999/03/12 16:32:08 tron Exp $
--- Makefile.orig Fri Jan 17 20:10:55 1997
+++ Makefile Fri Mar 12 17:20:39 1999
@@ -4,11 +4,12 @@
MAKE=make
SHELL=/bin/sh
-RM=rm -f
RANLIB=ranlib
-AR=ar cq
+RM=rm -f
+AR=${LIBTOOL} --mode=link cc -rpath ${PREFIX}/lib -version-info 0:22 -o
+CC=${LIBTOOL} --mode=compile cc
-INSTROOT=/usr/local
+INSTROOT=${PREFIX}
LIBDIR=$(INSTROOT)/lib
INCDIR=$(INSTROOT)/include
MANDIR=$(INSTROOT)/man/man3
@@ -19,10 +20,10 @@
# Add -DHAVE_ANSIHEADERS if your system have the ANSI C header files
# needed for our purposes (stdlib, string, unistd).
#
-CFLAGS = -O
+#CFLAGS = -O
LDLIBS =
-LIBIDENT = libident.a
+LIBIDENT = libident.la
OBJS = ident.o id_open.o id_close.o id_query.o id_parse.o support.o version.o
@@ -33,6 +34,7 @@
@echo aix
@echo bsd
@echo bsd2.11
+ @echo netbsd
@echo dynix
@echo hpux
@echo irix
@@ -52,8 +54,8 @@
$(LIBIDENT): $(OBJS)
-$(RM) $(LIBIDENT)
- $(AR) $(LIBIDENT) $(OBJS)
- -$(RANLIB) $(LIBIDENT)
+ $(AR) $(LIBIDENT) $(OBJS:.o=.lo)
+# -$(RANLIB) $(LIBIDENT)
testers: lookup-tester ident-tester
@@ -82,13 +84,9 @@
#
install:
- -$(RM) $(LIBDIR)/$(LIBIDENT)
- cp $(LIBIDENT) $(LIBDIR)/$(LIBIDENT)
- -$(RANLIB) $(LIBDIR)/$(LIBIDENT)
- -$(RM) $(INCDIR)/ident.h
- cp ident.h $(INCDIR)/ident.h
- -$(RM) $(MANDIR)/ident.3
- cp ident.3 $(MANDIR)/ident.3
+ ${LIBTOOL} --mode=install ${INSTALL_DATA} ${LIBIDENT} ${PREFIX}/lib
+ ${INSTALL_DATA} ident.h ${INCDIR}/ident.h
+ ${INSTALL_DATA} ident.3 ${MANDIR}/ident.3
clean:
-$(RM) $(LIBIDENT) ident-tester lookup-tester *~ core *.o \#*
@@ -126,6 +124,8 @@
bsd2.11:
@$(MAKE) all CC="$(CC)" CFLAGS="-O -DSIGRETURNTYPE=int -DHAVE_ANSIHEADERS"
+netbsd:
+ @$(MAKE) all CC="$(CC)" CFLAGS="${CFLAGS} -Wall -DHAVE_ANSIHEADERS"
#
#