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

50 lines
2.0 KiB
Plaintext

$OpenBSD: patch-src_Makefile_in,v 1.7 2008/01/21 18:30:13 steven Exp $
--- src/Makefile.in.orig Wed Dec 5 18:07:42 2007
+++ src/Makefile.in Sat Dec 29 17:13:51 2007
@@ -298,6 +298,9 @@ else
PIC_XERBLA = $(XERBLA)
endif
+SHLLIB_VER=$(SHLEXT).$(LIBoctinterp_VERSION)
+SHLEXT_VER=$(SHLLIB_VER)
+
ifeq ($(SHARED_LIBS), true)
ifeq ($(STATIC_LIBS), true)
LIBRARIES = $(LIBPRE)octinterp.$(LIBEXT) $(LIBPRE)octinterp.$(SHLEXT_VER)
@@ -321,12 +324,8 @@ $(LIBPRE)octinterp.$(LIBEXT): $(OBJECTS) $(XERBLA)
$(TEMPLATE_AR) $(TEMPLATE_ARFLAGS) $@ $^
$(RANLIB) $@
-$(LIBPRE)octinterp.$(SHLEXT_VER): $(LIBPRE)octinterp.$(SHLEXT)
+$(LIBPRE)octinterp.$(SHLEXT_VER): $(PICOBJ) $(PIC_XERBLA)
rm -f $@
- $(LN_S) $< $@
-
-$(LIBPRE)octinterp.$(SHLEXT): $(PICOBJ) $(PIC_XERBLA)
- rm -f $@
$(SH_LD) $(SH_LDFLAGS) $(SONAME_FLAGS) -o $@ $^ $(OCTINTERP_LINK_DEPS)
stamp-prereq: defaults.h graphics.h oct-conf.h oct-gperf.h parse.cc lex.cc __gnuplot_raw__.cc $(OPT_HANDLERS)
@@ -421,8 +420,7 @@ install-strip:
install-bin:
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
rm -f $(DESTDIR)$(bindir)/octave$(EXEEXT)
- $(INSTALL_PROGRAM) octave$(EXEEXT) $(DESTDIR)$(bindir)/octave-$(version)$(EXEEXT)
- cd $(DESTDIR)$(bindir) ; $(LN_S) octave-$(version)$(EXEEXT) octave$(EXEEXT)
+ $(INSTALL_PROGRAM) octave$(EXEEXT) $(DESTDIR)$(bindir)/octave$(EXEEXT)
.PHONY: install-bin
install-oct:
@@ -446,10 +444,8 @@ install-lib:
fi
if $(SHARED_LIBS); then \
rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(SHLEXT_VER); \
- $(INSTALL) $(LIBPRE)octinterp.$(SHLLIB) \
+ $(INSTALL) $(LIBPRE)octinterp.$(SHLLIB_VER) \
$(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(SHLLIB_VER); \
- rm -f $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(SHLLIB); \
- (cd $(DESTDIR)$(octlibdir) ; $(LN_S) $(LIBPRE)octinterp.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/$(LIBPRE)octinterp.$(SHLLIB)); \
if test x$(SHLBIN) != x ; then \
rm -f $(DESTDIR)$(bindir)/$(LIBPRE)octinterp.$(SHLBIN); \
$(INSTALL_PROGRAM) \