install -d "$(DESTDIR)$(prefix)/bin"
install -d "$(DESTDIR)$(prefix)/include"
install -d "$(DESTDIR)$(libdir)"
+ install -d "$(DESTDIR)$(libdir)/mlt"
install -d "$(DESTDIR)$(libdir)/pkgconfig"
- install -d "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -d "$(DESTDIR)$(prefix)/share/mlt"
install -c -m 755 mlt-config "$(DESTDIR)$(bindir)"
install -c -m 644 *.pc "$(DESTDIR)$(libdir)/pkgconfig"
install -m 644 packages.dat "$(DESTDIR)$(prefix)/share/mlt/"
# Environment variable settings to allow execution without install
export MLT_REPOSITORY=`pwd`/src/modules
+export MLT_DATA=`pwd`/src/modules
export MLT_PROFILES_PATH=`pwd`/profiles
export LD_LIBRARY_PATH=\
SRCS := $(OBJS:.o=.c)
-CFLAGS += $(RDYNAMIC) -DPREFIX="\"$(prefix)\""
+CFLAGS += $(RDYNAMIC) -DPREFIX="\"$(prefix)\"" -DLIBDIR="\"$(libdir)\""
LDFLAGS += -lm $(LIBDL) -lpthread
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "config.h"
#include "mlt_consumer.h"
#include "mlt_factory.h"
#include "mlt_producer.h"
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "config.h"
#include "mlt.h"
#include "mlt_repository.h"
#include <stdlib.h>
#include <string.h>
+#define PREFIX_LIB LIBDIR "/mlt"
+#define PREFIX_DATA PREFIX "/share/mlt"
+
/** Singleton repositories
*/
// If no directory is specified, default to install directory
if ( prefix == NULL )
- prefix = PREFIX_DATA;
+ prefix = PREFIX_LIB;
// Store the prefix for later retrieval
mlt_prefix = strdup( prefix );
mlt_properties_set_or_default( global_properties, "MLT_CONSUMER", getenv( "MLT_CONSUMER" ), "sdl" );
mlt_properties_set( global_properties, "MLT_TEST_CARD", getenv( "MLT_TEST_CARD" ) );
mlt_properties_set_or_default( global_properties, "MLT_PROFILE", getenv( "MLT_PROFILE" ), "dv_pal" );
+ mlt_properties_set_or_default( global_properties, "MLT_DATA", getenv( "MLT_DATA" ), PREFIX_DATA );
}
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "config.h"
-
#include "mlt_filter.h"
#include "mlt_frame.h"
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "config.h"
#include "mlt_frame.h"
#include "mlt_producer.h"
#include "mlt_factory.h"
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "config.h"
-
#include "mlt_multitrack.h"
#include "mlt_playlist.h"
#include "mlt_frame.h"
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "config.h"
#include "mlt.h"
#include <stdlib.h>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "config.h"
-
#include "mlt_playlist.h"
#include "mlt_tractor.h"
#include "mlt_multitrack.h"
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "config.h"
#include "mlt_producer.h"
#include "mlt_factory.h"
#include "mlt_frame.h"
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "config.h"
#include "mlt_properties.h"
#include "mlt_property.h"
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "config.h"
-
#include "mlt_property.h"
#include <stdio.h>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "config.h"
#include "mlt_service.h"
#include "mlt_filter.h"
#include "mlt_frame.h"
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "config.h"
-
#include "mlt_tractor.h"
#include "mlt_frame.h"
#include "mlt_multitrack.h"
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "config.h"
-
#include "mlt_transition.h"
#include "mlt_frame.h"
done
install:
- install -m 644 producers.dat filters.dat transitions.dat consumers.dat "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 644 producers.dat filters.dat transitions.dat consumers.dat "$(DESTDIR)$(libdir)/mlt"
list='$(SUBDIRS)'; \
for subdir in $$list; do \
if [ -f $$subdir/Makefile -a ! -f disable-$$subdir ] ; \
done
uninstall:
- rm -rf "$(DESTDIR)$(prefix)/share/mlt/modules"
+ rm -rf "$(DESTDIR)$(libdir)/mlt"
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
bits=$(uname -m)
case $bits in
x86_64)
- export LIBDIR=lib64
+ [ -d /usr/lib/lib64 ] && export LIBDIR=lib64 || export LIBDIR=lib
;;
*)
export LIBDIR=lib
rm -f $(OBJS) $(ASM_OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
- install -m 644 ../data_fx.properties "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
+ install -m 644 ../data_fx.properties "$(DESTDIR)$(prefix)/share/mlt"
ifneq ($(wildcard .depend),)
include .depend
// If none is specified, pick up the default for this normalisation
if ( profile == NULL )
- sprintf( temp, "%s/feeds/%s/data_fx.properties", mlt_factory_prefix( ), mlt_environment( "MLT_NORMALISATION" ) );
+ sprintf( temp, "%s/feeds/%s/data_fx.properties", mlt_environment( "MLT_DATA" ), mlt_environment( "MLT_NORMALISATION" ) );
else if ( strchr( profile, '%' ) )
- sprintf( temp, "%s/feeds/%s/%s", mlt_factory_prefix( ), mlt_environment( "MLT_NORMALISATION" ), strchr( profile, '%' ) + 1 );
+ sprintf( temp, "%s/feeds/%s/%s", mlt_environment( "MLT_DATA" ), mlt_environment( "MLT_NORMALISATION" ), strchr( profile, '%' ) + 1 );
else
strcpy( temp, profile );
{
// TODO: Clean up quick and dirty compressed/existence check
FILE *test;
- sprintf( temp, "%s/lumas/%s/%s", mlt_factory_prefix( ), mlt_environment( "MLT_NORMALISATION" ), strchr( resource, '%' ) + 1 );
+ sprintf( temp, "%s/lumas/%s/%s", mlt_environment( "MLT_DATA" ), mlt_environment( "MLT_NORMALISATION" ), strchr( resource, '%' ) + 1 );
test = fopen( temp, "r" );
if ( test == NULL )
strcat( temp, ".png" );
if ( strchr( resource, '%' ) )
{
FILE *test;
- sprintf( temp, "%s/lumas/%s/%s", mlt_factory_prefix( ), mlt_environment( "MLT_NORMALISATION" ), strchr( resource, '%' ) + 1 );
+ sprintf( temp, "%s/lumas/%s/%s", mlt_environment( "MLT_DATA" ), mlt_environment( "MLT_NORMALISATION" ), strchr( resource, '%' ) + 1 );
test = fopen( temp, "r" );
if ( test == NULL )
strcat( temp, ".png" );
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
clean:
install: all
- install -d $(DESTDIR)$(prefix)/share/mlt/modules/feeds/PAL
- install -d $(DESTDIR)$(prefix)/share/mlt/modules/feeds/NTSC
- install -m 644 PAL/*.* $(DESTDIR)$(prefix)/share/mlt/modules/feeds/PAL
- install -m 644 NTSC/*.* $(DESTDIR)$(prefix)/share/mlt/modules/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
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
- install -m 644 ../fezzik.dict "$(DESTDIR)$(prefix)/share/mlt/modules"
- install -m 644 ../fezzik.ini "$(DESTDIR)$(prefix)/share/mlt/modules"
+ 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
if ( dictionary == NULL )
{
char temp[ 1024 ];
- sprintf( temp, "%s/fezzik.dict", mlt_factory_prefix( ) );
+ sprintf( temp, "%s/fezzik.dict", mlt_environment( "MLT_DATA" ) );
dictionary = mlt_properties_load( temp );
mlt_factory_register_for_clean_up( dictionary, ( mlt_destructor )mlt_properties_close );
}
if ( normalisers == NULL )
{
char temp[ 1024 ];
- sprintf( temp, "%s/fezzik.ini", mlt_factory_prefix( ) );
+ sprintf( temp, "%s/fezzik.ini", mlt_environment( "MLT_DATA" ) );
normalisers = mlt_properties_load( temp );
mlt_factory_register_for_clean_up( normalisers, ( mlt_destructor )mlt_properties_close );
}
rm -f $(OBJS) $(ASM_OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
rm -f $(OBJS) $(TARGET) $(CPPOBJS)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
rm -f luma
install: all
- install -d $(DESTDIR)$(prefix)/share/mlt/modules/lumas/PAL
- install -d $(DESTDIR)$(prefix)/share/mlt/modules/lumas/NTSC
- install -m 644 PAL/* $(DESTDIR)$(prefix)/share/mlt/modules/lumas/PAL
- install -m 644 NTSC/* $(DESTDIR)$(prefix)/share/mlt/modules/lumas/NTSC
+ install -d $(DESTDIR)$(prefix)/share/mlt/lumas/PAL
+ install -d $(DESTDIR)$(prefix)/share/mlt/lumas/NTSC
+ install -m 644 PAL/* $(DESTDIR)$(prefix)/share/mlt/lumas/PAL
+ install -m 644 NTSC/* $(DESTDIR)$(prefix)/share/mlt/lumas/NTSC
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
test: $(TARGET)
~/mlt-devel/mlt/src/inigo/inigo -filter motion_est -filter vismv -filter benchmark -consumer sdl rescale=none real_time=0 audio_off=1 silent=1 /media/cdrecorder/BBC.The.Private.Life.Of.Plants.Pt5.Living.Together.DivX505.AC3.www.MVGroup.org.uk.avi in=50000
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
rm -f $(OBJS) $(TARGET) $(CPPOBJS)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
# chop bin
soxdir=$(dirname $soxdir)
echo "CFLAGS += -DSOX14 -I$soxdir/include" > config.mak
- echo "LDFLAGS += -L$soxdir/$LIBDIR -lsox" >> config.mak
+ echo "LDFLAGS += -L$soxdir/$LIBDIR -lsox -lsfx" >> config.mak
fi
fi
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
if ( strchr( resource, '%' ) )
{
FILE *test;
- sprintf( temp, "%s/lumas/%s/%s", mlt_factory_prefix( ), mlt_environment( "MLT_NORMALISATION" ), strchr( resource, '%' ) + 1 );
+ sprintf( temp, "%s/lumas/%s/%s", mlt_environment( "MLT_DATA" ), mlt_environment( "MLT_NORMALISATION" ), strchr( resource, '%' ) + 1 );
test = fopen( temp, "r" );
if ( test == NULL )
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
- install -m 644 westley.dtd "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
+ install -m 644 westley.dtd "$(DESTDIR)$(prefix)/share/mlt"
ifneq ($(wildcard .depend),)
include .depend
rm -f $(OBJS) $(TARGET)
install: all
- install -m 755 $(TARGET) "$(DESTDIR)$(prefix)/share/mlt/modules"
+ install -m 755 $(TARGET) "$(DESTDIR)$(libdir)/mlt"
ifneq ($(wildcard .depend),)
include .depend