diff options
author | vanilla <vanilla@FreeBSD.org> | 2014-06-10 23:07:59 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2014-06-10 23:07:59 +0800 |
commit | 5d9ce2602d8e2daeca9cebc5b53f9375b67b69a5 (patch) | |
tree | 3d3ef6df43e06eb98288741209da01a0b347d48a /science | |
parent | 4a16bc77d6d91afd50e64a799d2acd6b3066fa89 (diff) | |
download | freebsd-ports-gnome-5d9ce2602d8e2daeca9cebc5b53f9375b67b69a5.tar.gz freebsd-ports-gnome-5d9ce2602d8e2daeca9cebc5b53f9375b67b69a5.tar.zst freebsd-ports-gnome-5d9ce2602d8e2daeca9cebc5b53f9375b67b69a5.zip |
Stagify.
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 |