Commit 9c187b28 authored by Felipe Borges's avatar Felipe Borges 👣 Committed by Felipe Borges

Nuke autotools

Fixes #37
parent 2e5bb981
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = po data src
MAINTAINERCLEANFILES = \
$(srcdir)/INSTALL \
$(srcdir)/aclocal.m4 \
$(srcdir)/autoscan.log \
$(srcdir)/compile \
$(srcdir)/config.guess \
$(srcdir)/config.h.in \
$(srcdir)/config.sub \
$(srcdir)/configure.scan \
$(srcdir)/depcomp \
$(srcdir)/install-sh \
$(srcdir)/ltmain.sh \
$(srcdir)/missing \
$(srcdir)/mkinstalldirs
EXTRA_DIST = .gitignore
GITIGNOREFILES = .anjuta .anjuta_sym_db.db m4/
distdir = $(PACKAGE_NAME)-$(VERSION)
include $(top_srcdir)/git.mk
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="gnome-sound-recorder"
ACLOCAL_FLAGS="-I libgd $ACLOCAL_FLAGS"
test -f $srcdir/configure.ac || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level gnome-sound-recorder directory"
exit 1
}
which gnome-autogen.sh || {
echo "You need to install gnome-common from GNOME Git (or from"
echo "your OS vendor's package manager)."
exit 1
}
(cd "$srcdir" ;
test -d m4 || mkdir m4/ ;
git submodule update --init --recursive ;
)
. gnome-autogen.sh
AC_INIT([gnome-sound-recorder],[3.28.1],[gnome-sound-recorder])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11 foreign -Wno-portability tar-ustar dist-xz])
AM_SILENT_RULES([yes])
LT_INIT([disable-static])
GETTEXT_PACKAGE=gnome-sound-recorder
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
[The prefix for our gettext translation domains.])
IT_PROG_INTLTOOL([0.26])
GLIB_GSETTINGS
GOBJECT_INTROSPECTION_REQUIRE([0.9.6])
GLIB_MIN_VERSION=2.46
GTK_MIN_VERSION=3.12
GOBJECT_MIN_VERSION=1.31.6
PKG_CHECK_MODULES([DEPS], [gdk-3.0
gdk-pixbuf-2.0
glib-2.0 >= $GLIB_MIN_VERSION
gobject-introspection-1.0 >= $GOBJECT_MIN_VERSION
gtk+-3.0 >= $GTK_MIN_VERSION])
# Check for required plugins (stolen from Totem's configure.ac)
gst10_toolsdir=`$PKG_CONFIG --variable=toolsdir gstreamer-1.0`
gst10_inspect="$gst10_toolsdir/gst-inspect-1.0"
#Give error and exit if we don't have the gst_inspect tool
AC_MSG_CHECKING([GStreamer 1.0 inspection tool])
if test -r "$gst10_inspect"; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
AC_MSG_ERROR([
Cannot find required GStreamer-1.0 tool 'gst-inspect-1.0'.
It should be part of gstreamer-1_0-utils. Please install it.
])
fi
# Check for elements from gst-plugins-base
# Set plugins which contain below elements
for base_element in playbin audioconvert uridecodebin
do
AC_MSG_CHECKING([GStreamer 1.0 $base_element element])
if $gst10_inspect $base_element >/dev/null 2>/dev/null; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
AC_MSG_ERROR([
Cannot find required GStreamer-1.0 plugin '$1'.
It should be part of gst-plugins-base. Please install it.
])
fi
shift;
done
# Check for elements from gst-plugins-good
# Set plugins which contain below elements
for good_element in flacenc flacparse qtmux qtdemux oggdemux
do
AC_MSG_CHECKING([GStreamer 1.0 $good_element element])
if $gst10_inspect $good_element >/dev/null 2>/dev/null; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
AC_MSG_ERROR([
Cannot find required GStreamer-1.0 plugin '$1'.
It should be part of gst-plugins-good. Please install it.
])
fi
shift;
done
# Do a diff check for pulseaudio since we've run into problems on deb systems
AC_MSG_CHECKING([GStreamer 1.0 pulseaudio element])
if $gst10_inspect pulseaudio >/dev/null 2>/dev/null; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
AC_MSG_WARN([
Cannot find required GStreamer-1.0 plugin PulseAudio.
It should be part of gst-plugins-good on RPM-based distros
and gstreamer1.0-pulseaudio on Debian-based distros.
Please install it.
])
fi
# Check for elements from gst-plugins-bad
# but don't exit if they aren't installed. Just print error.
# Set plugins which contain below elements
for bad_element in id3mux
do
AC_MSG_CHECKING([GStreamer 1.0 $bad_element element])
if $gst10_inspect $bad_element >/dev/null 2>/dev/null; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
AC_MSG_WARN([
Cannot find required GStreamer-1.0 plugin '$1'.
It should be part of gst-plugins-bad. Please install it.
])
fi
shift;
done
AC_PATH_PROG(GJS, [gjs])
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
AC_SUBST(GLIB_COMPILE_RESOURCES)
AC_OUTPUT([
Makefile
data/Makefile
data/appdata/Makefile
data/icons/Makefile
src/Makefile
po/Makefile.in
])
SUBDIRS = appdata icons
resourcedir = $(pkgdatadir)
resource_DATA = application.css
appsdir = $(datadir)/applications
apps_DATA = org.gnome.SoundRecorder.desktop
@INTLTOOL_DESKTOP_RULE@
gsettings_SCHEMAS = org.gnome.gnome-sound-recorder.gschema.xml
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
org.gnome.SoundRecorder.desktop.in: org.gnome.SoundRecorder.desktop.in.in
$(AM_V_GEN) sed \
-e "s|[@]PACKAGE_NAME@|$(PACKAGE_NAME)|g" \
-e "s|[@]pkgdatadir@|$(pkgdatadir)|g" \
-e "s|[@]pkglibdir@|$(pkglibdir)|g" \
$< > $@
EXTRA_DIST = \
org.gnome.SoundRecorder.desktop.in.in \
$(gsettings_SCHEMAS) \
application.css \
$(NULL)
CLEANFILES = \
org.gnome.SoundRecorder.desktop.in \
$(apps_DATA) \
*.valid \
gschemas.compiled \
$(NULL)
# For uninstalled use
all-local:
$(GLIB_COMPILE_SCHEMAS) $(builddir)
@INTLTOOL_XML_RULE@
appdatadir = $(datadir)/metainfo
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
appdata_in_files = org.gnome.SoundRecorder.appdata.xml.in
EXTRA_DIST = $(appdata_in_files) \
.gitignore
CLEANFILES = $(appdata_DATA)
-include $(top_srcdir)/git.mk
icondir = $(datadir)/icons/
nobase_icon_DATA = \
hicolor/16x16/apps/org.gnome.SoundRecorder.png \
hicolor/22x22/apps/org.gnome.SoundRecorder.png \
hicolor/24x24/apps/org.gnome.SoundRecorder.png \
hicolor/32x32/apps/org.gnome.SoundRecorder.png \
hicolor/48x48/apps/org.gnome.SoundRecorder.png \
hicolor/256x256/apps/org.gnome.SoundRecorder.png \
hicolor/symbolic/apps/org.gnome.SoundRecorder-symbolic.svg
EXTRA_DIST = $(nobase_icon_DATA) \
hicolor/org.gnome.SoundRecorder.svg \
.gitignore
gtk_update_icon_cache = gtk-update-icon-cache -f $(datadir)/icons/hicolor
install-data-hook: update-icon-cache
uninstall-hook: update-icon-cache
update-icon-cache:
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
$(gtk_update_icon_cache); \
else \
echo "*** Icon cache not updated. After (un)install, run this:"; \
echo "*** $(gtk_update_icon_cache)"; \
fi
-include $(top_srcdir)/git.mk
......@@ -22,6 +22,7 @@
"modules" : [
{
"name" : "gnome-sound-recorder",
"buildsystem": "meson",
"sources" : [
{
"type" : "git",
......
NULL =
appdir = $(pkgdatadir)
nodist_app_SCRIPTS = org.gnome.SoundRecorder
app_resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/org.gnome.SoundRecorder.src.gresource.xml)
org.gnome.SoundRecorder.src.gresource: org.gnome.SoundRecorder.src.gresource.xml $(app_resource_files)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) $<
resourcedir = $(pkgdatadir)
resource_DATA = org.gnome.SoundRecorder.src.gresource
org.gnome.SoundRecorder: org.gnome.SoundRecorder.in
$(AM_V_GEN) sed \
-e "s|[@]GJS@|$(GJS)|g" \
-e "s|[@]PACKAGE_VERSION@|$(PACKAGE_VERSION)|g" \
-e "s|[@]prefix@|$(prefix)|g" \
-e "s|[@]libdir@|$(libdir)|g" \
-e "s|[@]pkgdatadir@|$(pkgdatadir)|g" \
$< > $@
@chmod +x $@
EXTRA_DIST = \
org.gnome.SoundRecorder.in \
org.gnome.SoundRecorder.src.gresource.xml \
.gitignore \
$(app_resource_files) \
$(NULL)
CLEANFILES = \
org.gnome.SoundRecorder \
org.gnome.SoundRecorder.src.gresource \
$(NULL)
install-exec-hook:
$(MKDIR_P) $(DESTDIR)$(bindir)
ln -sf $(appdir)/org.gnome.SoundRecorder $(DESTDIR)$(bindir)/$(PACKAGE_TARNAME)
uninstall-hook:
-rm -f $(DESTDIR)$(bindir)/$(PACKAGE_TARNAME)
-include $(top_srcdir)/git.mk
Markdown is supported
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