summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install/patches/patch-ad
blob: 9bfa23aa130c29d1eda18bf725f9ffe9511cd6c5 (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
43
44
45
46
$NetBSD: patch-ad,v 1.7 2002/11/23 23:03:25 jschauma Exp $

--- lib/Makefile.orig	Sat Nov 23 17:59:40 2002
+++ lib/Makefile	Sat Nov 23 18:01:12 2002
@@ -1,17 +1,41 @@
 # $NetBSD: patch-ad,v 1.7 2002/11/23 23:03:25 jschauma Exp $
 # Original from FreeBSD, no rcs id.
 
+OPSYS!=		uname -s
+RELEASE!=	uname -r
+
+.if ${OPSYS} == "Darwin"
+SRCS+=		md5c.c md5hl.c strlcpy.c
+.endif
+
+.if ${OPSYS} == "Linux"
+SRCS+=		fgetln.c md5c.c md5hl.c strlcpy.c
+.endif
+
+.if ${OPSYS} == "NetBSD" && (${RELEASE:M1.4.[12]} != "" || ${RELEASE:M1.4} != "")
+SRCS+=		strlcpy.c
+.endif
+
 NOLINT=		# defined
 NOMAN=		# defined
 NOPIC=		# defined
 NOPROFILE=	# defined
 
+MKLINT=		no
+MKMAN=		no
+MKPIC=		no
+MKPROFILE=	no
+
 LIB+=		install
 SRCS+=		exec.c file.c ftpio.c global.c lpkg.c pen.c pkgdb.c \
 		plist.c str.c version.c path.c
 
 # only needed during build - prevent installation of library
+.if ${OPSYS} == "Darwin"
+install::
+.else
 libinstall::
+.endif
 
 version.o: version.h version.c