summaryrefslogtreecommitdiff
path: root/graphics/tiff/patches/patch-ab
blob: e8ee934af36c775bd327507cc9e4bc51f8d3bab7 (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
47
48
49
50
51
52
53
54
55
56
$NetBSD: patch-ab,v 1.10 2001/05/28 02:50:25 jlam Exp $

--- libtiff/Makefile.in.orig	Sun Nov 28 15:15:36 1999
+++ libtiff/Makefile.in	Sun May 27 22:19:44 2001
@@ -35,12 +35,18 @@
 #
 SHELL	= @SCRIPT_SH@
 NULL	=
-CC	= @CCOMPILER@
+CCOMPILER = @CCOMPILER@
+CC	= ${LIBTOOL} ${CCOMPILER}
 AR	= @AR@
 AROPTS	= @AROPTS@
 RANLIB	= @RANLIB@
 INSTALL	= @INSTALL@
 
+LIBJPEG = @LIBJPEG@
+LIBGZ = @LIBGZ@
+LIBPORT = @LIBPORT@
+MACHLIBS = @MACHDEPLIBS@
+
 #
 # If JPEG support is to be included and the Independent JPEG
 # Software distribution is not installed then DIR_JPEG must
@@ -135,7 +141,7 @@
 	tif_write.o \
 	tif_zip.o \
 	${NULL}
-TARGETS	= libtiff.a
+TARGETS	= libtiff.la
 
 all:	${TARGETS}
 	if [ @DSO@dso != nodso ]; then \
@@ -144,9 +150,10 @@
 	    true; \
 	fi
 
-libtiff.a: ${OBJS}
-	${AR} ${AROPTS} libtiff.a $?
-	${RANLIB} libtiff.a
+libtiff.la: ${OBJS}
+	${CC} -o $@ ${OBJS:.o=.lo} -rpath @DIR_LIB@			\
+		-version-info @DIST_MAJOR@:@DIST_MINOR@			\
+		${LIBJPEG} ${LIBGZ} ${LIBPORT} ${MACHLIBS}
 
 #
 # NB: The configure script verifies that the configured
@@ -334,7 +341,7 @@
 	fi
 install: all installHdrs
 	${INSTALL} -idb tiff.sw.dev -m 755 -dir @DIR_LIB@
-	${INSTALL} -idb tiff.sw.dev -m 444 -F @DIR_LIB@ -O libtiff.a
+	${LIBTOOL} ${BSD_INSTALL_DATA} libtiff.la @DIR_LIB@
 	if [ @DSO@dso != nodso ]; then					\
 	    ${MAKE} installDSO;						\
 	else								\