diff --git a/srcpkgs/cinelerra/patches/a52dec.patch b/srcpkgs/cinelerra/patches/a52dec.patch new file mode 100644 index 00000000000000..6473f63a6c8e87 --- /dev/null +++ b/srcpkgs/cinelerra/patches/a52dec.patch @@ -0,0 +1,33 @@ +--- libzmpeg3/Makefile.orig ++++ libzmpeg3/Makefile +@@ -77,7 +77,7 @@ + UTILS += $(OBJDIR)/zmpeg3ifochk + UTILS += $(OBJDIR)/zmpeg3cc2txt + +-LIBS = -lm -lpthread ++LIBS = -lm -lpthread -la52 + + LIBS += $(lib_a52dec) $(lib_djbfft) + +--- mpeg2enc/Makefile.orig ++++ mpeg2enc/Makefile +@@ -54,7 +54,7 @@ + $(OBJDIR)/writepic.o + + LIBS := $(LIBZMPEG3)/$(OBJDIR)/libzmpeg3.a +-LIBS += $(libraries) ++LIBS += $(libraries) -la52 + + HVEG2LIB = $(OBJDIR)/hveg2enc.a + HVEG2ENC = $(OBJDIR)/hveg2enc +--- mplexlo/Makefile.orig ++++ mplexlo/Makefile +@@ -11,7 +11,7 @@ + CFLAGS += $(static_incs) + + LIBS := $(LIBZMPEG3)/$(OBJDIR)/libzmpeg3.a +-LIBS += $(libraries) ++LIBS += $(libraries) -la52 + + OUTPUT := $(OBJDIR)/mplexlo + diff --git a/srcpkgs/cinelerra/patches/libintl.patch b/srcpkgs/cinelerra/patches/libintl.patch new file mode 100644 index 00000000000000..b2490c1e0bdace --- /dev/null +++ b/srcpkgs/cinelerra/patches/libintl.patch @@ -0,0 +1,11 @@ +--- cinelerra/Makefile.orig ++++ cinelerra/Makefile +@@ -431,8 +431,6 @@ + ifeq ($(WANT_CIN_3RDPARTY),no) + LIBS += -lavcodec -lavdevice -lavfilter -lavformat -lavutil + LIBS += -lswresample -lswscale +-LIBS += -lintl -liconv +-LIBS += -lexecinfo + + LIBS += $(shared_libs) + LIBS += $(system_libs) diff --git a/srcpkgs/cinelerra/template b/srcpkgs/cinelerra/template new file mode 100644 index 00000000000000..4acb9ff2972d5e --- /dev/null +++ b/srcpkgs/cinelerra/template @@ -0,0 +1,34 @@ +# Template file for 'cinelerra' +pkgname=cinelerra +version=5.1.20200531 +revision=1 +wrksrc="${pkgname}-${version%*.*}" +build_style=gnu-configure +configure_args="--disable-static-build --without-commercial --without-thirdparty" +hostmakedepends="automake cmake nasm yasm pkg-config" +makedepends="liba52-devel fftw-devel glib-devel glu-devel gtk+-devel ladspa-sdk + lame-devel libavc1394-devel libdv-devel libiec61883-devel libnuma-devel + libopenexr-devel libraw1394-devel libsndfile-devel libtheora-devel + libva-devel libvdpau-devel libvpx-devel libXcomposite-devel libXcursor-devel + libXi-devel libXinerama-devel libXrandr-devel libXv-devel opus-devel + sord-devel suil-devel twolame-devel ffmpeg-devel x264-devel x265-devel + giflib-devel lilv-devel lv2 libopenjpeg2-devel MesaLib-devel libwebp-devel + libusb-devel gettext-devel" +depends="dejavu-fonts-ttf inkscape dvdauthor udftools" +short_desc="Advanced non-linear video editor and compositor" +maintainer="Andrew Benson " +license="GPL-2.0-or-later" +homepage="https://www.cinelerra-gg.org" +distfiles="https://cinelerra-gg.org/download/pkgs/src/cin_${version}-src.tgz" +checksum=0e791571e9a08bf3e8237fb80547fc7f99e1371cb56d9d63a98b638ba62b389b + +export CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/a52dec \ + -I${XBPS_CROSS_BASE}/usr/include/lilv-0 \ + -I${XBPS_CROSS_BASE}/usr/include/suil-0" + +export LDFLAGS+=" -L${XBPS_CROSS_BASE}/usr/lib \ + -llilv-0" + +pre_configure() { + ./autogen.sh +}