Summary:
Battery module relies on Apple's CoreFoundation (CF), but CF's CFLAGS
were not provided to this module.
Test Plan: Enlightenment now compiles on OS X.
Reviewers: zmike, raster
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2328
BATTERY_LDFLAGS=
case "$host_os" in
darwin*)
- BATTERY_LDFLAGS="-framework Foundation -framework IOKit"
+ BATTERY_LDFLAGS="${cf_libs}"
+ BATTERY_CFLAGS="${BATTERY_CFLAGS} ${cf_cflags}"
;;
openbsd*)
have_openbsd="yes"
src_modules_battery_batgetdir = $(batterypkgdir)
src_modules_battery_batget_PROGRAMS = src/modules/battery/batget
-src_modules_battery_batget_CPPFLAGS = $(MOD_CPPFLAGS)
+src_modules_battery_batget_CPPFLAGS = $(MOD_CPPFLAGS) @BATTERY_CFLAGS@
src_modules_battery_batget_SOURCES = src/modules/battery/batget.c
src_modules_battery_batget_LDADD = @BATTERY_LIBS@
src_modules_battery_batget_LDFLAGS = @BATTERY_LDFLAGS@