summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwr61 <wr61@e10066b5-e1e2-0310-b819-94efdf66514b>2005-02-08 23:02:47 +0000
committerwr61 <wr61@e10066b5-e1e2-0310-b819-94efdf66514b>2005-02-08 23:02:47 +0000
commit7b0db96df1380ea1eea851a7beda8c4de90a2db2 (patch)
tree8a4f51513c786c87286ecf115505979b60bdb820
parent0a66da766a3a28c7c7121a3cc954cbd939241f5a (diff)
downloadvdr-plugin-muggle-7b0db96df1380ea1eea851a7beda8c4de90a2db2.tar.gz
vdr-plugin-muggle-7b0db96df1380ea1eea851a7beda8c4de90a2db2.tar.bz2
HAVE_FLAC and HAVE_VORBISFILE from Make.config
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@467 e10066b5-e1e2-0310-b819-94efdf66514b
-rw-r--r--Makefile16
1 files changed, 6 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 19b9c80..d2439e5 100644
--- a/Makefile
+++ b/Makefile
@@ -9,14 +9,10 @@
#
PLUGIN = muggle
-#if you want ogg / flac support, remove the trailing x in those two
-#definitions:
-define have_vorbisfile
-1
-endef
-define have_flac
-1
-endef
+#if you want ogg / flac support, define HAVE_VORBISFILE and/or HAVE_FLAC
+#in $VDRDIR/Make.config like this:
+# HAVE_VORBISFILE=1
+# HAVE_FLAC=1
### The version number of this plugin (taken from the main source file):
@@ -66,12 +62,12 @@ OBJS = $(PLUGIN).o i18n.o mg_valmap.o mg_order.o mg_db.o mg_actions.o vdr_menu.o
LIBS = -lmad -lmysqlclient
MILIBS = -lmysqlclient -ltag
-ifdef have_vorbisfile
+ifdef HAVE_VORBISFILE
DEFINES += -DHAVE_VORBISFILE
OBJS += vdr_decoder_ogg.o
LIBS += -lvorbisfile -lvorbis
endif
-ifdef have_flac
+ifdef HAVE_FLAC
DEFINES += -DHAVE_FLAC
OBJS += vdr_decoder_flac.o
LIBS += -lFLAC++