diff options
| author | LarsAC <LarsAC@e10066b5-e1e2-0310-b819-94efdf66514b> | 2005-02-07 09:17:20 +0000 |
|---|---|---|
| committer | LarsAC <LarsAC@e10066b5-e1e2-0310-b819-94efdf66514b> | 2005-02-07 09:17:20 +0000 |
| commit | dc3634d51703fea88aff2f7069928f4a963a1025 (patch) | |
| tree | d7e8dcd2ff3a484636fd2b2a2a5355d1105ad388 /muggle-plugin/Makefile | |
| parent | f4cd003ec36478f58edbccaebdf19cd70d5b13ff (diff) | |
| download | vdr-plugin-muggle-dc3634d51703fea88aff2f7069928f4a963a1025.tar.gz vdr-plugin-muggle-dc3634d51703fea88aff2f7069928f4a963a1025.tar.bz2 | |
Merged most recent stuff from osd_extensions trunk for next release (0.1.2)
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk@447 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'muggle-plugin/Makefile')
| -rw-r--r-- | muggle-plugin/Makefile | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/muggle-plugin/Makefile b/muggle-plugin/Makefile index 3e962b6..1dd8773 100644 --- a/muggle-plugin/Makefile +++ b/muggle-plugin/Makefile @@ -9,6 +9,15 @@ # 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 + ### The version number of this plugin (taken from the main source file): VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ print $$6 }' | sed -e 's/[";]//g') @@ -16,7 +25,7 @@ VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ pri ### The C++ compiler and options: CXX ?= g++-3.3 -CXXFLAGS ?= -fPIC -O2 -Wall -Woverloaded-virtual -Wno-deprecated -g +CXXFLAGS ?= -fPIC -O0 -Wall -Woverloaded-virtual -Wno-deprecated -g ### The directory environment: @@ -44,7 +53,7 @@ PACKAGE = vdr-$(ARCHIVE) INCLUDES += -I$(VDRDIR) -I$(VDRDIR)/include -I$(DVBDIR)/include \ -I/usr/include/mysql/ -I/usr/include/taglib -DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' # -DHAVE_VORBISFILE -DHAVE_FLAC +DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' MIFLAGS += -I/usr/include/taglib -lmysqlclient @@ -52,11 +61,22 @@ MIFLAGS += -I/usr/include/taglib -lmysqlclient OBJS = $(PLUGIN).o i18n.o mg_valmap.o mg_order.o mg_db.o mg_actions.o vdr_menu.o mg_tools.o \ vdr_decoder_mp3.o vdr_stream.o vdr_decoder.o vdr_player.o \ - vdr_setup.o vdr_decoder_ogg.o vdr_decoder_flac.o + vdr_setup.o -LIBS = -lmad -lmysqlclient # -lvorbisfile -lvorbis -lFLAC++ +LIBS = -lmad -lmysqlclient MILIBS = -lmysqlclient -ltag +ifdef have_vorbisfile +DEFINES += -DHAVE_VORBISFILE +OBJS += vdr_decoder_ogg.o +LIBS += -lvorbisfile -lvorbis +endif +ifdef have_flac +DEFINES += -DHAVE_FLAC +OBJS += vdr_decoder_flac.o +LIBS += -lFLAC++ +endif + ### Targets: all: libvdr-$(PLUGIN).so mugglei |
