Credit Andrew-R updates needed for building NetBSD 10.0 master
authorGood Guy <good1.2guy@gmail.com>
Sun, 24 Nov 2024 17:53:01 +0000 (10:53 -0700)
committerGood Guy <good1.2guy@gmail.com>
Sun, 24 Nov 2024 17:53:01 +0000 (10:53 -0700)
cinelerra-5.1/blds/netbsd.bld
cinelerra-5.1/cinelerra/Makefile
cinelerra-5.1/configure.ac
cinelerra-5.1/guicast/Makefile

index 0e2c97a651cacb4a3a3edc1c981643115dbc92c7..b121e0f872d0ab866f5b9032d1da1db21e2b4af3 100755 (executable)
@@ -1,6 +1,6 @@
-#!/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
@@ -9,7 +9,7 @@ export LDFLAGS="-L/usr/X11R7/lib -L/usr/pkg/lib -L/usr/pkg/lib/ffmpeg6 "
 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 \
index e8eb1d5bf75f48f4bacca28d4a9ec4a6e2e56ed4..f79f78cb457d752fd1dcfe0ad6cc68b0b6077235 100644 (file)
@@ -438,7 +438,7 @@ LIBS += -lavfilter -lavformat -lavcodec -lavutil
 LIBS += -lswresample -lswscale
 PLATFORM = $(shell uname -s)
 ifneq (, $(filter $(PLATFORM), NetBSD))
-LIBS += -lintl
+LIBS += -lintl -liconv
 endif
 ifneq (, $(filter $(PLATFORM), FreeBSD))
 LIBS += -lintl -liconv
index a1b1dabd23bccddafbe8f0d52ddab8c398445a9d..d7236c680e0f52a7fa094fcf2d012e8c887c9300 100644 (file)
@@ -1203,8 +1203,11 @@ AC_CONFIG_FILES([Makefile])
 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
@@ -1304,6 +1307,8 @@ echo "system_libs += -L/usr/pkg/lib/"
 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)"
index 49bd154c6cb0859eff6b11205c21ffda43d4d135..67116252b5febf37ff0586e19e44d7c00304f4a4 100644 (file)
@@ -130,7 +130,11 @@ python = $(shell which python)
 endif
 
 ifeq ($(python),)
-python += $(shell which python3.9)
+python = $(shell which python3.9)
+endif
+
+ifeq ($(python),)
+python = $(shell which python3.12)
 endif