diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2007-10-09 16:43:16 +0000 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2007-10-09 16:43:16 +0000 |
commit | 1eadbc9dd74d884f363ce8f8f7ed9d9bbce49ed0 (patch) | |
tree | 89f457c33bfaf5d3f0d34cc5ca485ea07899954c /graphics/libpano13/files | |
parent | 6181976151b80d0b7ac6b654720cd1242089d231 (diff) | |
download | ports-1eadbc9dd74d884f363ce8f8f7ed9d9bbce49ed0.tar.gz ports-1eadbc9dd74d884f363ce8f8f7ed9d9bbce49ed0.zip |
Add new port graphics/libpano13 - the successor of graphics/libpano12
This is the pano13 library, part of the Panorama Tools by Helmut
Dersch of the University of Applied Sciences Furtwangen.
The panorama tools are mainly used to build panoramic images from a set of
overlapping images. The usability extends beyond "just" building panoramas by
far though. You can, for instance, use them to render an average of multiple
images to broaden the dynamic range of the images or average out noise. You
can also build object movies with them, morph between images and much more.
WWW: http://panotools.sourceforge.net/
Notes
Notes:
svn path=/head/; revision=201186
Diffstat (limited to 'graphics/libpano13/files')
-rw-r--r-- | graphics/libpano13/files/patch-Makefile.am | 29 | ||||
-rw-r--r-- | graphics/libpano13/files/patch-bootstrap | 30 | ||||
-rw-r--r-- | graphics/libpano13/files/patch-configure.ac | 22 | ||||
-rw-r--r-- | graphics/libpano13/files/patch-m4_ax_check_graphics.m4 | 74 | ||||
-rw-r--r-- | graphics/libpano13/files/patch-m4_ax_check_java.m4 | 21 | ||||
-rw-r--r-- | graphics/libpano13/files/patch-tools_Makefile.am | 28 |
6 files changed, 204 insertions, 0 deletions
diff --git a/graphics/libpano13/files/patch-Makefile.am b/graphics/libpano13/files/patch-Makefile.am new file mode 100644 index 000000000000..77a32fa8a39c --- /dev/null +++ b/graphics/libpano13/files/patch-Makefile.am @@ -0,0 +1,29 @@ +--- Makefile.am.orig 2006-12-21 12:14:09.000000000 +0200 ++++ Makefile.am 2007-10-09 18:12:31.000000000 +0300 +@@ -81,13 +81,23 @@ + + endif + +-AM_CPPFLAGS = $(JAVA_FLAGS) $(JPEG_FLAGS) $(PNG_FLAGS) $(TIFF_FLAGS) $(ZLIB_FLAGS) $(WIN_DEFS) $(LIN_DEFS) $(DAR_DEFS) $(ENDIAN_FLAG) ++if HAVE_FREEBSD ++FBSD_SRC = sys_ansi.c ppm.c ++FBSD_DEFS = -D__Ansi__=1 ++FBSD_LDFS = -version-info 0:0:0 ++ ++install-exec-hook: ++ @true ++ ++endif ++ ++AM_CPPFLAGS = $(JAVA_FLAGS) $(JPEG_FLAGS) $(PNG_FLAGS) $(TIFF_FLAGS) $(ZLIB_FLAGS) $(WIN_DEFS) $(LIN_DEFS) $(DAR_DEFS) $(ENDIAN_FLAG) $(FBSD_DEFS) + + lib_LTLIBRARIES = libpano13.la + +-libpano13_la_SOURCES = $(STD_SRC) $(JAVA_SRC) $(X11_SRC) $(WIN_SRC) $(MAC_SRC) $(LIN_SRC) $(DAR_SRC) ++libpano13_la_SOURCES = $(STD_SRC) $(JAVA_SRC) $(X11_SRC) $(WIN_SRC) $(MAC_SRC) $(LIN_SRC) $(DAR_SRC) $(FBSD_SRC) + libpano13_la_LIBADD = $(LIB_JPEG) $(LIB_PNG) $(LIB_TIFF) $(LIB_ZLIB) @PANO_WIN32_RESOURCE@ +-libpano13_la_LDFLAGS = $(LIN_LDFS) $(WIN_LDFS) $(DAR_LDFS) ++libpano13_la_LDFLAGS = $(LIN_LDFS) $(WIN_LDFS) $(DAR_LDFS) $(FBSD_LDFS) + libpano13_la_DEPENDENCIES = @PANO_WIN32_RESOURCE@ + + pkginclude_HEADERS = $(STD_HDR) $(TOOL_HDR) diff --git a/graphics/libpano13/files/patch-bootstrap b/graphics/libpano13/files/patch-bootstrap new file mode 100644 index 000000000000..d109130572cf --- /dev/null +++ b/graphics/libpano13/files/patch-bootstrap @@ -0,0 +1,30 @@ +--- bootstrap.orig 2006-09-07 21:19:28.000000000 +0300 ++++ bootstrap 2007-10-05 19:29:22.000000000 +0300 +@@ -96,27 +96,3 @@ + $AUTOMAKE --add-missing --copy || exit $? + + $AUTOCONF || exit $? +- +-cd $ORIGDIR || exit $? +- +-echo +-echo "I am going to run ./configure with the following arguments:" +-echo +-echo " --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS $@" +-echo +- +-if test -z "$*"; then +- echo "If you wish to pass additional arguments, please specify them " +- echo "on the $0 command line or set the AUTOGEN_CONFIGURE_ARGS " +- echo "environment variable." +- echo +-fi +- +-$srcdir/configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@" +-RC=$? +-if test $RC -ne 0; then +- echo +- echo "Configure failed or did not finish!" +- exit $RC +-fi +- diff --git a/graphics/libpano13/files/patch-configure.ac b/graphics/libpano13/files/patch-configure.ac new file mode 100644 index 000000000000..723bdcd5657a --- /dev/null +++ b/graphics/libpano13/files/patch-configure.ac @@ -0,0 +1,22 @@ +--- configure.ac.orig Fri Jun 16 13:30:54 2006 ++++ configure.ac Wed Jan 17 10:40:32 2007 +@@ -45,6 +45,11 @@ + ;; + esac + ;; ++ *freebsd*) ++ PANO_WIN32_RESOURCE= ++ HSYS=freebsd ++ HCPU="${target_cpu}" ++ ;; + *darwin*) + PANO_WIN32_RESOURCE= + HSYS=darwin +@@ -73,6 +78,7 @@ + + AM_CONDITIONAL(HAVE_DARWIN, test "${HSYS}" = "darwin") + AM_CONDITIONAL(HAVE_LINUX, test "${HSYS}" = "linux") ++AM_CONDITIONAL(HAVE_FREEBSD, test "${HSYS}" = "freebsd") + AM_CONDITIONAL(HAVE_MAC, test "${HSYS}" = "classic") + AM_CONDITIONAL(HAVE_MINGW, test "${HSYS}" = "mingw32") + AM_CONDITIONAL(HAVE_CYGWIN, test "${HSYS}" = "cygwin") diff --git a/graphics/libpano13/files/patch-m4_ax_check_graphics.m4 b/graphics/libpano13/files/patch-m4_ax_check_graphics.m4 new file mode 100644 index 000000000000..78414f3a0965 --- /dev/null +++ b/graphics/libpano13/files/patch-m4_ax_check_graphics.m4 @@ -0,0 +1,74 @@ +--- m4/ax_check_graphics.m4.orig Wed Jan 17 11:09:58 2007 ++++ m4/ax_check_graphics.m4 Wed Jan 17 11:11:53 2007 +@@ -44,7 +44,7 @@ + ZLIB_OLD_LDFLAGS=$LDFLAGS + ZLIB_OLD_CPPFLAGS=$CPPFLAGS + if test "x$ZLIB_HOME" != 'x' ; then +- if test "x$HCPU" = 'xamd64' ; then ++ if test "x$HCPU" = 'xamd64' -a "x$HSYS" != 'xfreebsd' ; then + LDFLAGS="$LDFLAGS -L$ZLIB_HOME/lib64" + else + LDFLAGS="$LDFLAGS -L$ZLIB_HOME/lib" +@@ -69,7 +69,7 @@ + LIB_ZLIB="-lz" + ZLIB_FLAGS="-DHasZLIB" + else +- if test "x$HCPU" = 'xamd64' ; then ++ if test "x$HCPU" = 'xamd64' -a "x$HSYS" != 'xfreebsd' ; then + LIB_ZLIB="-L$ZLIB_HOME/lib64 -lz" + else + LIB_ZLIB="-L$ZLIB_HOME/lib -lz" +@@ -133,7 +133,7 @@ + PNG_OLD_LDFLAGS=$LDFLAGS + PNG_OLD_CPPFLAGS=$CPPFLAGS + if test "x$PNG_HOME" != 'x' ; then +- if test "x$HCPU" = 'xamd64' ; then ++ if test "x$HCPU" = 'xamd64' -a "x$HSYS" != 'xfreebsd' ; then + LDFLAGS="$LDFLAGS -L$PNG_HOME/lib64" + else + LDFLAGS="$LDFLAGS -L$PNG_HOME/lib" +@@ -158,7 +158,7 @@ + LIB_PNG="-lpng" + PNG_FLAGS="-DHasPNG" + else +- if test "x$HCPU" = 'xamd64' ; then ++ if test "x$HCPU" = 'xamd64' -a "x$HSYS" != 'xfreebsd' ; then + LIB_PNG="-L$PNG_HOME/lib64 -lpng" + else + LIB_PNG="-L$PNG_HOME/lib -lpng" +@@ -224,7 +224,7 @@ + JPEG_OLD_LDFLAGS=$LDFLAGS + JPEG_OLD_CPPFLAGS=$CPPFLAGS + if test "x$JPEG_HOME" != 'x' ; then +- if test "x$HCPU" = 'xamd64' ; then ++ if test "x$HCPU" = 'xamd64' -a "x$HSYS" != 'xfreebsd' ; then + LDFLAGS="$LDFLAGS -L$JPEG_HOME/lib64" + else + LDFLAGS="$LDFLAGS -L$JPEG_HOME/lib" +@@ -274,7 +274,7 @@ + LIB_JPEG="-ljpeg" + JPEG_FLAGS="-DHasJPEG" + else +- if test "x$HCPU" = 'xamd64' ; then ++ if test "x$HCPU" = 'xamd64' -a "x$HSYS" != 'xfreebsd' ; then + LIB_JPEG="-L$JPEG_HOME/lib64 -ljpeg" + else + LIB_JPEG="-L$JPEG_HOME/lib -ljpeg" +@@ -339,7 +339,7 @@ + TIFF_OLD_LDFLAGS=$LDFLAGS + TIFF_OLD_CPPFLAGS=$CPPFLAGS + if test "x$TIFF_HOME" != 'x' ; then +- if test "x$HCPU" = 'xamd64' ; then ++ if test "x$HCPU" = 'xamd64' -a "x$HSYS" != 'xfreebsd' ; then + LDFLAGS="$LDFLAGS -L$TIFF_HOME/lib64" + else + LDFLAGS="$LDFLAGS -L$TIFF_HOME/lib" +@@ -364,7 +364,7 @@ + LIB_TIFF="-ltiff" + TIFF_FLAGS="-DHasTIFF" + else +- if test "x$HCPU" = 'xamd64' ; then ++ if test "x$HCPU" = 'xamd64' -a "x$HSYS" != 'xfreebsd' ; then + LIB_TIFF="-L$TIFF_HOME/lib64 -ltiff" + else + LIB_TIFF="-L$TIFF_HOME/lib -ltiff" diff --git a/graphics/libpano13/files/patch-m4_ax_check_java.m4 b/graphics/libpano13/files/patch-m4_ax_check_java.m4 new file mode 100644 index 000000000000..658cdeb472a2 --- /dev/null +++ b/graphics/libpano13/files/patch-m4_ax_check_java.m4 @@ -0,0 +1,21 @@ +--- m4/ax_check_java.m4.orig Wed Jan 17 11:23:05 2007 ++++ m4/ax_check_java.m4 Wed Jan 17 11:25:08 2007 +@@ -2,7 +2,7 @@ + dnl Usage: + dnl AX_CHECK_JAVA + dnl Test for java, and defines +-dnl - JAVA_CFLAGS (compiler flags) ++dnl - JAVA_FLAGS (compiler flags) + dnl - LIB_JAVA (linker flags, stripping and path) + dnl prerequisites: + +@@ -78,6 +78,9 @@ + case "${target_os}" in + linux*) + java_extra_inc=linux ++ ;; ++ *freebsd*) ++ java_extra_inc=freebsd + ;; + darwin*) + java_extra_inc=darwin diff --git a/graphics/libpano13/files/patch-tools_Makefile.am b/graphics/libpano13/files/patch-tools_Makefile.am new file mode 100644 index 000000000000..d8d11116cd82 --- /dev/null +++ b/graphics/libpano13/files/patch-tools_Makefile.am @@ -0,0 +1,28 @@ +--- tools/Makefile.am.orig 2006-12-16 23:21:03.000000000 +0200 ++++ tools/Makefile.am 2007-10-09 18:14:30.000000000 +0300 +@@ -32,7 +32,15 @@ + DAR_DEFS = + endif + +-AM_CPPFLAGS = $(JAVA_FLAGS) $(LIN_DEFS) $(DAR_DEFS) $(TIFF_FLAGS) $(JPEG_FLAGS) ++if HAVE_FREEBSD ++FBSD_SRC = panoinfo_unix.c ++FBSD_DEFS = -D__Ansi__=1 ++else ++FBSD_SRC = ++FBSD_DEFS = ++endif ++ ++AM_CPPFLAGS = $(JAVA_FLAGS) $(LIN_DEFS) $(DAR_DEFS) $(TIFF_FLAGS) $(JPEG_FLAGS) $(FBSD_DEFS) + AM_LDFLAGS = -L${top_builddir} + + bin_PROGRAMS = panoinfo PToptimizer PTmender PTblender PTtiff2psd PTuncrop PTtiffdump PTroller PTcrop PTmasker PTinfo +@@ -69,7 +77,7 @@ + PToptimizer_SOURCES = PToptimizer.c + PToptimizer_LDADD = -l${PANOLIB} + +-panoinfo_SOURCES = $(WIN_SRC) $(LIN_SRC) $(DAR_SRC) ++panoinfo_SOURCES = $(WIN_SRC) $(LIN_SRC) $(DAR_SRC) $(FBSD_SRC) + panoinfo_LDADD = -l${PANOLIB} + + EXTRA_DIST = makefile.panoinfo.win32 makefile.ptoptimizer.win32 \ |