openbsd-ports/math/octave/patches/patch-liboctave_Makefile_in
2008-01-21 18:30:13 +00:00

39 lines
1.5 KiB
Plaintext

$OpenBSD: patch-liboctave_Makefile_in,v 1.6 2008/01/21 18:30:13 steven Exp $
--- liboctave/Makefile.in.orig Fri Nov 30 19:53:30 2007
+++ liboctave/Makefile.in Sat Dec 29 17:13:51 2007
@@ -233,6 +233,9 @@ stamp-prereq: $(OPTS_INC) $(VX_OP_INC) $(VX_OP_SRC) \
$(SPARSE_MX_OP_INC) $(SPARSE_MX_OP_SRC)
touch stamp-prereq
+SHLLIB_VER=$(SHLEXT).$(LIBoctave_VERSION)
+SHLEXT_VER=$(SHLLIB_VER)
+
ifeq ($(SHARED_LIBS), true)
ifeq ($(STATIC_LIBS), true)
libraries: \
@@ -259,12 +262,8 @@ $(LIBPRE)octave.$(LIBEXT): $(LIBOCTAVE_OBJECTS)
$(TEMPLATE_AR) $(TEMPLATE_ARFLAGS) $@ $(LIBOCTAVE_OBJECTS)
$(RANLIB) $@
-$(LIBPRE)octave.$(SHLEXT_VER): $(LIBPRE)octave.$(SHLEXT)
+$(LIBPRE)octave.$(SHLEXT_VER): $(LIBOCTAVE_PICOBJ)
rm -f $@
- $(LN_S) $< $@
-
-$(LIBPRE)octave.$(SHLEXT): $(LIBOCTAVE_PICOBJ)
- rm -f $@
$(SH_LD) $(SH_LDFLAGS) $(SONAME_FLAGS) -o $@ \
$(LIBOCTAVE_PICOBJ) $(LINK_DEPS)
@@ -291,9 +290,7 @@ install-lib:
if $(SHARED_LIBS); then \
rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(SHLLIB_VER); \
$(INSTALL) \
- $(LIBPRE)octave.$(SHLLIB) $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(SHLLIB_VER); \
- rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(SHLLIB); \
- (cd $(DESTDIR)$(octlibdir) ; $(LN_S) $(LIBPRE)octave.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(SHLLIB)); \
+ $(LIBPRE)octave.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/$(LIBPRE)octave.$(SHLLIB_VER); \
if test x$(SHLBIN) != x ; then \
rm -f $(DESTDIR)$(bindir)/$(LIBPRE)octave.$(SHLBIN); \
$(INSTALL_PROGRAM) \