File: configure.ac

package info (click to toggle)
gimp-data-extras 1%3A2.0.4-0.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 124,480 kB
  • sloc: lisp: 5,902; python: 859; sh: 662; ansic: 315; makefile: 252
file content (101 lines) | stat: -rw-r--r-- 2,756 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.54)

m4_define([gimp_data_extras_major_version], [2])
m4_define([gimp_data_extras_minor_version], [0])
m4_define([gimp_data_extras_micro_version], [4])
m4_define([gimp_data_extras_real_version],
          [gimp_data_extras_major_version.gimp_data_extras_minor_version.gimp_data_extras_micro_version])
m4_define([gimp_data_extras_version], [gimp_data_extras_real_version])

m4_define([intltool_required_version], [0.40.1])

AC_INIT([GIMP Extra Data Files], [gimp_data_extras_version],
        [https://gitlab.gnome.org/GNOME/gimp-data-extras/issues/new],
        [gimp-data-extras])

AC_CONFIG_SRCDIR([brushes/Splatters/flower.gbr])

AM_INIT_AUTOMAKE(no-define dist-bzip2)
AM_MAINTAINER_MODE

######################
# Internationalisation
######################

IT_PROG_INTLTOOL(intltool_required_version)

########################
# Check for appstreamcli
########################

AC_ARG_WITH(appdata-test,  [  --without-appdata-test  do not validate the appdata file])

have_appstreamcli="no (disabled)"
if test "x$with_appdata_test" != "xno"; then
  AC_PATH_PROG(APPSTREAM_UTIL, appstreamcli, no)
  if test "x$APPSTREAM_UTIL" != "xno"; then
    have_appstreamcli="yes"
  else
    have_appstreamcli="no (appstreamcli not found)"
  fi
fi
AM_CONDITIONAL(HAVE_APPSTREAMCLI, test "x$have_appstreamcli" = "xyes")
if test "x$have_appstreamcli" = "xyes"; then
  have_appstreamcli="yes (this test requires network access; --without-appdata-test to disable)"
fi

################
# Check for GIMP
################

AC_ARG_ENABLE(gimp3,
  [  --enable-gimp3          Install GIMP 2.99/3 data and plug-ins],,
  enable_gimp3=no)

gimp_pkg_config_name="gimp-2.0"
if test "x$enable_gimp3" = xyes; then
  gimp_pkg_config_name="gimp-3.0"
fi

PKG_CHECK_MODULES(gimp, $gimp_pkg_config_name)

if test "x$enable_gimp3" = xyes; then
  GIMP_DATA_DIR=`$PKG_CONFIG gimp-3.0 --variable=gimpdatadir`
  AC_SUBST(GIMP_DATA_DIR)

  GIMP3_PLUG_INS_DIR=`$PKG_CONFIG gimp-3.0 --variable=gimplibdir`/plug-ins
  AC_SUBST(GIMP3_PLUG_INS_DIR)
else
  GIMP_DATA_DIR=`$PKG_CONFIG gimp-2.0 --variable=gimpdatadir`
  AC_SUBST(GIMP_DATA_DIR)
fi

AM_CONDITIONAL(ENABLE_GIMP3, test "x$enable_gimp3" = xyes)

dnl Output the Makefiles
AC_CONFIG_FILES([
Makefile
brushes/Makefile
brushes/Fun/Makefile
brushes/Geometry/Makefile
brushes/Splatters/Makefile
brushes/Texture/Makefile
desktop/Makefile
desktop/org.gimp.GIMP.data_extras.metainfo.xml.in
desktop/test-appdata.sh
patterns/Makefile
patterns/Legacy/Makefile
plug-ins/Makefile
plug-ins/python3/Makefile
po/Makefile.in
scripts/Makefile
])

AC_OUTPUT

AC_MSG_RESULT([
Building gimp-data-extras with prefix=$prefix, datadir=$datadir

Test appdata: $have_appstreamcli
]);