diff options
Diffstat (limited to 'science')
-rw-r--r-- | science/simlib/Makefile | 1 | ||||
-rw-r--r-- | science/simlib/files/patch-src__Makefile.generic | 27 |
2 files changed, 17 insertions, 11 deletions
diff --git a/science/simlib/Makefile b/science/simlib/Makefile index f67905ad5fff..f9964b21e0f9 100644 --- a/science/simlib/Makefile +++ b/science/simlib/Makefile @@ -19,7 +19,6 @@ CXXFLAGS+= -fPIC NOT_FOR_ARCHS= ia64 powerpc sparc64 NOT_FOR_ARCHS_REASON= contains not working ${ARCH}-dependent assembly code -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's|make|gmake|g' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's#%%PREFIX%%#${PREFIX}#g' \ diff --git a/science/simlib/files/patch-src__Makefile.generic b/science/simlib/files/patch-src__Makefile.generic index eed108489b67..c2e43c8e68f9 100644 --- a/science/simlib/files/patch-src__Makefile.generic +++ b/science/simlib/files/patch-src__Makefile.generic @@ -1,15 +1,22 @@ ---- src/Makefile.generic.orig 2008-04-06 14:25:38.000000000 +0800 -+++ src/Makefile.generic 2008-04-06 14:26:50.000000000 +0800 -@@ -225,9 +225,9 @@ +--- src/Makefile.generic.orig 2014-06-10 23:04:24.274911932 +0800 ++++ src/Makefile.generic 2014-06-10 23:05:00.866911669 +0800 +@@ -224,15 +224,10 @@ clean: + #TODO: add version and symlink install: all - install -d $(PREFIX)/include $(PREFIX)/lib +- install -d $(PREFIX)/include $(PREFIX)/lib - install -m0644 $(SIMLIB_HEADERS) $(PREFIX)/include - install -m0644 $(LIBNAME).a $(PREFIX)/lib/lib$(LIBNAME).a - install -m0644 $(LIBNAME).so $(PREFIX)/lib/lib$(LIBNAME).so -+ $(BSD_INSTALL_DATA) $(SIMLIB_HEADERS) %%PREFIX%%/include -+ $(BSD_INSTALL_PROGRAM) $(LIBNAME).a %%PREFIX%%/lib/lib$(LIBNAME).a -+ $(BSD_INSTALL_PROGRAM) $(LIBNAME).so %%PREFIX%%/lib/lib$(LIBNAME).so - @if ! grep '^'$(PREFIX)/lib'$$' /etc/ld.so.conf >/dev/null; then \ - echo "Add $(PREFIX)/lib to /etc/ld.so.conf "; \ - fi +- @if ! grep '^'$(PREFIX)/lib'$$' /etc/ld.so.conf >/dev/null; then \ +- echo "Add $(PREFIX)/lib to /etc/ld.so.conf "; \ +- fi +- @echo "This should be run as root" +- ldconfig # update dynamic linker cache ++ install -d $(DESTDIR)$(PREFIX)/include $(DESTDIR)$(PREFIX)/lib ++ install -m0644 $(SIMLIB_HEADERS) $(DESTDIR)$(PREFIX)/include ++ install -m0644 $(LIBNAME).a $(DESTDIR)$(PREFIX)/lib/lib$(LIBNAME).a ++ install -m0644 $(LIBNAME).so $(DESTDIR)$(PREFIX)/lib/lib$(LIBNAME).so + + ############################################################################# + # Uninstall library |