Codebase list cinnamon-menus / 47d69b2
Migrate away from gnome-common deprecated vars and macros gnome-common is deprecating some vars and macros, listed here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=829932 This change follows the gnome recommendations from: https://wiki.gnome.org/Projects/GnomeCommon/Migration Maximiliano Curia 7 years ago
3 changed file(s) with 40 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
0 #!/bin/bash
0 #!/bin/sh
11 # Run this to generate all the initial makefiles, etc.
2 test -n "$srcdir" || srcdir=$(dirname "$0")
3 test -n "$srcdir" || srcdir=.
24
3 srcdir=`dirname $0`
4 test -z "$srcdir" && srcdir=.
5 olddir=$(pwd)
56
6 PKG_NAME="cinnamon-menus"
7 REQUIRED_AUTOMAKE_VERSION=1.10
7 cd $srcdir
88
9 which gnome-autogen.sh || {
10 echo "You need to install gnome-common from GNOME Subversion (or from"
11 echo "your distribution's package manager)."
9 (test -f configure.ac) || {
10 echo "*** ERROR: Directory '$srcdir' does not look like the top-level project directory ***"
1211 exit 1
1312 }
14 USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh
13
14 # shellcheck disable=SC2016
15 PKG_NAME=$(autoconf --trace 'AC_INIT:$1' configure.ac)
16
17 if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then
18 echo "*** WARNING: I am going to run 'configure' with no arguments." >&2
19 echo "*** If you wish to pass any to it, please specify them on the" >&2
20 echo "*** '$0' command line." >&2
21 echo "" >&2
22 fi
23
24 aclocal --install || exit 1
25 glib-gettextize --force --copy || exit 1
26 gtkdocize --copy || exit 1
27 intltoolize --force --copy --automake || exit 1
28 autoreconf --verbose --force --install || exit 1
29
30 cd "$olddir"
31 if [ "$NOCONFIGURE" = "" ]; then
32 $srcdir/configure "$@" || exit 1
33
34 if [ "$1" = "--help" ]; then exit 0 else
35 echo "Now type 'make' to compile $PKG_NAME" || exit 1
36 fi
37 else
38 echo "Skipping configure process."
39 fi
11
22 AC_INIT([cinnamon-menus], [3.0.2])
33 AC_CONFIG_SRCDIR(libmenu/gmenu-tree.h)
4 AX_IS_RELEASE([git-directory])
45
56 AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
67 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
78 AC_CONFIG_MACRO_DIR([m4])
9 AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \${ACLOCAL_FLAGS}"])
810 AC_CONFIG_HEADERS(config.h)
911
1012 AM_MAINTAINER_MODE
11 GNOME_MAINTAINER_MODE_DEFINES
1213
1314 # Before making a release, the LT_VERSION string should be modified.
1415 # The string is of the form C:R:A.
3132 AC_SUBST(GIO_UNIX_CFLAGS)
3233 AC_SUBST(GIO_UNIX_LIBS)
3334
34 GNOME_COMPILE_WARNINGS(yes)
35 AX_COMPILER_FLAGS([WARN_CFLAGS],[WARN_LDFLAGS])
3536
3637 AC_ARG_ENABLE(deprecation_flags,
3738 [AC_HELP_STRING([--enable-deprecation-flags],
11
22 AM_CPPFLAGS = \
33 $(GIO_UNIX_CFLAGS) \
4 $(WARN_CFLAGS) \
45 -DGMENU_I_KNOW_THIS_IS_UNSTABLE \
56 $(DISABLE_DEPRECATED_CFLAGS) \
67 $(DEBUG_CFLAGS)
3435 $(GIO_UNIX_LIBS)
3536
3637 libcinnamon_menu_3_la_LDFLAGS = \
38 $(WARN_LDFLAGS) \
3739 -version-info $(LIB_MENU_LT_VERSION) \
3840 -no-undefined \
3941 -export-symbols-regex gmenu_tree
6062 CMenu_3_0_gir_INCLUDES = Gio-2.0
6163 CMenu_3_0_gir_CFLAGS = $(AM_CPPFLAGS)
6264 CMenu_3_0_gir_LIBS = libcinnamon-menu-3.la
63 CMenu_3_0_gir_SCANNERFLAGS = --identifier-prefix=GMenu --symbol-prefix=gmenu --pkg-export=libcinnamon-menu-3.0 --c-include=gmenu-tree.h
65 CMenu_3_0_gir_SCANNERFLAGS = $(WARN_SCANNERFLAGS) --identifier-prefix=GMenu --symbol-prefix=gmenu --pkg-export=libcinnamon-menu-3.0 --c-include=gmenu-tree.h
6466 CMenu_3_0_gir_FILES = $(addprefix $(srcdir)/,$(introspection_sources))
6567 INTROSPECTION_GIRS += CMenu-3.0.gir
6668