summaryrefslogtreecommitdiff
path: root/math/octave/patches/patch-af
blob: 6629a90b1299dbd3b6f28dd42a6bebd80057cd41 (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
$NetBSD: patch-af,v 1.4 2008/01/11 01:23:44 adam Exp $

--- liboctave/Makefile.in.orig	2007-11-30 19:53:30.000000000 +0100
+++ liboctave/Makefile.in
@@ -256,8 +256,9 @@ endif
 
 $(LIBPRE)octave.$(LIBEXT): $(LIBOCTAVE_OBJECTS)
 	rm -f $@
-	$(TEMPLATE_AR) $(TEMPLATE_ARFLAGS) $@ $(LIBOCTAVE_OBJECTS)
-	$(RANLIB) $@
+	${LIBTOOL} --mode=link ${CC} -o liboctave.$(LIBEXT) \
+		$(LIBOCTAVE_OBJECTS:.o=.lo) -rpath ${PREFIX}/lib \
+		-version-info ${version:3.0.%=3:%}
 
 $(LIBPRE)octave.$(SHLEXT_VER): $(LIBPRE)octave.$(SHLEXT)
 	rm -f $@
@@ -284,9 +285,8 @@ install-lib:
 	$(top_srcdir)/mkinstalldirs $(DESTDIR)$(octlibdir)
 	if $(STATIC_LIBS); then \
 	  rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(LIBEXT); \
-	  $(INSTALL_DATA) $(LIBPRE)octave.$(LIBEXT) \
-	    $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(LIBEXT); \
-	  $(RANLIB) $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(LIBEXT); \
+	  ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} liboctave.$(LIBEXT) \
+		${PREFIX}/lib; \
 	fi
 	if $(SHARED_LIBS); then \
 	  rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(SHLLIB_VER); \