initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

57
dvdauthor/PKGBUILD Normal file
View File

@@ -0,0 +1,57 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=dvdauthor
pkgver=0.7.2
_debver=0.7.2
_debrel=1
pkgrel=1
pkgdesc='DVD authoring tools'
arch=('i686' 'x86_64')
url='http://dvdauthor.sourceforge.net/'
license=('GPL-2')
depends=('libdvdread' 'graphicsmagick' 'libxml2')
makedepends=('quilt')
source=("https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
"https://deb.debian.org/debian/pool/main/d/dvdauthor/dvdauthor_$_debver-$_debrel.debian.tar.xz"
"support-graphicsmagick.patch")
sha512sums=('202b8bba38939d122dc864921a57e89906ca99ddabf44e3b07419cc42cc052567cd892b41f1171c9c195c9a770758e9319a942ea64d14ee8fa847588c7761125'
'ef4296cc9786360620ebcb17633702143444aa797a04960ec9a766e421e6a9e362b4372538213fb927c18b74a73202bf043650338e0344c7a772703eab2288ca'
'd554b563d1da551560fc49aaa9d8f005770bb493ed94b5795e4a37d142e7ff474757a99d4baaf9eb39d41bbbfd2d37a3e19cd8d19e5b6dd654f939732d162f01')
prepare() {
cd $pkgname
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
# Debian patches
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
export QUILT_DIFF_ARGS='--no-timestamps'
mv "$srcdir"/debian .
# Doesn't apply
rm -v debian/patches/0001-add-config-rpath.patch || true
quilt push -av
fi
# support for graphicsmagick
patch -Np1 -i ../support-graphicsmagick.patch
# don't search for obsolete freetype-config
sed -e 's|freetype-config|pkg-config freetype2|' -i configure.ac
autoreconf -vi
}
build() {
cd $pkgname
./configure --prefix=/usr --with-graphicsmagick
make
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
}

View File

@@ -0,0 +1,68 @@
--- a/configure.ac 2021-06-29 20:19:42.000000000 +0200
+++ b/configure.ac 2021-06-29 20:20:39.166050021 +0200
@@ -45,35 +45,31 @@
config_static='--static'
fi
-usemagick=0
-
-AC_CHECK_PROGS(MAGICKCONFIG, [MagickCore-config])
-if test -n "$MAGICKCONFIG"; then
- ac_save_CPPFLAGS="$CPPFLAGS"
- ac_save_LIBS="$LIBS"
- MAGICK_CPPFLAGS="`$MAGICKCONFIG --cppflags`"
- MAGICK_LIBS="`$MAGICKCONFIG --ldflags` `$MAGICKCONFIG --libs`"
- CPPFLAGS="$CPPFLAGS $MAGICK_CPPFLAGS"
- LIBS="$MAGICK_LIBS $LIBS"
- AC_CHECK_FUNC(ExportImagePixels, usemagick=1, AC_MSG_NOTICE([ImageMagick does not support the function
- ExportImagePixels. Please upgrade to ImageMagick 5.5.7 or newer]))
- CPPFLAGS="$ac_save_CPPFLAGS"
- LIBS="$ac_save_LIBS"
- if test "$usemagick" = 1; then
- AC_DEFINE(HAVE_MAGICK, 1, [Whether the ImageMagick libraries are available])
- fi
+use_imagemagick=0
+use_graphicsmagick=0
+AC_ARG_WITH([imagemagick], AS_HELP_STRING([--with-imagemagick], [Use ImageMagick to augment image import formats]), [if test "$withval" != "no"; then use_imagemagick=1; fi])
+AC_ARG_WITH([graphicsmagick], AS_HELP_STRING([--with-graphicsmagick], [Use GraphicsMagick to augment image import formats]), [if test "$withval" != "no"; then use_graphicsmagick=1; fi])
+if test "$use_imagemagick" = 1 && test "$use_graphicsmagick" = 1; then
+ AC_MSG_ERROR([cannot specify both --with-imagemagick and --with-graphicsmagick], 1)
fi
-if test "$usemagick" != 1; then
- PKG_CHECK_MODULES([MAGICK], [GraphicsMagick], usemagick=1; [AC_DEFINE(HAVE_GMAGICK, 1, [whether the GraphicsMagick libraries are available])], [:])
+if test "$use_imagemagick" = 1; then
+ PKG_CHECK_MODULES([IMAGEMAGICK], [ImageMagick >= 5.5.7], [AC_DEFINE(HAVE_MAGICK, 1, [Whether the ImageMagick libraries are available])], [AC_MSG_ERROR([ImageMagick not available])])
+ MAGICK_CFLAGS="$IMAGEMAGICK_CFLAGS"
+ MAGICK_LIBS="$IMAGEMAGICK_LIBS"
fi
-
-if test "$usemagick" != 1; then
- MAGICK_CPPFLAGS="$LIBPNG_CFLAGS"
+if test "$use_graphicsmagick" = 1; then
+ PKG_CHECK_MODULES([GRAPHICSMAGICK], [GraphicsMagick], [AC_DEFINE(HAVE_GMAGICK, 1, [whether the GraphicsMagick libraries are available])], [AC_MSG_ERROR([GraphicsMagick not available])])
+ MAGICK_CFLAGS="$GRAPHICSMAGICK_CFLAGS"
+ MAGICK_LIBS="$GRAPHICSMAGICK_LIBS"
+fi
+if test "$use_imagemagick" != 1 && test "$use_graphicsmagick" != 1; then
+ MAGICK_CFLAGS="$LIBPNG_CFLAGS"
MAGICK_LIBS="$LIBPNG_LIBS"
fi
AC_SUBST(MAGICK_CPPFLAGS)
+AC_SUBST(MAGICK_CFLAGS)
AC_SUBST(MAGICK_LIBS)
PKG_CHECK_MODULES([FONTCONFIG], [fontconfig], [AC_DEFINE(HAVE_FONTCONFIG, 1, [whether Fontconfig is available])], [:])
--- a/src/Makefile.am 2021-06-29 20:22:21.840887505 +0200
+++ b/src/Makefile.am 2021-06-29 20:26:36.942906536 +0200
@@ -8,7 +8,7 @@
nodist_bin_SCRIPTS = dvddirdel
AM_CPPFLAGS = -DSYSCONFDIR="\"$(sysconfdir)\"" \
- @XML_CPPFLAGS@ @MAGICK_CPPFLAGS@ @FREETYPE_CFLAGS@ @FRIBIDI_CFLAGS@ @FONTCONFIG_CFLAGS@
+ @XML_CPPFLAGS@ @MAGICK_CFLAGS@ @FREETYPE_CFLAGS@ @FRIBIDI_CFLAGS@ @FONTCONFIG_CFLAGS@
AM_CFLAGS = -Wall
dvdauthor_SOURCES = dvdauthor.c common.h dvdauthor.h da-internal.h \