with assistance from Gleb Smirnoff
include ../../config.mak
+include config.mak
NAME = libmlt$(LIBSUF)
TARGET = $(NAME).$(version)
TARGET = $(NAME).$(version)
SONAME = $(NAME).$(soversion)
SHFLAGS += -Wl,-soname,$(SONAME)
+ ifeq ($(targetos), FreeBSD)
+ ifdef HAVE_SYS_PARAM_H
+ CFLAGS += -DHAVE_SYS_PARAM_H
+ endif
+ endif
endif
OBJS = mlt_frame.o \
#!/bin/sh
echo "framework -I$prefix/include -I$prefix/include/mlt -D_REENTRANT -L$libdir -lmlt" >> ../../packages.dat
+
+echo -n > config.mak
+if [ "$(uname -s)" = "FreeBSD" ]
+then
+ printf "#include <sys/param.h>\n int main(){ return 0;}" | gcc -c -x c - >/dev/null 2>&1
+ [ "$?" -eq 0 ] && echo "HAVE_SYS_PARAM_H=1" >> config.mak
+fi
+exit 0
#include "mlt_types.h"
-#if defined(__GLIBC__) || defined(__DARWIN__)
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+
+#if defined(__GLIBC__) || defined(__DARWIN__) || (__FreeBSD_version >= 1000002)
#include <xlocale.h>
#else
typedef void* locale_t;