Commit 52a011a4 authored by Richard Hughes's avatar Richard Hughes
Browse files

Add --enable-offline-appstream-data configure switch

parent 360de72b
......@@ -90,6 +90,13 @@ AS_IF([test "$enable_man" != no], [
])
AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)
# ostree doesn't have networking
AC_ARG_ENABLE(offline-appstream-data,
[AS_HELP_STRING([--enable-offline-appstream-data],
[ship offline appstream data [default=yes]])],,
enable_offline_appstream_data=yes)
AM_CONDITIONAL(ENABLE_OFFLINE_APPSTREAM_DATA, test "$enable_offline_appstream_data" != no)
dnl ---------------------------------------------------------------------------
dnl - Makefiles, etc.
dnl ---------------------------------------------------------------------------
......@@ -109,6 +116,7 @@ echo "
prefix: ${prefix}
datadir: ${datadir}
Offline AppStream data: ${enable_offline_appstream_data}
compiler: ${CC}
cflags: ${CFLAGS}
cppflags: ${CPPFLAGS}
......
......@@ -14,6 +14,7 @@ dist_resources_DATA = \
appdatadir = $(datadir)/appdata
appdata_files = gnome-software.appdata.xml
if ENABLE_OFFLINE_APPSTREAM_DATA
appstream.xml.gz:
wget -N http://people.freedesktop.org/~hughsient/temp/appstream.xml.gz
appstream-icons.tar.gz:
......@@ -24,6 +25,7 @@ dist_appstream_DATA = appstream.xml.gz appstream-icons.tar.gz
EXTRA_DIST = \
$(appdata_files)
endif
CLEANFILES = \
$(dist_appstream_DATA)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment