-#!/bin/bash
+#!/usr/pkg/bin/bash
#patch not needed anymore
-export CONFIG_SHELL=/bin/bash
+export CONFIG_SHELL=/usr/pkg/bin/bash
export MAKE=gmake
export C_INCLUDE_PATH=/usr/local/include:/usr/X11R7/include:/usr/pkg/include:/usr/pkg/include/ffmpeg6
export CPLUS_INCLUDE_PATH=/usr/local/include
export CFLAGS1="-I/usr/pkg/include -I/usr/pkg/include/ffmpeg6 -pthread -I/usr/pkg/include -I/usr/pkg/include/OpenEXR -I/usr/pkg/include -I/usr/pkg/include/Imath"
alias make=gmake
-( ./autogen.sh
+( bash ./autogen.sh
BSD=1 CC=gcc CXX=g++ CFLAGS=" ${CFLAGS1} -g -fpermissive -O2" \
./configure --with-single-user \
--disable-static-build --without-lv2 --disable-lame --disable-twolame \
LIBS += -lswresample -lswscale
PLATFORM = $(shell uname -s)
ifneq (, $(filter $(PLATFORM), NetBSD))
-LIBS += -lintl
+LIBS += -lintl -liconv
endif
ifneq (, $(filter $(PLATFORM), FreeBSD))
LIBS += -lintl -liconv
AC_OUTPUT
exec > global_config
-
+if test [ "$(uname)"] = "NetBSD" ; then
+echo "SHELL := /usr/pkg/bin/bash"
+else
echo "SHELL := /bin/bash"
+fi
echo "export SHELL"
echo "WANT_JOBS := $WANT_JOBS"
if test "x$WANT_CLANG" = "xyes" ; then
echo "system_libs += -lpng16"
echo "system_libs += -lintl"
echo "system_libs += -lossaudio"
+echo "system_libs += -rpath=/usr/pkg/lib/ffmpeg6"
+echo "system_libs += -rpath=/usr/pkg/lib/"
echo "CFLAGS += -I/usr/X11R7/include"
echo "CFLAGS += -I/usr/pkg/include/ffmpeg6"
echo "CFLAGS += $(pkg-config --cflags xft)"
endif
ifeq ($(python),)
-python += $(shell which python3.9)
+python = $(shell which python3.9)
+endif
+
+ifeq ($(python),)
+python = $(shell which python3.12)
endif