q66 pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=076aa56b9be524ca86f768ff989944c1eb52f445

commit 076aa56b9be524ca86f768ff989944c1eb52f445
Author: q66 <quake...@gmail.com>
Date:   Thu Aug 7 22:53:47 2014 +0100

    autotools: install .pc files to the correct directory on FreeBSD
---
 Makefile.am  | 5 +++++
 configure.ac | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index fa91c5a..886b2ad 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -74,7 +74,12 @@ include src/Makefile.mk
 filesdir = $(datadir)/enlightenment/
 files_DATA = AUTHORS COPYING 
 
+if HAVE_FREEBSD
+pkgconfigdir = $(libdir)data/pkgconfig
+else
 pkgconfigdir = $(libdir)/pkgconfig
+endif
+
 pkgconfig_DATA = enlightenment.pc
 
 include doc/Makefile.mk
diff --git a/configure.ac b/configure.ac
index 34559a9..62c0f6d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -659,6 +659,7 @@ define([CHECK_MODULE_BATTERY],
 ])
 
 have_openbsd="no"
+have_freebsd="no"
 BATTERY_LDFLAGS=
 case "$host_os" in
   darwin*)
@@ -667,10 +668,14 @@ case "$host_os" in
   openbsd*)
     have_openbsd="yes"
   ;;
+  freebsd*)
+    have_freebsd="yes"
+  ;;
 esac
 
 AC_SUBST([BATTERY_LDFLAGS])
 AM_CONDITIONAL([HAVE_OPENBSD], [test "x${have_openbsd}" = "xyes"])
+AM_CONDITIONAL([HAVE_FREEBSD], [test "x${have_freebsd}" = "xyes"])
 
 AM_CONDITIONAL(HAVE_TEMPERATURE, false)
 define([CHECK_MODULE_TEMPERATURE],

-- 


Reply via email to