1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
This commit is contained in:
Vanilla I. Shu 2014-06-10 15:07:59 +00:00
parent 14e55b7b8b
commit 5304c2184f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357319
2 changed files with 17 additions and 11 deletions

View File

@ -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' \

View File

@ -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