spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit 093e80037d03cc50a95124e4882c445596f2f003
parent 4f8de5bdea721a0ae183fb00a28914c10d5f5afb
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Fri, 10 Aug 2012 21:55:38 -0700

Clean up dependency detection

Diffstat:
Mconfigure.ac | 19++++++-------------
Msrc/Makefile.am | 17++++++++---------
2 files changed, 14 insertions(+), 22 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -14,15 +14,15 @@ AC_MSG_CHECKING([the OS]) AS_CASE([$host], [*-*-mingw*], [ os="WIN" - AC_DEFINE([OS_WIN], [1], [Platform]) + AC_DEFINE([OS_WIN], [1], [Windows]) ], [*-*-darwin*], [ os="OSX" - AC_DEFINE([OS_OSX], [1], [Platform]) + AC_DEFINE([OS_OSX], [1], [OS X]) ], [*], [ os="UNIX" - AC_DEFINE([OS_UNIX], [1], [Platform]) + AC_DEFINE([OS_UNIX], [1], [Unix]) ] ) AC_MSG_RESULT([$os]) @@ -30,14 +30,12 @@ AC_MSG_RESULT([$os]) AC_CHECK_LIB(m, log10) pkg_modules="libavformat >= 52.111 libavcodec >= 52.123 libavutil" -PKG_CHECK_MODULES(SPEK, [$pkg_modules]) -AC_SUBST(SPEK_CFLAGS) -AC_SUBST(SPEK_LIBS) +PKG_CHECK_MODULES(FFMPEG, [$pkg_modules]) AM_OPTIONS_WXCONFIG reqwx=2.8.0 -AM_PATH_WXCONFIG($reqwx, wxWin=1) -if test "$wxWin" != 1; then +AM_PATH_WXCONFIG($reqwx, wx=1) +if test "$wx" != 1; then AC_MSG_ERROR([ wxWidgets must be installed on your system. @@ -49,11 +47,6 @@ if test "$wxWin" != 1; then ]) fi -CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS" -CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY" -CFLAGS="$CFLAGS $WX_CFLAGS_ONLY" -LIBS="$LIBS $WX_LIBS" - GETTEXT_PACKAGE=spek AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Gettext Package]) AC_SUBST(GETTEXT_PACKAGE) diff --git a/src/Makefile.am b/src/Makefile.am @@ -15,18 +15,16 @@ spek_SOURCES = \ spek_CPPFLAGS = \ -include config.h \ - -DLOCALEDIR=\""$(localedir)"\" \ - -DPKGDATADIR=\""$(pkgdatadir)"\" \ - -DPKGLIBDIR=\""$(pkglibdir)"\" + $(WX_CPPFLAGS) spek_CFLAGS = \ - $(SPEK_CFLAGS) \ - @CFLAGS@ + $(FFMPEG_CFLAGS) \ + $(WX_CFLAGS_ONLY) spek_CXXFLAGS = \ - $(SPEK_CFLAGS) \ - @CXXFLAGS@ + $(FFMPEG_CFLAGS) \ + $(WX_CXXFLAGS_ONLY) spek_LDADD = \ - $(SPEK_LIBS) \ - @LIBS@ + $(FFMPEG_LIBS) \ + $(WX_LIBS) +\ No newline at end of file