6 |
# The following is the current, official release version of gigedit: |
# The following is the current, official release version of gigedit: |
7 |
|
|
8 |
GIGEDIT_VER_MAJOR=0 |
GIGEDIT_VER_MAJOR=0 |
9 |
GIGEDIT_VER_MINOR=1 |
GIGEDIT_VER_MINOR=2 |
10 |
GIGEDIT_VER_RELEASE=1 |
GIGEDIT_VER_RELEASE=0 |
11 |
|
|
12 |
#------------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------------ |
13 |
# The following is the libtool / shared library version. This doesn't have to |
# The following is the libtool / shared library version. This doesn't have to |
26 |
# 6. If any interfaces have been removed since the last public release, then set age |
# 6. If any interfaces have been removed since the last public release, then set age |
27 |
# to 0. |
# to 0. |
28 |
|
|
29 |
LIBGIGEDIT_LT_CURRENT=1 |
LIBGIGEDIT_LT_CURRENT=2 |
30 |
LIBGIGEDIT_LT_REVISION=0 |
LIBGIGEDIT_LT_REVISION=0 |
31 |
LIBGIGEDIT_LT_AGE=0 |
LIBGIGEDIT_LT_AGE=0 |
32 |
|
|
33 |
SHARED_VERSION_INFO="$LIBGIGEDIT_LT_CURRENT:$LIBGIGEDIT_LT_REVISION:$LIBGIGEDIT_LT_AGE" |
SHARED_VERSION_INFO="$LIBGIGEDIT_LT_CURRENT:$LIBGIGEDIT_LT_REVISION:$LIBGIGEDIT_LT_AGE" |
34 |
AC_LANG_CPLUSPLUS |
AC_LANG_CPLUSPLUS |
35 |
AC_PROG_CXX |
AC_PROG_CXX |
36 |
|
AC_LIBTOOL_WIN32_DLL |
37 |
AC_PROG_LIBTOOL |
AC_PROG_LIBTOOL |
38 |
AC_SUBST(SHLIB_VERSION_ARG) |
AC_SUBST(SHLIB_VERSION_ARG) |
39 |
AC_SUBST(SHARED_VERSION_INFO) |
AC_SUBST(SHARED_VERSION_INFO) |
59 |
IT_PROG_INTLTOOL(0.35.0) |
IT_PROG_INTLTOOL(0.35.0) |
60 |
AM_GLIB_GNU_GETTEXT |
AM_GLIB_GNU_GETTEXT |
61 |
|
|
62 |
PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.4.10 gthread-2.0) |
case $host in |
63 |
PKG_CHECK_MODULES(GIG, gig >= 3.2.0) |
*mingw*|*cygwin*) windows=yes ;; |
64 |
|
*) windows=no ;; |
65 |
|
esac |
66 |
|
AM_CONDITIONAL(WINDOWS, test "$windows" = "yes") |
67 |
|
|
68 |
|
PKG_PROG_PKG_CONFIG |
69 |
|
have_gtk3=no |
70 |
|
PKG_CHECK_EXISTS(gtkmm-3.0 >= 2.99, |
71 |
|
[PKG_CHECK_MODULES(GTKMM, gtkmm-3.0, have_gtk3=yes)], |
72 |
|
[PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 >= 2.8 gthread-2.0 cairomm-1.0)]) |
73 |
|
AM_CONDITIONAL(HAVE_GTK3, [test "$have_gtk3" = "yes"]) |
74 |
|
|
75 |
|
PKG_CHECK_MODULES(GIG, gig >= 3.3.0) |
76 |
|
|
77 |
# check for presence of libsndfile |
# check for presence of libsndfile |
78 |
PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2) |
PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.2) |
80 |
AC_SUBST(SNDFILE_LIBS) |
AC_SUBST(SNDFILE_LIBS) |
81 |
|
|
82 |
# check for loop functionality in libsndfile |
# check for loop functionality in libsndfile |
83 |
gigedit_save_CFLAGS=$CFLAGS |
gigedit_save_CXXFLAGS=$CXXFLAGS |
84 |
CFLAGS="$SNDFILE_CFLAGS $CFLAGS" |
CXXFLAGS="$SNDFILE_CFLAGS $CXXFLAGS" |
85 |
AC_CHECK_MEMBERS([SF_INSTRUMENT.loops],, |
AC_CHECK_MEMBERS([SF_INSTRUMENT.loops],, |
86 |
[AC_MSG_WARN([Your version of libsndfile does not support |
[AC_MSG_WARN([Your version of libsndfile does not support |
87 |
reading of loop information. Gigedit will not be able to |
reading of loop information. Gigedit will not be able to |
88 |
extract loop information from sample files.])], |
extract loop information from sample files.])], |
89 |
[#include <sndfile.h>]) |
[#include <sndfile.h>]) |
90 |
CFLAGS=$gigedit_save_CFLAGS |
CXXFLAGS=$gigedit_save_CXXFLAGS |
91 |
|
|
92 |
# check for (optional) presence of liblinuxsampler |
# check for (optional) presence of liblinuxsampler |
93 |
liblinuxsampler_version="0.5.0" |
liblinuxsampler_version="0.5.0" |
104 |
else |
else |
105 |
echo "Found linuxsampler $liblinuxsampler_version" |
echo "Found linuxsampler $liblinuxsampler_version" |
106 |
echo -n "Retrieving LinuxSampler's plugin dir... " |
echo -n "Retrieving LinuxSampler's plugin dir... " |
107 |
LINUXSAMPLER_PLUGIN_DIR=`pkg-config --variable plugindir linuxsampler` |
LINUXSAMPLER_PLUGIN_DIR=`$PKG_CONFIG --variable plugindir linuxsampler` |
108 |
if test "$LINUXSAMPLER_PLUGIN_DIR" = ""; then |
if test "$LINUXSAMPLER_PLUGIN_DIR" = ""; then |
109 |
have_linuxsampler=0 |
have_linuxsampler=0 |
110 |
echo "Error" |
echo "Error" |
200 |
win32/gigedit.dev |
win32/gigedit.dev |
201 |
win32/gigedit.nsi |
win32/gigedit.nsi |
202 |
win32/Makefile |
win32/Makefile |
203 |
|
gigedit.spec |
204 |
]) |
]) |
205 |
AC_OUTPUT |
AC_OUTPUT |