In Mac OS, create the Framework in $(DESTDIR) not in /
authorPete Fotheringham <pete.fotheringham@codethink.co.uk>
Fri, 30 Dec 2011 15:36:48 +0000 (15:36 +0000)
committerPete Fotheringham <pete.fotheringham@codethink.co.uk>
Sun, 1 Jan 2012 17:32:16 +0000 (17:32 +0000)
Makefile.am
lib/Makefile.am

index d6005fb..c2bdf33 100644 (file)
@@ -77,7 +77,7 @@ dist-hook:
        @find $(distdir) -name CVS -print | xargs -t rm -rf
        (cd $(distdir)/plugins && sh makeinit.sh)
 
-framedir = /Library/Frameworks/SASL2.framework
+framedir = $(DESTDIR)/Library/Frameworks/SASL2.framework
 install-exec-local: $(INSTALLOSX)
        @if test "$(plugindir)" != "$(prefix)/lib/sasl2"; then \
          echo "********************************************************"; \
index 894f131..a402b52 100644 (file)
@@ -65,7 +65,7 @@ libsasl2_la_DEPENDENCIES = $(LTLIBOBJS)
 libsasl2_la_LIBADD = $(LTLIBOBJS) $(SASL_DL_LIB) $(LIB_SOCKET) $(LIB_DOOR)
 
 if MACOSX
-framedir = /Library/Frameworks/SASL2.framework
+framedir = $(DESTDIR)/Library/Frameworks/SASL2.framework
 install-exec-hook:
        $(mkinstalldirs) $(framedir)/Versions/A
        ln -fs $(libdir)/libsasl2.dylib $(framedir)/Versions/A/SASL2