$NetBSD: patch-ac,v 1.3 2002/03/04 13:48:31 seb Exp $

--- lib/Makefile.orig	Sat Jan  5 17:36:57 2002
+++ lib/Makefile
@@ -5,13 +5,27 @@
 SRCS+=		exec.c file.c ftpio.c global.c lpkg.c pen.c pkgdb.c \
 		plist.c str.c version.c
 
+OPSYS!=		uname -s
+
+.if ${OPSYS} == "Darwin"
+SRCS+=		md5c.c md5hl.c
+.endif
+
 NOLINT=		# defined
 NOMAN=		# defined
 NOPIC=		# defined
 NOPROFILE=	# defined
+MKLINT=		no
+MKMAN=		no
+MKPIC=		no
+MKPROFILE=	no
 
 # only needed during build - prevent installation of library
+.if ${OPSYS} == "Darwin"
+install::
+.else
 libinstall::
+.endif
 
 version.o: version.h version.c
 
