diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2007-07-22 10:36:56 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2007-07-22 10:36:56 +0000 |
commit | 7286a50dc52ca7964fb387a8719f119b14e4936b (patch) | |
tree | 807d2083f04ad8932538264b6c0deec8bbc9ef2c /misc/libpri/files | |
parent | 3122d1afe6f67c93c15b25d42b7f87519862da0d (diff) | |
download | ports-7286a50dc52ca7964fb387a8719f119b14e4936b.tar.gz ports-7286a50dc52ca7964fb387a8719f119b14e4936b.zip |
Notes
Diffstat (limited to 'misc/libpri/files')
-rw-r--r-- | misc/libpri/files/patch-Makefile | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/misc/libpri/files/patch-Makefile b/misc/libpri/files/patch-Makefile index a579cef726bd..69052d97c043 100644 --- a/misc/libpri/files/patch-Makefile +++ b/misc/libpri/files/patch-Makefile @@ -29,26 +29,30 @@ $FreeBSD$ LDCONFIG = /sbin/ldconfig ifneq (,$(findstring X$(OSARCH)X, XLinuxX XGNU/kFreeBSDX)) LDCONFIG_FLAGS=-n -@@ -77,15 +77,14 @@ - fi - - install: $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY) -- mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/lib -- mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/include -+ mkdir -p $(INSTALL_PREFIX)/lib -+ mkdir -p $(INSTALL_PREFIX)/include +@@ -47,7 +47,7 @@ + ifeq (${OSARCH},FreeBSD) + LDCONFIG_FLAGS=-m + CFLAGS += -I../zaptel -I../zapata +-INSTALL_BASE=/usr/local ++INSTALL_BASE= + endif + endif + ifeq (${OSARCH},SunOS) +@@ -80,12 +80,11 @@ + mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/lib + mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/include ifneq (${OSARCH},SunOS) - install -m 644 libpri.h $(INSTALL_PREFIX)$(INSTALL_BASE)/include - install -m 755 $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib -- if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"); then restorecon -v $(INSTALL_PREFIX)$(INSTALL_BASE)/lib/$(DYNAMIC_LIBRARY); fi +- if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"); then /sbin/restorecon -v $(INSTALL_PREFIX)$(INSTALL_BASE)/lib/$(DYNAMIC_LIBRARY); fi - ( cd $(INSTALL_PREFIX)$(INSTALL_BASE)/lib ; ln -sf libpri.so.1.0 libpri.so ; ln -sf libpri.so.1.0 libpri.so.1 ) - install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib - if test $$(id -u) = 0; then $(LDCONFIG) $(LDCONFIG_FLAGS) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib; fi + echo installing libpri.h -+ $(BSD_INSTALL_DATA) libpri.h $(INSTALL_PREFIX)/include -+ $(BSD_INSTALL_PROGRAM) $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)/lib -+ ( cd $(INSTALL_PREFIX)/lib ; ln -sf libpri.so.1 libpri.so ) -+ $(BSD_INSTALL_DATA) $(STATIC_LIBRARY) $(INSTALL_PREFIX)/lib ++ $(BSD_INSTALL_DATA) libpri.h $(INSTALL_PREFIX)$(INSTALL_BASE)/include ++ $(BSD_INSTALL_PROGRAM) $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib ++ ( cd $(INSTALL_PREFIX)$(INSTALL_BASE)/lib ; ln -sf libpri.so.1 libpri.so ) ++ $(BSD_INSTALL_DATA) $(STATIC_LIBRARY) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib else install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/include -m 644 libpri.h install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/lib -m 755 $(DYNAMIC_LIBRARY) |