aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorTrevor Johnson <trevor@FreeBSD.org>2000-11-03 17:08:18 +0000
committerTrevor Johnson <trevor@FreeBSD.org>2000-11-03 17:08:18 +0000
commite2b43ed65d6042fe6dbf784de400afc1797c34b4 (patch)
treecf2d4c11b509c526ae4ef42a445b3477e3f7672a /graphics
parent2e7e8d407fc461ddbb5a7197477ac3c1351904c9 (diff)
downloadports-e2b43ed65d6042fe6dbf784de400afc1797c34b4.tar.gz
ports-e2b43ed65d6042fe6dbf784de400afc1797c34b4.zip
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/libmng/Makefile37
-rw-r--r--graphics/libmng/distinfo1
-rw-r--r--graphics/libmng/files/patch-aa89
-rw-r--r--graphics/libmng/pkg-comment1
-rw-r--r--graphics/libmng/pkg-descr10
-rw-r--r--graphics/libmng/pkg-plist8
7 files changed, 147 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 38873cfa57c1..7dfd1e2cbf8f 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -99,6 +99,7 @@
SUBDIR += libflash
SUBDIR += libggi
SUBDIR += libimg
+ SUBDIR += libmng
SUBDIR += libmorph
SUBDIR += libungif
SUBDIR += libwmf
diff --git a/graphics/libmng/Makefile b/graphics/libmng/Makefile
new file mode 100644
index 000000000000..b63f5415c8e1
--- /dev/null
+++ b/graphics/libmng/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: libmng
+# Date created: Nov 2, 2000
+# Whom: Mikhail Teterin <mi@aldan.algebra.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libmng
+PORTVERSION= 0.9.3
+CATEGORIES= graphics
+MASTER_SITES= http://www.3-t.com/libmng/download/ \
+ ${MASTER_SITE_SOURCEFORGE} \
+ http://www.libmng.com/download/
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= mi@aldan.algebra.com
+
+LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
+ lcms:${PORTSDIR}/graphics/lcms
+
+INSTALLS_SHLIB= yes
+SHLIB_VER= 0
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+=--with-jpeg=${LOCALBASE} --with-lcms=${LOCALBASE}
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+PLIST_SUB= SHLIB_VER="${SHLIB_VER}"
+
+MAN3= libmng.3
+MAN5= mng.5 jng.5
+
+post-install:
+ cd ${WRKSRC}/doc/man && ${INSTALL_MAN} ${MAN3} ${PREFIX}/man/man3 \
+ && ${INSTALL_MAN} ${MAN5} ${PREFIX}/man/man5
+
+.include <bsd.port.mk>
diff --git a/graphics/libmng/distinfo b/graphics/libmng/distinfo
new file mode 100644
index 000000000000..ceb87a08e95e
--- /dev/null
+++ b/graphics/libmng/distinfo
@@ -0,0 +1 @@
+MD5 (libmng-0.9.3.tar.gz) = 2fbb9fbfbcd1b649ca645e98d85aabf1
diff --git a/graphics/libmng/files/patch-aa b/graphics/libmng/files/patch-aa
new file mode 100644
index 000000000000..c276b4f557e7
--- /dev/null
+++ b/graphics/libmng/files/patch-aa
@@ -0,0 +1,89 @@
+--- configure Sun Oct 29 05:02:00 2000
++++ configure Thu Nov 2 11:31:45 2000
+@@ -2664,67 +2664,3 @@
+
+- ac_safe=`echo "lcms/lcms.h" | sed 'y%./+-%__p_%'`
+-echo $ac_n "checking for lcms/lcms.h""... $ac_c" 1>&6
+-echo "configure:2668: checking for lcms/lcms.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 2673 "configure"
+-#include "confdefs.h"
+-#include <lcms/lcms.h>
+-EOF
+-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:2678: \"$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
+- echo $ac_n "checking for cmsCreateRGBProfile in -llcms""... $ac_c" 1>&6
+-echo "configure:2695: checking for cmsCreateRGBProfile in -llcms" >&5
+-ac_lib_var=`echo lcms'_'cmsCreateRGBProfile | sed 'y%./+-%__p_%'`
+-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+- echo $ac_n "(cached) $ac_c" 1>&6
+-else
+- ac_save_LIBS="$LIBS"
+-LIBS="-llcms $LIBS"
+-cat > conftest.$ac_ext <<EOF
+-#line 2703 "configure"
+-#include "confdefs.h"
+-/* Override any gcc2 internal prototype to avoid an error. */
+-/* We use char because int might match the return type of a gcc2
+- builtin and then its argument prototype would still apply. */
+-char cmsCreateRGBProfile();
+-
+-int main() {
+-cmsCreateRGBProfile()
+-; return 0; }
+-EOF
+-if { (eval echo configure:2714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+- rm -rf conftest*
+- eval "ac_cv_lib_$ac_lib_var=yes"
+-else
+- echo "configure: failed program was:" >&5
+- cat conftest.$ac_ext >&5
+- rm -rf conftest*
+- eval "ac_cv_lib_$ac_lib_var=no"
+-fi
+-rm -f conftest*
+-LIBS="$ac_save_LIBS"
+-
+-fi
+-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+- echo "$ac_t""yes" 1>&6
+-
+- LIBS="$LIBS -llcms"
++ LIBS="$LIBS -llcms"
+ cat >> confdefs.h <<\EOF
+@@ -2737,3 +2673,2 @@
+
+-
+ else
+@@ -2745,13 +2680,2 @@
+ fi
+-
+-
+-else
+- echo "$ac_t""no" 1>&6
+-fi
+-
+-
+- test $_restore -eq 1 && CPPFLAGS=$_cppflags LDFLAGS=$_ldflags
+-
+-fi
+-
+
diff --git a/graphics/libmng/pkg-comment b/graphics/libmng/pkg-comment
new file mode 100644
index 000000000000..c8040df12c90
--- /dev/null
+++ b/graphics/libmng/pkg-comment
@@ -0,0 +1 @@
+Multiple-image Network Graphics (MNG) reference library
diff --git a/graphics/libmng/pkg-descr b/graphics/libmng/pkg-descr
new file mode 100644
index 000000000000..27c86fd9573b
--- /dev/null
+++ b/graphics/libmng/pkg-descr
@@ -0,0 +1,10 @@
+The libmng library supports decoding, displaying, encoding, and various other
+manipulations of Multiple-image Network Graphics (MNG) format image files. It
+uses the zlib(3) compression library, and optionally the JPEG library by the
+Independant JPEG Group (IJG) and/or lcms (little CMS), a color-management
+library by Marti Maria Saguar.
+
+WWW: http://www.libmng.org/
+
+Mikhail Teterin
+mi@aldan.algebra.com
diff --git a/graphics/libmng/pkg-plist b/graphics/libmng/pkg-plist
new file mode 100644
index 000000000000..0227ebff9539
--- /dev/null
+++ b/graphics/libmng/pkg-plist
@@ -0,0 +1,8 @@
+include/libmng.h
+include/libmng_conf.h
+include/libmng_types.h
+lib/libmng.a
+lib/libmng.la
+lib/libmng.so.%%SHLIB_VER%%
+@exec ln -sf %f %B/libmng.so
+@unexec rm -f %B/libmng.so