summaryrefslogtreecommitdiff
path: root/math/octave-current/patches/patch-af
blob: 20e6837bd61fb79d0dcb21fb6ec4b3c6e95f015f (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
57
58
59
60
61
62
63
$NetBSD: patch-af,v 1.3 2001/04/22 22:58:47 jtb Exp $

--- liboctave/Makefile.in.orig	Sun Apr 22 20:22:11 2001
+++ liboctave/Makefile.in	Sun Apr 22 20:47:03 2001
@@ -18,7 +18,7 @@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
 
-LIBOCTAVE_LFLAGS = -L../libcruft -L../readline -L../kpathsea \
+LIBOCTAVE_LFLAGS = -L../libcruft -L${LOCALBASE}/lib -L../kpathsea \
 	-L../glob -L. $(RLD_FLAG)
 
 LIBOCTAVE_LIBS = -lcruft -lreadline -lkpathsea -lglob
@@ -146,25 +146,11 @@
 	  mkdir pic; \
 	fi
 
-ifeq ($(SHARED_LIBS), true)
-  ifeq ($(STATIC_LIBS), true)
-    libraries: liboctave.$(LIBEXT) liboctave.$(SHLEXT)
-  else
-    libraries: liboctave.$(SHLEXT)
-  endif
-else
-  ifeq ($(STATIC_LIBS), true)
-    libraries: liboctave.$(LIBEXT)
-  else
-    libraries:
-  endif
-endif
+libraries: liboctave.$(LIBEXT)
 .PHONY: libraries
 
 liboctave.$(LIBEXT): $(OBJECTS)
-	rm -f $@
-	$(TEMPLATE_AR) $(TEMPLATE_ARFLAGS) $@ $^
-	$(RANLIB) $@
+	${LIBTOOL} --mode=link cc -o liboctave.${LIBEXT} ${OBJECTS:.o=.lo} -rpath ${PREFIX}/lib -version-info ${version:2.1.%=2:%}
 
 liboctave.$(SHLEXT): liboctave.$(SHLEXT_VER)
 	rm -f $@
@@ -188,20 +174,7 @@
 
 install-lib:
 	$(top_srcdir)/mkinstalldirs $(octlibdir)
-	if $(STATIC_LIBS); then \
-	  rm -f $(octlibdir)/liboctave.$(LIBEXT); \
-	  $(INSTALL_DATA) liboctave.$(LIBEXT) \
-	    $(octlibdir)/liboctave.$(LIBEXT); \
-	  $(RANLIB) $(octlibdir)/liboctave.$(LIBEXT); \
-	fi
-	if $(SHARED_LIBS); then \
-	  rm -f $(octlibdir)/liboctave.$(SHLEXT_VER); \
-	  $(INSTALL_PROGRAM) \
-	    liboctave.$(SHLEXT_VER) $(octlibdir)/liboctave.$(SHLEXT_VER); \
-	  cd $(octlibdir); \
-	  rm -f liboctave.$(SHLEXT); \
-	  $(LN_S) liboctave.$(SHLEXT_VER) liboctave.$(SHLEXT); \
-	fi
+	${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} liboctave.${LIBEXT} ${PREFIX}/lib
 	$(mk-libdir-link)
 .PHONY: install-lib