blob: 0fbd47966200a6535d2b3d711781a797f66721f6 (
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
|
$NetBSD: patch-ad,v 1.5 2002/09/23 13:16:59 abs Exp $
--- lib/Makefile.orig Thu Aug 1 10:46:31 2002
+++ lib/Makefile
@@ -5,13 +5,36 @@
SRCS+= exec.c file.c ftpio.c global.c lpkg.c pen.c pkgdb.c \
plist.c str.c version.c path.c
+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
# only needed during build - prevent installation of library
+.if ${OPSYS} == "Darwin"
+install::
+.else
libinstall::
+.endif
version.o: version.h version.c
|