Codebase list cinnamon-menus / 47fc995
Merge tag 'upstream/3.2.0' Upstream version 3.2.0 Margarita Manterola 7 years ago
3 changed file(s) with 42 addition(s) and 13 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 intltoolize --force --copy --automake || exit 1
27 autoreconf --verbose --force --install || exit 1
28
29 cd "$olddir"
30 if [ "$NOCONFIGURE" = "" ]; then
31 $srcdir/configure "$@" || exit 1
32
33 if [ "$1" = "--help" ]; then exit 0 else
34 echo "Now type 'make' to compile $PKG_NAME" || exit 1
35 fi
36 else
37 echo "Skipping configure process."
38 fi
00 AC_PREREQ(2.62)
11
2 AC_INIT([cinnamon-menus], [3.0.2])
2 AC_INIT([cinnamon-menus], [3.2.0])
33 AC_CONFIG_SRCDIR(libmenu/gmenu-tree.h)
4
5 m4_ifdef([AX_IS_RELEASE], [AX_IS_RELEASE([always])])
46
57 AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
68 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
79 AC_CONFIG_MACRO_DIR([m4])
10 AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \${ACLOCAL_FLAGS}"])
811 AC_CONFIG_HEADERS(config.h)
912
1013 AM_MAINTAINER_MODE
11 GNOME_MAINTAINER_MODE_DEFINES
1214
1315 # Before making a release, the LT_VERSION string should be modified.
1416 # The string is of the form C:R:A.
3133 AC_SUBST(GIO_UNIX_CFLAGS)
3234 AC_SUBST(GIO_UNIX_LIBS)
3335
34 GNOME_COMPILE_WARNINGS(yes)
36 m4_ifdef([AX_COMPILER_FLAGS],
37 [AX_COMPILER_FLAGS([WARN_CFLAGS],[WARN_LDFLAGS])])
3538
3639 AC_ARG_ENABLE(deprecation_flags,
3740 [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