summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorq66 <quaker66@gmail.com>2014-08-07 22:49:09 +0100
committerq66 <quaker66@gmail.com>2014-08-07 22:49:09 +0100
commitdea408a2a4f1651f8ade3c4105b9d26b8cfe29b0 (patch)
tree80666b23bacedf768c2d8021e51b58aad461e086
parent40034a82ee5be6d4ec362d6642b2fedcf9a9cca2 (diff)
autotools: install .pc files to the correct directory on FreeBSD
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac7
2 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 13d9ac9d6..9ab1e96ba 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -71,7 +71,12 @@ m4/efl_doxygen.m4 \
71config.rpath \ 71config.rpath \
72pkgbuild/PKGBUILD 72pkgbuild/PKGBUILD
73 73
74if HAVE_FREEBSD
75pkgconfigdir = $(libdir)data/pkgconfig
76else
74pkgconfigdir = $(libdir)/pkgconfig 77pkgconfigdir = $(libdir)/pkgconfig
78endif
79
75pkgconfig_DATA = elementary.pc 80pkgconfig_DATA = elementary.pc
76 81
77cmakeconfigdir = $(libdir)/cmake/Elementary 82cmakeconfigdir = $(libdir)/cmake/Elementary
diff --git a/configure.ac b/configure.ac
index 293482434..21b7e2c14 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,6 +37,12 @@ ELM_UNIX_DEF="#undef"
37ELM_WIN32_DEF="#undef" 37ELM_WIN32_DEF="#undef"
38have_windows="no" 38have_windows="no"
39have_dlopen="no" 39have_dlopen="no"
40have_freebsd="no"
41case "$host_os" in
42 freebsd*)
43 have_freebsd="yes"
44 ;;
45esac
40case "$host_os" in 46case "$host_os" in
41 mingw*) 47 mingw*)
42 PKG_CHECK_MODULES([EVIL], [evil]) 48 PKG_CHECK_MODULES([EVIL], [evil])
@@ -88,6 +94,7 @@ esac
88 94
89AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"]) 95AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"])
90AM_CONDITIONAL([BUILD_MODULES], [test "x$have_dlopen" = "xyes"]) 96AM_CONDITIONAL([BUILD_MODULES], [test "x$have_dlopen" = "xyes"])
97AM_CONDITIONAL([HAVE_FREEBSD], [test "x${have_freebsd}" = "xyes"])
91 98
92AC_SUBST([default_engine]) 99AC_SUBST([default_engine])
93AC_DEFINE_UNQUOTED([DEFAULT_ENGINE], ["$default_engine"], ["Default engine according to host"]) 100AC_DEFINE_UNQUOTED([DEFAULT_ENGINE], ["$default_engine"], ["Default engine according to host"])