Places: autotools files--
This commit is contained in:
parent
ffd508e113
commit
ee9b1bd477
32
Makefile.am
32
Makefile.am
|
@ -1,32 +0,0 @@
|
|||
ACLOCAL_AMFLAGS = -I m4
|
||||
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess config.h.in \
|
||||
config.sub configure depcomp install-sh ltmain.sh \
|
||||
missing module.desktop config.rpath mkinstalldirs
|
||||
|
||||
SUBDIRS = src
|
||||
|
||||
if HAVE_PO
|
||||
|
||||
SUBDIRS += po
|
||||
|
||||
endif
|
||||
|
||||
EDJE_FLAGS = -v \
|
||||
-id $(top_srcdir)/images
|
||||
|
||||
filesdir = $(datadir)
|
||||
files_DATA = module.desktop e-module-places.edj
|
||||
|
||||
EXTRA_DIST = module.desktop.in \
|
||||
e_modules-places.spec.in \
|
||||
$(wildcard images/*.png) \
|
||||
e-module-places.edc
|
||||
|
||||
%.edj: %.edc
|
||||
$(EDJE_CC) $(EDJE_FLAGS) $< $@
|
||||
|
||||
clean-local:
|
||||
rm -rf e-module-places.edj module.desktop e_modules-places.spec *~
|
||||
|
||||
uninstall:
|
||||
rm -rf $(DESTDIR)$(datadir)
|
143
configure.ac
143
configure.ac
|
@ -1,143 +0,0 @@
|
|||
dnl Process this file with autoconf to produce a configure script.
|
||||
|
||||
# get rid of that stupid cache mechanism
|
||||
rm -f config.cache
|
||||
|
||||
AC_INIT(places, 0.20, dave@gurumeditation.it)
|
||||
AC_PREREQ(2.52)
|
||||
AC_CONFIG_SRCDIR(configure.ac)
|
||||
AC_CANONICAL_BUILD
|
||||
AC_CANONICAL_HOST
|
||||
AC_ISC_POSIX
|
||||
|
||||
AM_INIT_AUTOMAKE(1.8)
|
||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||
AC_CONFIG_HEADERS(config.h)
|
||||
|
||||
AC_PROG_CC
|
||||
AC_HEADER_STDC
|
||||
AC_C_CONST
|
||||
AC_C___ATTRIBUTE__
|
||||
|
||||
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
|
||||
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
|
||||
AC_PROG_LIBTOOL
|
||||
|
||||
m4_ifdef([AM_GNU_GETTEXT_VERSION], [
|
||||
AM_GNU_GETTEXT_VERSION([0.14])
|
||||
])
|
||||
|
||||
m4_ifdef([AM_GNU_GETTEXT], [
|
||||
AM_GNU_GETTEXT([external])
|
||||
po_makefile_in=po/Makefile.in
|
||||
AM_CONDITIONAL([HAVE_PO], [true])
|
||||
],[
|
||||
AM_CONDITIONAL([HAVE_PO], [false])
|
||||
])
|
||||
AC_SUBST(LTLIBINTL)
|
||||
|
||||
# check for Enlightenment
|
||||
PKG_CHECK_MODULES(E, [enlightenment >= 0.19.99])
|
||||
release=$(pkg-config --variable=release enlightenment)
|
||||
MODULE_ARCH="$host_os-$host_cpu-$release"
|
||||
AC_SUBST(MODULE_ARCH)
|
||||
AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
|
||||
|
||||
# Find edje_cc
|
||||
PKG_CHECK_MODULES(EDJE, [edje >= 1.8])
|
||||
AC_ARG_WITH(edje-cc,
|
||||
AC_HELP_STRING([--with-edje-cc=PATH], [specify a specific path to edje_cc]),
|
||||
[
|
||||
v=$withval;
|
||||
EDJE_CC=$v
|
||||
],[
|
||||
EDJE_CC=$(pkg-config --variable=prefix edje)/bin/edje_cc
|
||||
]
|
||||
)
|
||||
AC_SUBST(EDJE_CC)
|
||||
AC_MSG_CHECKING([Which edje_cc to use])
|
||||
AC_MSG_RESULT(${EDJE_CC})
|
||||
|
||||
# check for eldbus (default enabled)
|
||||
PKG_CHECK_MODULES([ELDBUS], [eldbus >= 1.8],
|
||||
[have_eldbus="yes"], [have_eldbus="no"])
|
||||
want_eldbus=yes
|
||||
AC_ARG_ENABLE([eldbus],
|
||||
AS_HELP_STRING([--enable-eldbus],[enable UDisks with eldbus support @<:@default=enabled@:>@]),
|
||||
[want_eldbus=$enableval])
|
||||
if test "x$want_eldbus" = "xno";then
|
||||
have_eldbus=no
|
||||
fi
|
||||
|
||||
# check for mount (default enabled)
|
||||
#TODO here check if /etc/fstab and /proc/mounts exists
|
||||
have_mount=yes
|
||||
want_mount=yes
|
||||
AC_ARG_ENABLE([mount],
|
||||
AS_HELP_STRING([--enable-mount],[enable mount fstab/mtab support @<:@default=enabled@:>@]),
|
||||
[want_mount=$enableval])
|
||||
if test "x$want_mount" = "xno";then
|
||||
have_mount=no
|
||||
fi
|
||||
|
||||
# check for eeze (default disabled)
|
||||
PKG_CHECK_MODULES([EEZE], [eeze >= 1.1.99],
|
||||
[have_eeze="yes"], [have_eeze="no"])
|
||||
want_eeze=no
|
||||
AC_ARG_ENABLE([eeze],
|
||||
AS_HELP_STRING([--enable-eeze],[enable eeze support @<:@default=disabled@:>@]),
|
||||
[want_eeze=$enableval])
|
||||
if test "x$want_eeze" != "xyes";then
|
||||
have_eeze=no
|
||||
fi
|
||||
|
||||
|
||||
AM_CONDITIONAL([PLACES_HAVE_ELDBUS], [test "x$have_eldbus" = "xyes"])
|
||||
test "x$have_eldbus" = "xyes" && AC_DEFINE_UNQUOTED([PLACES_HAVE_ELDBUS], [1], [enable eldbus support])
|
||||
|
||||
AM_CONDITIONAL([PLACES_HAVE_EEZE], [test "x$have_eeze" = "xyes"])
|
||||
test "x$have_eeze" = "xyes" && AC_DEFINE_UNQUOTED([PLACES_HAVE_EEZE], [1], [enable eeze support])
|
||||
|
||||
AM_CONDITIONAL([PLACES_HAVE_MOUNT], [test "x$have_mount" = "xyes"])
|
||||
test "x$have_mount" = "xyes" && AC_DEFINE_UNQUOTED([PLACES_HAVE_MOUNT], [1], [enable mount support])
|
||||
|
||||
|
||||
# homedir install
|
||||
datadir=$(pkg-config --variable=modules enlightenment)/${PACKAGE}
|
||||
AC_ARG_ENABLE(homedir-install,
|
||||
AS_HELP_STRING([--enable-homedir-install], [Install module in homedir]),
|
||||
[ datadir="${HOME}/.e/e/modules/${PACKAGE}" ]
|
||||
)
|
||||
|
||||
|
||||
AC_OUTPUT([
|
||||
Makefile
|
||||
src/Makefile
|
||||
module.desktop
|
||||
e_modules-places.spec
|
||||
$po_makefile_in
|
||||
], [
|
||||
])
|
||||
|
||||
|
||||
# report
|
||||
txt_strip() {
|
||||
echo "[$]@" | sed -e 's/^[[ \t]]*\([[^ \t]]*\)[[ \t]]*$/\1/g'
|
||||
}
|
||||
|
||||
echo
|
||||
cat << SUMMARY_EOF
|
||||
Summary:
|
||||
* project.........: $PACKAGE $VERSION
|
||||
* prefix..........: $(txt_strip $prefix)
|
||||
* CFLAGS..........: $(txt_strip $CFLAGS)
|
||||
* LDFLAGS.........: $(txt_strip $LDFLAGS)
|
||||
SUMMARY_EOF
|
||||
echo
|
||||
cat << DEVICE_EOF
|
||||
Device Backends:
|
||||
* build udisks (eldbus)....: $have_eldbus (default)
|
||||
* build mount (fstab/mtab).: $have_mount (default)
|
||||
* build eeze...............: $have_eeze (experimental)
|
||||
DEVICE_EOF
|
||||
echo
|
Loading…
Reference in New Issue