aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-10-16 14:53:37 +0000
committerVincent Richard <[email protected]>2005-10-16 14:53:37 +0000
commit53d9ede9de54f6b29b8649e06033f46dc0195a13 (patch)
treed8aa5f0b832b0550797e63a5cec9977cfcb01212
parentAdded test suites for 'attachmentHelper'. (diff)
downloadvmime-53d9ede9de54f6b29b8649e06033f46dc0195a13.tar.gz
vmime-53d9ede9de54f6b29b8649e06033f46dc0195a13.zip
Fixed 'pkgconfigdir' on FreeBSD (thanks to Xin LI).
-rw-r--r--SConstruct22
1 files changed, 21 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index c7e90923..a1d61661 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1072,7 +1072,7 @@ DIST_SUBDIRS = $(SUBDIRS) autotools
#AUTOMAKE_OPTIONS = dist-bzip2
AUTOMAKE_OPTIONS = no-dist
-pkgconfigdir = $(libdir)/pkgconfig
+pkgconfigdir = $(VMIME_PKGCONFIGDIR)
pkgconfig_DATA = $(GENERIC_VERSIONED_LIBRARY_NAME).pc
EXTRA_DIST=SConstruct bootstrap
@@ -1700,6 +1700,26 @@ fi
configure_in.write("""
#
+# Workarounds for some platforms
+#
+
+# -- pkgconfigdir
+case "x${target_os}" in
+xfreebsd*)
+
+ VMIME_PKGCONFIGDIR='$(prefix)/libdata/pkgconfig'
+ ;;
+
+x*)
+
+ VMIME_PKGCONFIGDIR='$(libdir)/pkgconfig'
+ ;;
+esac
+
+AC_SUBST(VMIME_PKGCONFIGDIR)
+
+
+#
# Flags
#