123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- diff --git a/ChangeLog b/ChangeLog
- index 596e22d..1cf42b1 100644
- --- a/ChangeLog
- +++ b/ChangeLog
- @@ -1,3 +1,8 @@
- +0.7.2+: 2017 July 4
- + No longer automatically build with ImageMagick or GraphicsMagick if
- + present; now need to explicitly specify --with-imagemagick or
- + --with-graphicsmagick to configure
- +
- 0.7.2: 2016 December 31
- Various code-quality and build improvements
- Support “jump pgc n” and other interaction code-generation improvements
- diff --git a/Makefile.am b/Makefile.am
- index de76fc5..7c11310 100644
- --- a/Makefile.am
- +++ b/Makefile.am
- @@ -1,4 +1,6 @@
- SUBDIRS = doc src
- +ACLOCAL_AMFLAGS = -I m4
- +# as per recommendation at <https://www.gnu.org/software/libtool/manual/html_node/Invoking-libtoolize.html>
-
- noinst_DATA = dvdauthor.spec
-
- #diff --git a/bootstrap b/bootstrap
- #index 88b61ae..ecf35f0 100755
- #--- a/bootstrap
- #+++ b/bootstrap
- #@@ -14,7 +14,7 @@
- # #
- # # Created by Lawrence D'Oliveiro <ldo@geek-central.gen.nz>.
- # #-
- #-mkdir autotools
- #+mkdir autotools m4
- # cp /usr/share/gettext/config.rpath autotools/
- # autoreconf -i
- #
- diff --git a/configure.ac b/configure.ac
- index f4b270f..b843cf4 100644
- --- a/configure.ac
- +++ b/configure.ac
- @@ -1,6 +1,7 @@
- -AC_INIT(DVDAuthor,0.7.2,dvdauthor-users@lists.sourceforge.net)
- +AC_INIT(DVDAuthor,0.7.2+,dvdauthor-users@lists.sourceforge.net)
-
- AC_CONFIG_HEADERS(src/config.h)
- +AC_CONFIG_MACRO_DIRS([m4])
- AC_CONFIG_AUX_DIR(autotools)
-
- AM_INIT_AUTOMAKE
- @@ -8,6 +9,8 @@ LT_INIT
-
- AC_PROG_INSTALL
-
- +PKG_PROG_PKG_CONFIG
- +
- AC_SYS_LARGEFILE
-
- AC_HEADER_STDBOOL
- @@ -45,35 +48,30 @@ if test "$enable_shared" = 'no'; then
- 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])], [:])
- @@ -84,10 +82,8 @@ PKG_CHECK_MODULES([FRIBIDI], [fribidi], [AC_DEFINE(HAVE_FRIBIDI, 1, [whether Fri
- AC_SUBST(FRIBIDI_CFLAGS)
- AC_SUBST(FRIBIDI_LIBS)
-
- -AC_CHECK_PROGS(FREETYPECONFIG, [freetype-config])
- -if test -n "$FREETYPECONFIG"; then
- - FREETYPE_CPPFLAGS="`$FREETYPECONFIG --cflags`"
- - FREETYPE_LIBS="`$FREETYPECONFIG --libs $config_static`"
- +PKG_CHECK_MODULES(FREETYPE, [freetype2],[
- + FREETYPE_CPPFLAGS="$FREETYPE_CFLAGS"
- AC_DEFINE(HAVE_FREETYPE, 1, [Whether FreeType is available])
-
- ac_save_CPPFLAGS="$CPPFLAGS"
- @@ -96,10 +92,11 @@ if test -n "$FREETYPECONFIG"; then
- CPPFLAGS="$ac_save_CPPFLAGS"
- AC_SUBST(FREETYPE_CPPFLAGS)
- AC_SUBST(FREETYPE_LIBS)
- -else
- + ],
- AC_MSG_ERROR([freetype not found])
- -fi
- +)
-
- +PKG_CHECK_MODULES([XML2], [libxml-2.0 >= 2.6.0])
-
- AC_ARG_ENABLE([default-video-format],
- AS_HELP_STRING([--enable-default-video-format=format], [specify a default video format, either NTSC or PAL, to be used if no configuration or input setting is given]),
- @@ -135,11 +132,7 @@ dnl AM_LANGINFO_CODESET
-
- AM_ICONV
-
- -ifdef([AM_PATH_XML2],
- - [AM_PATH_XML2(2.6.0, , AC_MSG_ERROR([You must have libxml2 >= 2.6.0 installed]))],
- - [errprint([You must have libxml2 (>= 2.6.0) installed
- -])m4_exit(1)AC_MSG_ERROR([You must have libxml2 (>= 2.6.0) installed])])
- -
- AC_CHECK_DECLS(O_BINARY, , , [ #include <fcntl.h> ] )
-
- -AC_OUTPUT(Makefile doc/Makefile src/Makefile)
- +AC_CONFIG_FILES(Makefile doc/Makefile src/Makefile)
- +AC_OUTPUT
- diff --git a/src/Makefile.am b/src/Makefile.am
- index c7f89a9..5504b8e 100644
- --- a/src/Makefile.am
- +++ b/src/Makefile.am
- @@ -8,7 +8,7 @@ endif
- nodist_bin_SCRIPTS = dvddirdel
-
- AM_CPPFLAGS = -DSYSCONFDIR="\"$(sysconfdir)\"" \
- - @XML_CPPFLAGS@ @MAGICK_CPPFLAGS@ @FREETYPE_CPPFLAGS@ @FRIBIDI_CFLAGS@ @FONTCONFIG_CFLAGS@
- + @XML2_CFLAGS@ @MAGICK_CFLAGS@ @FREETYPE_CPPFLAGS@ @FRIBIDI_CFLAGS@ @FONTCONFIG_CFLAGS@
- AM_CFLAGS = -Wall
-
- dvdauthor_SOURCES = dvdauthor.c common.h dvdauthor.h da-internal.h \
- @@ -16,17 +16,17 @@ dvdauthor_SOURCES = dvdauthor.c common.h dvdauthor.h da-internal.h \
- dvdifo.c dvdvob.c dvdpgc.c \
- dvdcli.c readxml.c readxml.h \
- conffile.c conffile.h compat.c compat.h rgb.h
- -dvdauthor_LDADD = $(LIBICONV) $(XML_LIBS)
- +dvdauthor_LDADD = $(LIBICONV) $(XML2_LIBS)
-
- dvdunauthor_SOURCES = dvdunauthor.c dvduncompile.c common.h dvduncompile.h compat.c compat.h
- -dvdunauthor_LDADD = $(XML_LIBS) $(LIBICONV) -ldvdread
- +dvdunauthor_LDADD = $(XML2_LIBS) $(LIBICONV) -ldvdread
-
- spumux_SOURCES = subgen.c subgen.h rgb.h \
- subgen-parse-xml.c readxml.c readxml.h \
- subgen-encode.c subgen-image.c subglobals.h \
- conffile.c conffile.h compat.c compat.h common.h \
- subrender.c subrender.h subreader.c subreader.h subfont.c subfont.h
- -spumux_LDADD = $(XML_LIBS) $(MAGICK_LIBS) $(FREETYPE_LIBS) \
- +spumux_LDADD = $(XML2_LIBS) $(MAGICK_LIBS) $(FREETYPE_LIBS) \
- $(FRIBIDI_LIBS) $(FONTCONFIG_LIBS) $(LIBICONV) -lm
-
- spuunmux_SOURCES = spuunmux.c rgb.h compat.c compat.h common.h conffile.h conffile.c
|