config.mak
config.h
.depend
+*~
+
SUBDIRS = src/framework \
- src/inigo \
- src/valerie \
- src/miracle \
- src/humperdink \
- src/albino \
+ src/mlt++ \
+ src/melt \
src/modules \
profiles
uninstall:
rm -f "$(DESTDIR)$(bindir)"/mlt-config
- rm -f "$(DESTDIR)$(libdir)"/pkgconfig/mlt-*.pc
+ rm -f "$(DESTDIR)$(libdir)"/pkgconfig/mlt-framework.pc
+ rm -f "$(DESTDIR)$(libdir)"/pkgconfig/mlt++.pc
list='$(SUBDIRS)'; \
for subdir in $$list; do \
$(MAKE) DESTDIR=$(DESTDIR) -C $$subdir $@ || exit 1; \
--arch='arch' - Compile for a specific architecture (default: none)
--cpu='cpu' - Compile for a specific CPU (default: none)
-Module disables options:
+Module disable options:
EOF
build_pkgconfig()
{
- for i in framework valerie miracle
- do
- echo prefix="$prefix" > mlt-$i.pc
- (
- echo exec_prefix=$prefix
- echo libdir=$libdir
- echo includedir=$prefix/include
- echo version=$version
- echo cflags=`grep ^$i packages.dat | cut -f 2`
- echo libs=`grep ^$i packages.dat | cut -f 3`
- ) >> mlt-$i.pc
- cat mlt-$i.pc.in >>mlt-$i.pc
- done
+ echo prefix="$prefix" > mlt-framework.pc
+ (
+ echo exec_prefix=$prefix
+ echo libdir=$libdir
+ echo includedir=$prefix/include
+ echo version=$version
+ echo cflags=`grep ^framework packages.dat | cut -f 2`
+ echo libs=`grep ^framework packages.dat | cut -f 3`
+ ) >> mlt-framework.pc
+ cat mlt-framework.pc.in >>mlt-framework.pc
+
+ echo prefix="$prefix" > mlt++.pc
+ (
+ echo exec_prefix=$prefix
+ echo libdir=$libdir
+ echo includedir=$prefix/include
+ echo version=$version
+ echo cflags=`grep ^mlt++ packages.dat | cut -f 2`
+ echo libs=`grep ^mlt++ packages.dat | cut -f 3`
+ ) >> mlt++.pc
+ cat mlt++.pc.in >>mlt++.pc
}
# Debug mode
fi
# Iterate through each of the components
-for i in framework modules inigo valerie miracle humperdink
+for i in framework modules melt mlt++
do
if [ -x src/$i/configure ]
then
--- /dev/null
+
+Name: mlt++
+Description: C++ API for MLT multimedia framework
+Version: ${version}
+Requires: mlt-framework
+Libs: -L${libdir} ${libs}
+Cflags: ${cflags}
export LD_LIBRARY_PATH=\
`pwd`/src/framework:\
-`pwd`/src/valerie:\
-`pwd`/src/miracle:\
`pwd`/src/modules/bluefish:\
`pwd`/../BlueLinuxDriver/install/lib:\
`pwd`/../mpeg_sdk_release/bin:\
[ $(uname -s) = Darwin ] && export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH
-export PATH=\
-`pwd`/src/albino:\
-`pwd`/src/inigo:\
-`pwd`/src/humperdink:\
-`pwd`/src/miracle:\
-$PATH
+export PATH=`pwd`/src/melt:$PATH
include ../config.mak
CXXFLAGS+=-Wall -g `pkg-config mlt-framework --cflags` -I ../src
-LDFLAGS+=-L../src -lmlt++ -lmiracle -lvalerie `pkg-config mlt-framework --libs`
+LDFLAGS+=-L../src -lmlt++ `pkg-config mlt-framework --libs`
CC=c++
-all: play server
+all: play
play: play.o
play.o: play.cpp
-server: server.o
-
-server.o: server.cpp
-
clean:
$(RM) play play.o
- $(RM) server server.o
distclean: clean
include ../../config.mak
-TARGET = inigo
+TARGET = melt
-OBJS = inigo.o \
+OBJS = melt.o \
io.o
CFLAGS += -I.. $(RDYNAMIC) -DVERSION=\"$(version)\"
-include ../config.mak
+include ../../config.mak
+include config.mak
INSTALL = install
ifneq ($(targetos), Darwin)
LIBFLAGS += -install_name $(libdir)/$(SONAME) -current_version $(version) -compatibility_version $(soversion)
endif
+CXXFLAGS += -I.. $(RDYNAMIC) -DVERSION=\"$(version)\"
+
+LDFLAGS += -L../framework -lmlt -lpthread
+
OBJS = MltConsumer.o \
MltDeque.o \
MltEvent.o \
MltFilteredConsumer.o \
MltFrame.o \
MltGeometry.o \
- MltMiracle.o \
MltMultitrack.o \
MltParser.o \
MltPlaylist.o \
MltProperties.o \
MltPushConsumer.o \
MltRepository.o \
- MltResponse.o \
MltService.o \
MltTokeniser.o \
MltTractor.o \
ln -sf $(TARGET) $(NAME)
ln -sf $(TARGET) $(SONAME)
+depend: $(SRCS)
+ $(CXX) -MM $(CXXFLAGS) $^ 1>.depend
+
clean:
$(RM) $(OBJS) $(TARGET) $(NAME)
ln -sf $(TARGET) $(DESTDIR)$(libdir)/$(SONAME)
$(INSTALL) -d "$(DESTDIR)$(prefix)/include/mlt++"
$(INSTALL) -m 644 $(HEADERS) "$(DESTDIR)$(prefix)/include/mlt++"
- /sbin/ldconfig 2> /dev/null || true
uninstall:
rm -f "$(DESTDIR)$(libdir)/$(TARGET)"
rm -f "$(DESTDIR)$(libdir)/$(NAME)"
rm -f "$(DESTDIR)$(libdir)/$(SONAME)"
rm -rf "$(DESTDIR)$(prefix)/include/mlt++"
+
+ifneq ($(wildcard .depend),)
+include .depend
+endif
#include "MltFilteredConsumer.h"
#include "MltFrame.h"
#include "MltGeometry.h"
-#ifndef WIN32
-#include "MltMiracle.h"
-#endif
#include "MltMultitrack.h"
#include "MltParser.h"
#include "MltPlaylist.h"
#include "MltProperties.h"
#include "MltPushConsumer.h"
#include "MltRepository.h"
-#ifndef WIN32
-#include "MltResponse.h"
-#endif
#include "MltService.h"
#include "MltTokeniser.h"
#include "MltTractor.h"
--- /dev/null
+#!/bin/sh
+echo "mlt++ -I$prefix/include -I$prefix/include/mlt++ -D_REENTRANT -L$libdir -lmlt++" >> ../../packages.dat
+
+WARNINGS="-W -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Wredundant-decls"
+
+targetos=$(uname -s)
+case $targetos in
+ Darwin)
+ echo LIBSUF=.dylib
+ echo "CXXFLAGS+=-D__DARWIN__ -Wall -fPIC"
+ echo "LIBFLAGS=-dynamiclib -single_module"
+ ;;
+ Linux|FreeBSD)
+ echo LIBSUF=.so
+ echo "CXXFLAGS+=-pthread -Wall $WARNINGS"
+ echo "LIBFLAGS=-shared"
+ ;;
+esac > config.mak
OBJS = factory.o \
producer_colour.o \
producer_consumer.o \
+ producer_hold.o \
+ producer_loader.o \
producer_noise.o \
producer_ppm.o \
filter_brightness.o \
install: all
install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
- install -m 644 ../data_fx.properties "$(DESTDIR)$(prefix)/share/mlt"
+ install -d "$(DESTDIR)$(prefix)/share/mlt/core"
+ install -m 644 data_fx.properties "$(DESTDIR)$(prefix)/share/mlt/core"
+ install -m 644 loader.dict "$(DESTDIR)$(prefix)/share/mlt/core"
+ install -m 644 loader.ini "$(DESTDIR)$(prefix)/share/mlt/core"
ifneq ($(wildcard .depend),)
include .depend
extern mlt_filter filter_watermark_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_producer producer_colour_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_producer producer_consumer_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
+extern mlt_producer producer_fezzik_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
+extern mlt_producer producer_hold_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_producer producer_noise_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_producer producer_ppm_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
#include "transition_composite.h"
MLT_REGISTER( producer_type, "color", producer_colour_init );
MLT_REGISTER( producer_type, "colour", producer_colour_init );
MLT_REGISTER( producer_type, "consumer", producer_consumer_init );
+ MLT_REGISTER( producer_type, "fezzik", producer_fezzik_init );
+ MLT_REGISTER( producer_type, "hold", producer_hold_init );
MLT_REGISTER( producer_type, "noise", producer_noise_init );
MLT_REGISTER( producer_type, "ppm", producer_ppm_init );
MLT_REGISTER( transition_type, "composite", transition_composite_init );
clean:
install: all
- install -d $(DESTDIR)$(prefix)/share/mlt/feeds/PAL
- install -d $(DESTDIR)$(prefix)/share/mlt/feeds/NTSC
- install -m 644 PAL/*.* $(DESTDIR)$(prefix)/share/mlt/feeds/PAL
- install -m 644 NTSC/*.* $(DESTDIR)$(prefix)/share/mlt/feeds/NTSC
+ install -d "$(DESTDIR)$(prefix)/share/mlt/feeds/PAL"
+ install -d "$(DESTDIR)$(prefix)/share/mlt/feeds/NTSC"
+ install -m 644 PAL/*.* "$(DESTDIR)$(prefix)/share/mlt/feeds/PAL"
+ install -m 644 NTSC/*.* "$(DESTDIR)$(prefix)/share/mlt/feeds/NTSC"
+++ /dev/null
-include ../../../config.mak
-
-TARGET = ../libmltfezzik$(LIBSUF)
-
-OBJS = factory.o \
- producer_fezzik.o \
- producer_hold.o
-
-CFLAGS += -I../..
-
-LDFLAGS += -L../../framework -lmlt
-
-SRCS := $(OBJS:.o=.c)
-
-all: $(TARGET)
-
-$(TARGET): $(OBJS)
- $(CC) $(SHFLAGS) -o $@ $(OBJS) $(LDFLAGS)
-
-depend: $(SRCS)
- $(CC) -MM $(CFLAGS) $^ 1>.depend
-
-distclean: clean
- rm -f .depend
-
-clean:
- rm -f $(OBJS) $(TARGET)
-
-install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
- install -m 644 ../fezzik.dict "$(DESTDIR)$(prefix)/share/mlt"
- install -m 644 ../fezzik.ini "$(DESTDIR)$(prefix)/share/mlt"
-
-ifneq ($(wildcard .depend),)
-include .depend
-endif
+++ /dev/null
-/*
- * factory.c -- the factory method interfaces
- * Copyright (C) 2003-2004 Ushodaya Enterprises Limited
- * Author: Charles Yates <charles.yates@pandora.be>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include <framework/mlt.h>
-#include <string.h>
-
-extern mlt_producer producer_fezzik_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
-extern mlt_producer producer_hold_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
-
-MLT_REPOSITORY
-{
- MLT_REGISTER( producer_type, "fezzik", producer_fezzik_init );
- MLT_REGISTER( producer_type, "hold", producer_hold_init );
-}
include ../../../config.mak
-TARGET = ../libmltinigo$(LIBSUF)
+TARGET = ../libmltmelt$(LIBSUF)
OBJS = factory.o \
- producer_inigo.o
+ producer_melt.o
CFLAGS += -I../..
include ../../../config.mak
-TARGET = ../libmltvalerie$(LIBSUF)
+TARGET = ../libmltmvsp$(LIBSUF)
OBJS = factory.o \
- consumer_valerie.o
+ consumer_mvsp.o
CFLAGS += -I../..
-LDFLAGS += -L../../valerie -lvalerie
+LDFLAGS += -L../../mvsp -lmvsp
LDFLAGS += -L../../framework -lmlt
SRCS := $(OBJS:.o=.c)
--- /dev/null
+#!/bin/sh
+
+if [ "$help" != "1" ]
+then
+ echo "- pending move to melted: disabling"
+ touch ../disable-mvsp
+fi
include ../../../config.mak
-TARGET = ../libmltwestley$(LIBSUF)
+TARGET = ../libmltxml$(LIBSUF)
OBJS = factory.o \
- consumer_westley.o \
- producer_westley.o
+ consumer_xml.o \
+ producer_xml.o
CFLAGS += -I../..
-CFLAGS += `xml2-config --cflags`
+CFLAGS += `pkg-config libxml-2.0 --cflags`
LDFLAGS += -L../../framework -lmlt
-LDFLAGS += `xml2-config --libs`
+LDFLAGS += `pkg-config libxml-2.0 --libs`
SRCS := $(OBJS:.o=.c)
install: all
install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
- install -m 644 westley.dtd "$(DESTDIR)$(prefix)/share/mlt"
+ install -d "$(DESTDIR)$(prefix)/share/mlt/xml"
+ install -m 644 mlt-xml.dtd "$(DESTDIR)$(prefix)/share/mlt/xml"
ifneq ($(wildcard .depend),)
include .depend
if [ "$help" != "1" ]
then
- which xml2-config > /dev/null 2>&1
+ pkg-config libxml-2.0 > /dev/null 2>&1
disable_xml2=$?
if [ "$disable_xml2" != "0" ]
then
- echo "- xml2 not found: disabling westley modules"
- touch ../disable-westley
+ echo "- xml2 not found: disabling xml module"
+ touch ../disable-xml
fi
exit 0
fi
-