--without-video4linux2 --without-xxf86vm --without-ladspa-build \
--without-libzmpeg --without-commercial --without-thirdparty \
--without-vaapi --without-openexr --with-jobs=4 --without-vdpau --without-shuttle --without-shuttle-usb \
- --without-x10tv --without-wintv
+ --without-x10tv --without-wintv --without-libdpx
gmake
gmake install ) 2>&1 | tee log
LIBS += -lavfilter -lavformat -lavcodec -lavutil
LIBS += -lswresample -lswscale
PLATFORM = $(shell uname -s)
-ifneq (, $(filter $(PLATFORM), FreeBSD NetBSD))
+ifneq (, $(filter $(PLATFORM), NetBSD))
+LIBS += -lintl
+endif
+ifneq (, $(filter $(PLATFORM), FreeBSD))
LIBS += -lintl -liconv
LIBS += -lexecinfo
endif
#include <errno.h>
#if !defined(__FreeBSD__)
#include <sys/stat.h>
+#if !defined(__NetBSD__)
#include <sys/statfs.h>
+#endif
#else
#include <sys/param.h>
#include <sys/mount.h>
#endif
+#if defined(__NetBSD__)
+#include <sys/statvfs.h>
+#ifndef statfs
+#define statfs statvfs
+#endif
+#endif
+
// BD Creation
// selected by timezone
#include <errno.h>
#if !defined(__FreeBSD__)
#include <sys/stat.h>
+#if !defined(__NetBSD__)
#include <sys/statfs.h>
+#endif
#else
#include <sys/param.h>
#include <sys/mount.h>
#endif
+#if defined(__NetBSD__)
+#include <sys/statvfs.h>
+#ifndef statfs
+#define statfs statvfs
+#endif
+#endif
+
#define DVD_PAL_4x3 0
#define DVD_PAL_16x9 1
#define DVD_NTSC_4x3 2
#include "exportedl.h"
#include "tracks.h"
#include "transition.h"
-#if defined (__FreeBSD__)
+#if defined (__FreeBSD__) || defined (__NetBSD__)
#include <libgen.h>
#endif
#include <ctype.h>
echo "CFLAGS += -DNO_GDB"
fi
+if test [ "$(uname)"] = "NetBSD" ; then
+echo "CFLAGS += -DNO_BTRACE"
+echo "CFLAGS += -DNO_CTX"
+echo "system_libs += -L/usr/pkg/lib/ffmpeg4"
+echo "system_libs += -L/usr/pkg/lib/"
+echo "system_libs += -lpng16"
+echo "system_libs += -lintl"
+echo "system_libs += -lossaudio"
+echo "CFLAGS += -I/usr/X11R7/include"
+echo "CFLAGS += -I/usr/pkg/include/ffmpeg4"
+echo "CFLAGS += $(pkg-config --cflags xft)"
+echo "CFLAGS += -I/usr/pkg/include"
+echo "CFLAGS += -I/usr/pkg/include/uuid"
+
+fi
+
if test "x$WANT_X264_HIDEPTH" = "xyes" ; then
X264_CFG_PARAMS="$X264_CFG_PARAMS --bit-depth=10"
fi
UTILS = $(OBJDIR)/bootstrap $(OBJDIR)/pngtoh $(OBJDIR)/pngtoraw
BCXFER = xfer/$(OBJDIR)/xfer.stamp
-CFLAGS += $(static_incs)
+CFLAGS += $(static_incs) `pkg-config --cflags libpng` `pkg-config --cflags libjpeg`
$(shell echo $(CFLAGS) > $(OBJDIR)/c_flags)
$(shell echo $(OBJS) > $(OBJDIR)/objs)
#include "bcwindowbase.inc"
#include "sizes.h"
-#if defined (__FreeBSD__)
+#if defined (__FreeBSD__) || (__NetBSD__)
#define dirent64 dirent
#define readdir64 readdir
#endif
theme_unflat \
theme_cakewalk \
-PLATFORM = $(shell uname -o)
+PLATFORM = $(shell uname)
+ifneq ($(PLATFORM), NetBSD)
+DIRS += cdripper theme_blond theme_blue
+endif
+
ifneq ($(PLATFORM), FreeBSD)
-DIRS += cdripper theme_blond theme_blue
+DIRS += theme_blond theme_blue
+endif
+
+ifeq ($(PLATFORM), Linux)
+DIRS += cdripper
endif
# not maintained