diff options
Diffstat (limited to 'sci-physics/looptools/files/looptools-2.10-makefile.patch')
-rw-r--r-- | sci-physics/looptools/files/looptools-2.10-makefile.patch | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/sci-physics/looptools/files/looptools-2.10-makefile.patch b/sci-physics/looptools/files/looptools-2.10-makefile.patch deleted file mode 100644 index bf0df2e03bb5..000000000000 --- a/sci-physics/looptools/files/looptools-2.10-makefile.patch +++ /dev/null @@ -1,98 +0,0 @@ ---- a/makefile.in -+++ b/makefile.in -@@ -1,14 +1,17 @@ - BLD = build$(QUADSUFFIX) - --LIBDIR = $(PREFIX)/lib$(LIBDIRSUFFIX) --INCLUDEDIR = $(PREFIX)/include --BINDIR = $(PREFIX)/bin -+LIBDIR = $(DESTDIR)/$(PREFIX)/lib$(LIBDIRSUFFIX) -+INCLUDEDIR = $(DESTDIR)/$(PREFIX)/include -+BINDIR = $(DESTDIR)/$(PREFIX)/bin - - LIB = libooptools$(QUADSUFFIX).a - FE = lt$(QUADSUFFIX)$(EXE) - MFE = LoopTools$(QUADSUFFIX)$(EXE) - INCLUDE = $(BLD)/looptools.h $(BLD)/clooptools.h - -+LIBRARY=libooptools.so -+REALNAME=$(LIBRARY).$(VER) -+ - ARGS = $(PARALLEL) \ - LIB="$(LIB)" \ - FE="$(FE)" \ -@@ -16,12 +19,12 @@ - EXE="$(EXE)" \ - DEF="$(DEF)" \ - NOUNDERSCORE="$(NOUNDERSCORE)" \ -- XFC="$(FC$(QUADSUFFIX)) $(FFLAGS) $(FFLAGS-quad) -I." \ -+ XFC="$(FC$(QUADSUFFIX)) $(FFLAGS) $(FFLAGS-quad) -I. -fPIC" \ - F90="$(F90)" \ - CC="$(CC)" \ -- CFLAGS="$(CFLAGS) $(CFLAGS-quad)" \ -+ CFLAGS="$(CFLAGS) $(CFLAGS-quad) -fPIC" \ - CXX="$(CXX)" \ -- CXXFLAGS="$(CXXFLAGS)" \ -+ CXXFLAGS="$(CXXFLAGS) -fPIC" \ - ML="$(ML)" \ - MCC="$(MCC)" \ - MCFLAGS="$(MCFLAGS)" \ -@@ -32,22 +35,24 @@ - DLLTOOL="$(DLLTOOL)" \ - LDFLAGS="$(LDFLAGS)" \ - LIBPATH="$(LIBPATH)" \ -- OBJS-quad="$(OBJS-quad)" -+ OBJS-quad="$(OBJS-quad)" \ -+ REALNAME="$(REALNAME)" - - --default all lib frontend mma: force -+default all lib solib frontend mma: force - cd $(BLD) && $(MAKE) $(ARGS) $@ - --install: lib frontend -- -mkdir $(PREFIX) -+install: lib solib frontend -+ -mkdir $(DESTDIR)$(PREFIX) - -mkdir $(LIBDIR) $(BINDIR) $(INCLUDEDIR) - cp -p $(BLD)/$(LIB) $(LIBDIR) - cp -p $(INCLUDE$(QUADSUFFIX)) $(INCLUDEDIR) -- strip $(BLD)/$(FE) - cp -p $(BLD)/fcc $(BLD)/$(FE) $(BINDIR) - rm -f $(BINDIR)/f++ - ln -s fcc $(BINDIR)/f++ -- test ! -f $(BLD)/$(MFE) || { strip $(BLD)/$(MFE) ; cp -p $(BLD)/$(MFE) $(BINDIR); } -+ test ! -f $(BLD)/$(MFE) || { cp -p $(BLD)/$(MFE) $(BINDIR); } -+ cp -p $(BLD)/$(REALNAME) $(LIBDIR) -+ cd $(LIBDIR) && ln -s $(REALNAME) $(LIBRARY) - - force: $(BLD)/timestamp - ---- a/src/makefile -+++ b/src/makefile -@@ -1,6 +1,6 @@ --default: frontend mma$(ML) -+default: frontend mma$(ML) solib - --all: frontend mma1 -+all: frontend mma1 solib - - frontend: lib $(FE) - -@@ -8,6 +8,7 @@ - - mma0 lib: $(LIB) clooptools.h fcc - -+solib: $(REALNAME) fcc - - .SUFFIXES: - -@@ -243,6 +244,8 @@ - $(AR) cru $(LIB) $? - -$(RANLIB) $(LIB) - -+$(REALNAME): $(OBJS) -+ $(XFC) $(LDFLAGS) -shared -Wl,--soname,$(REALNAME) -o $@ $? - - $(FE): lt.F $(LTINC) $(LIB) - $(XFC) -o $(FE) lt.F $(LIB) -lpthread |