From c1e8dfff4cc8b7da425e2f9f8483bf653de74847 Mon Sep 17 00:00:00 2001 From: kevlo Date: Wed, 27 Jun 2001 02:37:16 +0000 Subject: [PATCH] Initial import of kuickshow 0.8.1. KuickShow is an image browser/viewer with a nice filebrowser to select images to be shown, slideshow support and the ability to display the following image formats: jpg, gif, tiff, png, bmp, psd, xpm, xbm, pbm and eim. --- graphics/kuickshow/Makefile | 39 +++++++++++++++++ graphics/kuickshow/files/md5 | 3 ++ graphics/kuickshow/patches/patch-aclocal.m4 | 23 ++++++++++ .../patches/patch-admin_libtool_m4_in | 23 ++++++++++ .../kuickshow/patches/patch-admin_ltcf-c_sh | 19 +++++++++ .../kuickshow/patches/patch-admin_ltcf-cxx_sh | 20 +++++++++ .../kuickshow/patches/patch-admin_ltconfig | 11 +++++ graphics/kuickshow/patches/patch-configure.in | 11 +++++ .../patches/patch-src_imagewindow_cpp | 37 ++++++++++++++++ graphics/kuickshow/pkg/DESCR | 7 ++++ graphics/kuickshow/pkg/PFRAG.shared | 3 ++ graphics/kuickshow/pkg/PLIST | 42 +++++++++++++++++++ 12 files changed, 238 insertions(+) create mode 100644 graphics/kuickshow/Makefile create mode 100644 graphics/kuickshow/files/md5 create mode 100644 graphics/kuickshow/patches/patch-aclocal.m4 create mode 100644 graphics/kuickshow/patches/patch-admin_libtool_m4_in create mode 100644 graphics/kuickshow/patches/patch-admin_ltcf-c_sh create mode 100644 graphics/kuickshow/patches/patch-admin_ltcf-cxx_sh create mode 100644 graphics/kuickshow/patches/patch-admin_ltconfig create mode 100644 graphics/kuickshow/patches/patch-configure.in create mode 100644 graphics/kuickshow/patches/patch-src_imagewindow_cpp create mode 100644 graphics/kuickshow/pkg/DESCR create mode 100644 graphics/kuickshow/pkg/PFRAG.shared create mode 100644 graphics/kuickshow/pkg/PLIST diff --git a/graphics/kuickshow/Makefile b/graphics/kuickshow/Makefile new file mode 100644 index 00000000000..1fa63a74575 --- /dev/null +++ b/graphics/kuickshow/Makefile @@ -0,0 +1,39 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2001/06/27 02:37:16 kevlo Exp $ + +COMMENT= "image viewer similar to ACDSee for Windows" + +DISTNAME= kuickshow-0.8.1 +CATEGORIES= graphics +NEED_VERSION= 1.417 + +HOMEPAGE= http://kuickshow.sourceforge.net/ + +MAINTAINER= Kevin Lo + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM=Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= kuickshow +EXTRACT_SUFX= .tgz + +BUILD_DEPENDS= uic::x11/qt2-designer +LIB_DEPENDS= kdecore.3.::x11/kde/libs2 \ + Imlib.19::graphics/imlib + +MAKE_ENV= ${CONFIGURE_ENV} +# Ensure qt2 will always be at the front +MAKE_FLAGS= CXXLD='--tag CXX ${CXX} -L${LOCALBASE}/lib/qt2' + +USE_GMAKE= Yes +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS= --with-qt-includes=${LOCALBASE}/include/X11/qt2 +CONFIGURE_ARGS+= --with-qt-libraries=${LOCALBASE}/lib/qt2 +CONFIGURE_ARGS+= --with-extra-libs=${LOCALBASE}/lib +CONFIGURE_ARGS+= --with-extra-includes=${LOCALBASE}/include +CONFIGURE_ARGS+= ${CONFIGURE_SHARED} +CONFIGURE_ENV= MOC=${LOCALBASE}/bin/moc2 KDEDIR=/usr/local + +.include diff --git a/graphics/kuickshow/files/md5 b/graphics/kuickshow/files/md5 new file mode 100644 index 00000000000..91f99b55bfc --- /dev/null +++ b/graphics/kuickshow/files/md5 @@ -0,0 +1,3 @@ +MD5 (kuickshow-0.8.1.tgz) = 16cc2c0ffe1f61deae3cd1e86e3ecce1 +RMD160 (kuickshow-0.8.1.tgz) = 46245e4a9024fbb2748f43625876324763779337 +SHA1 (kuickshow-0.8.1.tgz) = 371496477a0c150b0d2578568b17605987fd54e4 diff --git a/graphics/kuickshow/patches/patch-aclocal.m4 b/graphics/kuickshow/patches/patch-aclocal.m4 new file mode 100644 index 00000000000..eab980fb65a --- /dev/null +++ b/graphics/kuickshow/patches/patch-aclocal.m4 @@ -0,0 +1,23 @@ +--- aclocal.m4.orig Tue Jun 26 13:53:06 2001 ++++ aclocal.m4 Tue Jun 26 13:53:59 2001 +@@ -4628,19 +4628,7 @@ + ;; + + openbsd* ) +- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then +- case "$host_cpu" in +- i*86 ) +- changequote(,)dnl +- lt_cv_deplibs_check_method='file_magic OpenBSD/i[3-9]86 demand paged shared library' +- changequote([, ])dnl +- lt_cv_file_magic_cmd=/usr/bin/file +- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` +- ;; +- esac +- else +- lt_cv_deplibs_check_method=pass_all +- fi ++ lt_cv_deplibs_check_method=pass_all + ;; + + osf3* | osf4* | osf5*) diff --git a/graphics/kuickshow/patches/patch-admin_libtool_m4_in b/graphics/kuickshow/patches/patch-admin_libtool_m4_in new file mode 100644 index 00000000000..09abed7f355 --- /dev/null +++ b/graphics/kuickshow/patches/patch-admin_libtool_m4_in @@ -0,0 +1,23 @@ +--- admin/libtool.m4.in.orig Tue Jun 26 13:54:39 2001 ++++ admin/libtool.m4.in Tue Jun 26 13:55:13 2001 +@@ -606,19 +606,7 @@ + ;; + + openbsd* ) +- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then +- case "$host_cpu" in +- i*86 ) +- changequote(,)dnl +- lt_cv_deplibs_check_method='file_magic OpenBSD/i[3-9]86 demand paged shared library' +- changequote([, ])dnl +- lt_cv_file_magic_cmd=/usr/bin/file +- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` +- ;; +- esac +- else +- lt_cv_deplibs_check_method=pass_all +- fi ++ lt_cv_deplibs_check_method=pass_all + ;; + + osf3* | osf4* | osf5*) diff --git a/graphics/kuickshow/patches/patch-admin_ltcf-c_sh b/graphics/kuickshow/patches/patch-admin_ltcf-c_sh new file mode 100644 index 00000000000..e34228810da --- /dev/null +++ b/graphics/kuickshow/patches/patch-admin_ltcf-c_sh @@ -0,0 +1,19 @@ +--- admin/ltcf-c.sh.orig Tue Jun 26 13:57:15 2001 ++++ admin/ltcf-c.sh Tue Jun 26 14:00:20 2001 +@@ -405,10 +405,14 @@ + ;; + + openbsd*) +- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' +- hardcode_libdir_flag_spec='-R$libdir' ++ archive_cmds='$CC $pic_flag -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' ++ archive_expsym_cmds='$CC $pic_flag -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' ++ old_archive_cmds="$old_archive_cmds~"'$RANLIB $oldlib' ++ hardcode_libdir_flag_spec='${wl}-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no ++ remove_lgcc=yes ++ output_verbose_link_cmds='$CC $ac_cv_prog_cc_pic -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' + ;; + + os2*) diff --git a/graphics/kuickshow/patches/patch-admin_ltcf-cxx_sh b/graphics/kuickshow/patches/patch-admin_ltcf-cxx_sh new file mode 100644 index 00000000000..020bd738efb --- /dev/null +++ b/graphics/kuickshow/patches/patch-admin_ltcf-cxx_sh @@ -0,0 +1,20 @@ +--- admin/ltcf-cxx.sh.orig Tue Jun 26 14:01:12 2001 ++++ admin/ltcf-cxx.sh Tue Jun 26 14:02:38 2001 +@@ -344,14 +344,14 @@ + openbsd*) + if test "$with_gcc" = yes && test "$with_gnu_ld" = no; then + # MM: OpenBSD 2.7 uses G++, but not GNU ld +- archive_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' +- archive_expsym_cmds='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' ++ archive_cmds='$CC $pic_flag -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' ++ archive_expsym_cmds='$CC $pic_flag -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + old_archive_cmds="$old_archive_cmds~"'$RANLIB $oldlib' + hardcode_libdir_flag_spec='${wl}-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no +- whole_archive_flag_spec='${wl}-Bforcearchive' + remove_lgcc=yes ++ output_verbose_link_cmds='$CC $ac_cv_prog_cc_pic -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' + fi + ;; + osf3*) diff --git a/graphics/kuickshow/patches/patch-admin_ltconfig b/graphics/kuickshow/patches/patch-admin_ltconfig new file mode 100644 index 00000000000..1ffa62437ab --- /dev/null +++ b/graphics/kuickshow/patches/patch-admin_ltconfig @@ -0,0 +1,11 @@ +--- admin/ltconfig.orig Tue Jun 26 14:02:58 2001 ++++ admin/ltconfig Tue Jun 26 14:03:47 2001 +@@ -1140,6 +1140,8 @@ + shlibpath_var=LD_LIBRARY_PATH + # OpenBSD 2.7 the overriding is needed for fast-install + shlibpath_overrides_runpath=yes ++ deplib_check_method=pass_all ++ sys_lib_dlsearch_path_spec='/usr/lib /usr/local/lib /usr/X11R6/lib /usr/local/lib/qt2' + ;; + + os2*) diff --git a/graphics/kuickshow/patches/patch-configure.in b/graphics/kuickshow/patches/patch-configure.in new file mode 100644 index 00000000000..e827f5ce64c --- /dev/null +++ b/graphics/kuickshow/patches/patch-configure.in @@ -0,0 +1,11 @@ +--- configure.in.orig Tue Jun 26 15:59:13 2001 ++++ configure.in Tue Jun 26 15:58:18 2001 +@@ -13,7 +13,7 @@ + AC_ARG_PROGRAM + + dnl Automake doc recommends to do this only here. (Janos) +-AM_INIT_AUTOMAKE(kuickshow-0.8.1, "2.1 beta 2") dnl searches for some needed programs ++AM_INIT_AUTOMAKE(kuickshow, "2.1 beta 2") dnl searches for some needed programs + + KDE_SET_PREFIX + diff --git a/graphics/kuickshow/patches/patch-src_imagewindow_cpp b/graphics/kuickshow/patches/patch-src_imagewindow_cpp new file mode 100644 index 00000000000..9963066d285 --- /dev/null +++ b/graphics/kuickshow/patches/patch-src_imagewindow_cpp @@ -0,0 +1,37 @@ +--- src/imagewindow.cpp.orig Fri May 4 13:12:14 2001 ++++ src/imagewindow.cpp Wed Jun 27 09:51:55 2001 +@@ -42,6 +42,7 @@ + #include + #include + #include ++#include + #include + #include + +@@ -779,13 +780,15 @@ + info.xjustification = 512; // center + info.yjustification = 512; // center + ++ KTempFile tmpFile; ++ tmpFile.setAutoDelete( true ); + QString tmpName; + if ( ofile ) // user just wants to print to file + tmpName = p.outputFileName(); + else +- tmpName = QString::fromLocal8Bit( tmpnam( NULL )); ++ tmpName = tmpFile.name(); + +- char *file = (char *) tmpName.data(); ++ char *file = (char *) QFile::encodeName( tmpName ).data(); + if ( Imlib_save_image( id, kuim->imlibImage(), file, &info ) == 0 ) + { + debug(i18n("KuickShow: Couldn't print image.")); // FIXME, show messagebox +@@ -799,7 +802,7 @@ + QString cmdline = printCmd + " -P\"" + printerName + "\" " + tmpName; + debug("KuickShow: print commandline: %s", cmdline.data() ); + for ( int i=0; i < copies; i++ ) // FIXME: better use a switch in lpr... +- system( cmdline.data() ); ++ system( QFile::encodeName( cmdline).data() ); + } + + diff --git a/graphics/kuickshow/pkg/DESCR b/graphics/kuickshow/pkg/DESCR new file mode 100644 index 00000000000..6e0c0b39231 --- /dev/null +++ b/graphics/kuickshow/pkg/DESCR @@ -0,0 +1,7 @@ +KuickShow is an image browser/viewer with a nice filebrowser to select +images to be shown, slideshow support and the ability to display the +following image formats: jpg, gif, tiff, png, bmp, psd, xpm, xbm, pbm +and eim. Images can be displayed either in their own window, as large +as the image, or fullscreen (which shrinks images too large to display). + +WWW: ${HOMEPAGE} diff --git a/graphics/kuickshow/pkg/PFRAG.shared b/graphics/kuickshow/pkg/PFRAG.shared new file mode 100644 index 00000000000..85720067613 --- /dev/null +++ b/graphics/kuickshow/pkg/PFRAG.shared @@ -0,0 +1,3 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2001/06/27 02:37:16 kevlo Exp $ +lib/libkuickshow.so.0.0 +DYNLIBDIR(%B) diff --git a/graphics/kuickshow/pkg/PLIST b/graphics/kuickshow/pkg/PLIST new file mode 100644 index 00000000000..c4ed2bc0496 --- /dev/null +++ b/graphics/kuickshow/pkg/PLIST @@ -0,0 +1,42 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2001/06/27 02:37:16 kevlo Exp $ +bin/kuickshow +%%SHARED%% +share/applnk/Graphics/kuickshow.desktop +share/apps/kuickshow/im_palette.pal +share/apps/kuickshow/pics/calibrate.png +share/apps/kuickshow/pics/eqx2.png +share/apps/kuickshow/pics/handcursor.png +share/apps/kuickshow/pics/imageviewer-medium.png +share/apps/kuickshow/pics/imageviewer-small.png +share/apps/kuickshow/pics/kuickshow-day.jpg +share/apps/kuickshow/pics/kuickshow-night.jpg +share/apps/kuickshow/pics/logo.png +share/doc/HTML/de/kuickshow/ChangeLog +share/doc/HTML/de/kuickshow/index.html +share/doc/HTML/de/kuickshow/logo.gif +share/doc/HTML/en/kuickshow/ChangeLog +share/doc/HTML/en/kuickshow/index.html +share/doc/HTML/en/kuickshow/logo.gif +share/icons/locolor/16x16/apps/kuickshow.png +share/icons/locolor/32x32/apps/kuickshow.png +share/locale/br/LC_MESSAGES/kuickshow.mo +share/locale/cs/LC_MESSAGES/kuickshow.mo +share/locale/da/LC_MESSAGES/kuickshow.mo +share/locale/de/LC_MESSAGES/kuickshow.mo +share/locale/es/LC_MESSAGES/kuickshow.mo +share/locale/fr/LC_MESSAGES/kuickshow.mo +share/locale/hr/LC_MESSAGES/kuickshow.mo +share/locale/hu/LC_MESSAGES/kuickshow.mo +share/locale/nl/LC_MESSAGES/kuickshow.mo +share/locale/no/LC_MESSAGES/kuickshow.mo +share/locale/pl/LC_MESSAGES/kuickshow.mo +share/locale/po/LC_MESSAGES/kuickshow.mo +share/locale/pt_BR/LC_MESSAGES/kuickshow.mo +share/locale/ro/LC_MESSAGES/kuickshow.mo +share/locale/sv/LC_MESSAGES/kuickshow.mo +share/locale/uk/LC_MESSAGES/kuickshow.mo +@dirrm share/doc/HTML/en/kuickshow +@dirrm share/doc/HTML/de/kuickshow +@dirrm share/doc/HTML/de +@dirrm share/apps/kuickshow/pics +@dirrm share/apps/kuickshow