List package dependencies only in configure.ac
This prevents from having to update both configure.ac and geany.pc.in every time our dependencies (e.g. GTK version) change.
This commit is contained in:
parent
890667db5a
commit
5f0963d470
@ -57,8 +57,10 @@ GEANY_CHECK_REVISION([dnl force debug mode for a SVN working copy
|
||||
|
||||
|
||||
# GTK/GLib/GIO checks
|
||||
gtk_modules="gtk+-2.0 >= 2.16 glib-2.0 >= 2.20 gio-2.0 >= 2.20 gmodule-2.0"
|
||||
PKG_CHECK_MODULES([GTK], [$gtk_modules])
|
||||
gtk_modules="gtk+-2.0 >= 2.16 glib-2.0 >= 2.20"
|
||||
gtk_modules_private="gio-2.0 >= 2.20 gmodule-2.0"
|
||||
PKG_CHECK_MODULES([GTK], [$gtk_modules $gtk_modules_private])
|
||||
AC_SUBST([DEPENDENCIES], [$gtk_modules])
|
||||
AC_SUBST([GTK_CFLAGS])
|
||||
AC_SUBST([GTK_LIBS])
|
||||
GTK_VERSION=`$PKG_CONFIG --modversion gtk+-2.0`
|
||||
|
||||
@ -8,7 +8,7 @@ localedir=@localedir@
|
||||
|
||||
Name: Geany
|
||||
Description: A fast and lightweight IDE using GTK2
|
||||
Requires: gtk+-2.0 >= 2.16.0
|
||||
Requires: @DEPENDENCIES@
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir}
|
||||
Cflags: -DGTK -I${includedir}/geany -I${includedir}/geany/tagmanager -I${includedir}/geany/scintilla
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user