SRCS += ../win32/win32.c
endif
-CFLAGS += $(RDYNAMIC) -DPREFIX="\"$(prefix)\"" -DLIBDIR="\"$(libdir)\""
+CFLAGS += $(RDYNAMIC) -DPREFIX="\"$(prefix)\"" -DLIBDIR="\"$(libdir)\"" -DDATADIR="\"$(datadir)\""
LDFLAGS += $(LIBDL) -lpthread
/** the default subdirectory of the libdir for holding modules (plugins) */
#define PREFIX_LIB LIBDIR "/mlt"
/** the default subdirectory of the install prefix for holding module (plugin) data */
-#define PREFIX_DATA PREFIX "/share/mlt"
+#define PREFIX_DATA DATADIR "/mlt"
#endif
/** holds the full path to the modules directory - initialized and retained for the entire session */
{
filename = calloc( 1, strlen( name ) + 1 );
}
- // Load from $prefix/share/mlt/profiles
+ // Load from $datadir/mlt/profiles
else if ( prefix == NULL )
{
- prefix = PREFIX;
+ prefix = DATADIR;
filename = calloc( 1, strlen( prefix ) + strlen( PROFILES_DIR ) + strlen( name ) + 2 );
strcpy( filename, prefix );
if ( filename[ strlen( filename ) - 1 ] != '/' )
const char *wildcard = NULL;
int i;
- // Load from $prefix/share/mlt/profiles if no env var
+ // Load from $datadir/mlt/profiles if no env var
if ( prefix == NULL )
{
prefix = mlt_environment( "MLT_DATA" );