summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorwiz <wiz>2000-02-27 18:33:38 +0000
committerwiz <wiz>2000-02-27 18:33:38 +0000
commitb76d983f7d296fb52934605c5d71fe521cd73465 (patch)
treedbea0f8546ff55d7fadbb8f5f706ccf16ff5c30c /graphics
parent9bcf4fa5725083dbd2d9b0d569a56a44af63138e (diff)
downloadpkgsrc-b76d983f7d296fb52934605c5d71fe521cd73465.tar.gz
Initial import of libwmf, a library to read WMF (Windows Meta Files), with
viewer.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/libwmf/Makefile34
-rw-r--r--graphics/libwmf/files/md53
-rw-r--r--graphics/libwmf/files/patch-sum3
-rw-r--r--graphics/libwmf/patches/patch-aa92
-rw-r--r--graphics/libwmf/pkg/COMMENT1
-rw-r--r--graphics/libwmf/pkg/DESCR8
-rw-r--r--graphics/libwmf/pkg/INSTALL14
-rw-r--r--graphics/libwmf/pkg/PLIST110
8 files changed, 265 insertions, 0 deletions
diff --git a/graphics/libwmf/Makefile b/graphics/libwmf/Makefile
new file mode 100644
index 00000000000..008bb7c8744
--- /dev/null
+++ b/graphics/libwmf/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/02/27 18:33:38 wiz Exp $
+#
+
+DISTNAME= libwmf-0.1.17
+CATEGORIES= graphics devel
+MASTER_SITES= http://www.csn.ul.ie/~caolan/publink/libwmf/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.csn.ul.ie/~caolan/docs/libwmf.html
+
+DEPENDS+= xpm-3.4k:../../graphics/xpm
+DEPENDS+= png>=1.0.3:../../graphics/png
+DEPENDS+= freetype-*:../../graphics/freetype
+
+# uses own gd, which has some extra functionality
+CONFLICTS+= gd-1.7.3:../../graphics/gd
+
+CONFIGURE_ARGS+= --with-png="${LOCALBASE}"
+CONFIGURE_ARGS+= --with-ttf="${LOCALBASE}"
+
+WRKSRC= ${WRKDIR}/libwmf
+GNU_CONFIGURE= YES
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libwmf
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libwmf/pics
+ cd ${WRKSRC} && ${INSTALL_DATA} doc/*.html doc/*.gif \
+ COPYING CREDITS README ${PREFIX}/share/doc/libwmf
+ ${INSTALL_DATA} ${WRKSRC}/doc/pics/weave.jpg \
+ ${PREFIX}/share/doc/libwmf/pics
+ ${SETENV} PKG_PREFIX=${PREFIX} \
+ ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/libwmf/files/md5 b/graphics/libwmf/files/md5
new file mode 100644
index 00000000000..faa789fb424
--- /dev/null
+++ b/graphics/libwmf/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/02/27 18:33:39 wiz Exp $
+
+MD5 (libwmf-0.1.17.tar.gz) = 7ade0bda9c9ba343481a0f272d302c7d
diff --git a/graphics/libwmf/files/patch-sum b/graphics/libwmf/files/patch-sum
new file mode 100644
index 00000000000..0069cb2a519
--- /dev/null
+++ b/graphics/libwmf/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/02/27 18:33:39 wiz Exp $
+
+MD5 (patch-aa) = 9a1be67c8ae76fd3ce3dd582be69bd87
diff --git a/graphics/libwmf/patches/patch-aa b/graphics/libwmf/patches/patch-aa
new file mode 100644
index 00000000000..33d6ad48aec
--- /dev/null
+++ b/graphics/libwmf/patches/patch-aa
@@ -0,0 +1,92 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/02/27 18:33:39 wiz Exp $
+
+--- ./configure.orig Thu Dec 16 16:22:34 1999
++++ ./configure Sun Feb 27 15:44:21 2000
+@@ -3606,76 +3606,28 @@
+ echo "configure:3607: checking for PNG support ..." >&5
+ failed=0;
+ passed=0;
+- ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
+-echo $ac_n "checking for png.h""... $ac_c" 1>&6
+-echo "configure:3612: checking for png.h" >&5
+-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+- echo $ac_n "(cached) $ac_c" 1>&6
+-else
+- cat > conftest.$ac_ext <<EOF
+-#line 3617 "configure"
+-#include "confdefs.h"
+-#include <png.h>
+-EOF
+-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:3622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+-if test -z "$ac_err"; then
+- rm -rf conftest*
+- eval "ac_cv_header_$ac_safe=yes"
+-else
+- echo "$ac_err" >&5
+- echo "configure: failed program was:" >&5
+- cat conftest.$ac_ext >&5
+- rm -rf conftest*
+- eval "ac_cv_header_$ac_safe=no"
+-fi
+-rm -f conftest*
+-fi
+-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+- echo "$ac_t""yes" 1>&6
+- passed=`expr $passed + 1`
+-else
+- echo "$ac_t""no" 1>&6
+-failed=`expr $failed + 1`
+-fi
+
+- ac_safe=`echo "pngconf.h" | sed 'y%./+-%__p_%'`
+-echo $ac_n "checking for pngconf.h""... $ac_c" 1>&6
+-echo "configure:3646: checking for pngconf.h" >&5
+-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+- echo $ac_n "(cached) $ac_c" 1>&6
+-else
+- cat > conftest.$ac_ext <<EOF
+-#line 3651 "configure"
++ cat > conftest.$ac_ext <<EOF
++#line 3612 "configure"
+ #include "confdefs.h"
++#include <png.h>
+ #include <pngconf.h>
++int main() {
++
++; return 0; }
+ EOF
+-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:3656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+-if test -z "$ac_err"; then
++if { (eval echo configure:3620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+- eval "ac_cv_header_$ac_safe=yes"
++ passed=`expr $passed + 1`
+ else
+- echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+- eval "ac_cv_header_$ac_safe=no"
++ failed=`expr $failed + 1`
+ fi
+-rm -f conftest*
+-fi
+-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+- echo "$ac_t""yes" 1>&6
+- passed=`expr $passed + 1`
+-else
+- echo "$ac_t""no" 1>&6
+-failed=`expr $failed + 1`
+-fi
+-
++rm -f conftest*;
+ echo $ac_n "checking for png_info_init in -lpng""... $ac_c" 1>&6
+-echo "configure:3679: checking for png_info_init in -lpng" >&5
++echo "configure:3631: checking for png_info_init in -lpng" >&5
+ ac_lib_var=`echo png'_'png_info_init | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
diff --git a/graphics/libwmf/pkg/COMMENT b/graphics/libwmf/pkg/COMMENT
new file mode 100644
index 00000000000..91a62396d1d
--- /dev/null
+++ b/graphics/libwmf/pkg/COMMENT
@@ -0,0 +1 @@
+library for reading and converting WMF (Windows Meta Files)
diff --git a/graphics/libwmf/pkg/DESCR b/graphics/libwmf/pkg/DESCR
new file mode 100644
index 00000000000..45f9656fbe7
--- /dev/null
+++ b/graphics/libwmf/pkg/DESCR
@@ -0,0 +1,8 @@
+libwmf is a library for unix like machines that can convert wmf
+(Windows Meta Files) files into other formats. Currently it supports
+a gd binding to convert to png, and an X one to draw direct to an X
+window or pixmap. It also comes with a program to display wmfs: xwmf.
+
+Without a truetype font server and the standard windows fonts the X
+binding might render text in a different font than would appear under
+windows natively (this is a runtime issue for the xwmf program).
diff --git a/graphics/libwmf/pkg/INSTALL b/graphics/libwmf/pkg/INSTALL
new file mode 100644
index 00000000000..fe8b99340fb
--- /dev/null
+++ b/graphics/libwmf/pkg/INSTALL
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# $NetBSD: INSTALL,v 1.1.1.1 2000/02/27 18:33:38 wiz Exp $
+
+if [ "$2" = POST-INSTALL ]
+then
+ echo "--------------------------------------------------------"
+ echo For getting the most out of libwmf, consider getting
+ echo the default Windows TrueType fonts and installing xfstt,
+ echo a free TrueType font server for X11.
+ echo "--------------------------------------------------------"
+fi
+
+exit 0
diff --git a/graphics/libwmf/pkg/PLIST b/graphics/libwmf/pkg/PLIST
new file mode 100644
index 00000000000..fb07b87f5dc
--- /dev/null
+++ b/graphics/libwmf/pkg/PLIST
@@ -0,0 +1,110 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/02/27 18:33:38 wiz Exp $
+bin/bdftogd
+bin/gd2copypal
+bin/gd2topng
+bin/gdparttopng
+bin/gdtopng
+bin/pngtogd
+bin/pngtogd2
+bin/webpng
+bin/wmftofig
+bin/wmftopng
+bin/xwmf
+include/Xwmfapi.h
+include/dibtoxpm.h
+include/gd.h
+include/gd_io.h
+include/gdcache.h
+include/gdfontg.h
+include/gdfontl.h
+include/gdfontmb.h
+include/gdfonts.h
+include/gdfontt.h
+include/gdwmfapi.h
+include/wmfapi.h
+lib/libXwmf.a
+lib/libdib.a
+lib/libgdwmf.a
+lib/libwmf.a
+lib/libxfig.a
+lib/libxfwmf.a
+lib/libxgd.a
+share/doc/libwmf/2.html
+share/doc/libwmf/Arc.html
+share/doc/libwmf/BitBlt.html
+share/doc/libwmf/Bmpfrmat.html
+share/doc/libwmf/COPYING
+share/doc/libwmf/CREDITS
+share/doc/libwmf/Chord.html
+share/doc/libwmf/CreateBrushIndirect.html
+share/doc/libwmf/CreatePenIndirect.html
+share/doc/libwmf/CreateRegion.html
+share/doc/libwmf/DeleteObject.html
+share/doc/libwmf/DibBitBlt.html
+share/doc/libwmf/DibCreatePatternBrush.html
+share/doc/libwmf/DibStretchBlt.html
+share/doc/libwmf/Ellipse.html
+share/doc/libwmf/ExcludeClipRect.html
+share/doc/libwmf/ExtFloodFill.html
+share/doc/libwmf/ExtTextOut.html
+share/doc/libwmf/FillRgn.html
+share/doc/libwmf/FloodFill.html
+share/doc/libwmf/FrameRgn.html
+share/doc/libwmf/IntersectClipRect.html
+share/doc/libwmf/InvertRgn.html
+share/doc/libwmf/LineTo.html
+share/doc/libwmf/MoveTo.html
+share/doc/libwmf/OffsetClipRgn.html
+share/doc/libwmf/OffsetViewportOrg.html
+share/doc/libwmf/OffsetWindowOrg.html
+share/doc/libwmf/PaintRgn.html
+share/doc/libwmf/PatBlt.html
+share/doc/libwmf/Pie.html
+share/doc/libwmf/PolyPolygon.html
+share/doc/libwmf/Polygon.html
+share/doc/libwmf/Polyline.html
+share/doc/libwmf/README
+share/doc/libwmf/Rectangle.html
+share/doc/libwmf/RestoreDC.html
+share/doc/libwmf/RoundRect.html
+share/doc/libwmf/SaveDC.html
+share/doc/libwmf/ScaleViewportExt.html
+share/doc/libwmf/ScaleWindowExt.html
+share/doc/libwmf/SelectClipRgn.html
+share/doc/libwmf/SelectObject.html
+share/doc/libwmf/SetBkColor.html
+share/doc/libwmf/SetBkMode.html
+share/doc/libwmf/SetDIBitsToDevice.html
+share/doc/libwmf/SetMapMode.html
+share/doc/libwmf/SetMapperFlags.html
+share/doc/libwmf/SetPixel.html
+share/doc/libwmf/SetPolyFillMode.html
+share/doc/libwmf/SetROP2.html
+share/doc/libwmf/SetStretchBltMode.html
+share/doc/libwmf/SetTextAlign.html
+share/doc/libwmf/SetTextCharacterExtra.html
+share/doc/libwmf/SetTextColor.html
+share/doc/libwmf/SetTextJustification.html
+share/doc/libwmf/SetViewportExt.html
+share/doc/libwmf/SetViewportOrg.html
+share/doc/libwmf/SetWindowExt.html
+share/doc/libwmf/SetWindowOrg.html
+share/doc/libwmf/TextOut.html
+share/doc/libwmf/dibs.html
+share/doc/libwmf/esc.html
+share/doc/libwmf/index.html
+share/doc/libwmf/mapmode.html
+share/doc/libwmf/msmeta01.gif
+share/doc/libwmf/msmeta02.gif
+share/doc/libwmf/msmeta03.gif
+share/doc/libwmf/msmeta04.gif
+share/doc/libwmf/ora-clp.html
+share/doc/libwmf/ora-wmf.html
+share/doc/libwmf/pics/weave.jpg
+share/doc/libwmf/rop.html
+share/doc/libwmf/support.html
+share/doc/libwmf/support2.html
+share/doc/libwmf/template.html
+share/doc/libwmf/unknown.html
+@dirrm share/doc/libwmf/pics
+@dirrm share/doc/libwmf