Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Nov 2000 11:39:38 -0500 (EST)
From:      Mikhail Teterin <mi@aldan.algebra.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        gerard@libmng.com
Subject:   ports/22547: new port: graphics/mng
Message-ID:  <200011021639.eA2Gdco30006@aldan.algebra.com>

next in thread | raw e-mail | index | archive | help

>Number:         22547
>Category:       ports
>Synopsis:       new port: graphics/mng
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 02 08:50:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Mikhail Teterin
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
Virtual Estates, Inc.
>Environment:

>Description:

	This is the port of Multiple-image Network Graphics (MNG)
	reference library. It relies on the recently submitted port
	of graphics/lcms.

	I had to force configure to accept the given directory for
	lcms (see patch-aa). Unpatched configure looks for <lcms/lcms.h>
	in ${PREFIX}/include/lcms, but simply fixing that does not
	help -- it then mistakes cpp's warnings about redefined PACKAGE
	and VERSION for errors and disables use of LCMS.

	Once commited, the qt22 port can be modified to add mng support
	to our Qt libraries.

>How-To-Repeat:

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	.
#	./Makefile
#	./distinfo
#	./pkg-comment
#	./pkg-descr
#	./pkg-plist
#	./files
#	./files/patch-aa
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# New ports collection makefile for:    MNG images library
X# Date created:         Nov 2, 2000
X# Whom:                 mi
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libmng
XPORTVERSION=    0.9.3
XCATEGORIES=     graphics
XMASTER_SITES=   http://www.3-t.com/libmng/download/ \
X		${MASTER_SITE_SOURCEFORGE} \
X		http://www.libmng.com/download/
XMASTER_SITE_SUBDIR=${PORTNAME}
X
XMAINTAINER=     mi@aldan.algebra.com
X
XLIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg \
X		lcms:${PORTSDIR}/graphics/lcms
X
XINSTALLS_SHLIB=	yes
XSHLIB_VER=	0
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS+=--with-jpeg=${LOCALBASE} --with-lcms=${LOCALBASE}
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
XPLIST_SUB=	SHLIB_VER="${SHLIB_VER}"
X
XMAN3=           libmng.3
XMAN5=           mng.5 jng.5
X
Xpost-install:
X	cd ${WRKSRC}/doc/man && ${INSTALL_MAN} ${MAN3} ${PREFIX}/man/man3
X	cd ${WRKSRC}/doc/man && ${INSTALL_MAN} ${MAN5} ${PREFIX}/man/man5
X
X.include <bsd.port.mk>
END-of-./Makefile
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (libmng-0.9.3.tar.gz) = 2fbb9fbfbcd1b649ca645e98d85aabf1
END-of-./distinfo
echo x - ./pkg-comment
sed 's/^X//' >./pkg-comment << 'END-of-./pkg-comment'
XMultiple-image Network Graphics (MNG) reference library
END-of-./pkg-comment
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XThe libmng library supports decoding, displaying, encod ing, and various
Xother manipulations of the  Multiple-image Network Graphics (MNG) format
Ximage files. It uses the zlib(3) compression library, and optionally the
XJPEG library  by the  Independant JPEG Group  (IJG) and/or  lcms (little
Xcms), a color-management library by Marti Maria Saguar.
X
XWWW: http://www.libmng.org/
END-of-./pkg-descr
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
Xinclude/libmng.h
Xinclude/libmng_conf.h
Xinclude/libmng_types.h
Xlib/libmng.a
Xlib/libmng.la
Xlib/libmng.so.%%SHLIB_VER%%
X@exec ln -sf %f %B/libmng.so
X@unexec rm -f %B/libmng.so
END-of-./pkg-plist
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-aa
sed 's/^X//' >./files/patch-aa << 'END-of-./files/patch-aa'
X--- configure	Sun Oct 29 05:02:00 2000
X+++ configure	Thu Nov  2 11:31:45 2000
X@@ -2664,67 +2664,3 @@
X 
X-  ac_safe=`echo "lcms/lcms.h" | sed 'y%./+-%__p_%'`
X-echo $ac_n "checking for lcms/lcms.h""... $ac_c" 1>&6
X-echo "configure:2668: checking for lcms/lcms.h" >&5
X-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
X-  echo $ac_n "(cached) $ac_c" 1>&6
X-else
X-  cat > conftest.$ac_ext <<EOF
X-#line 2673 "configure"
X-#include "confdefs.h"
X-#include <lcms/lcms.h>
X-EOF
X-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
X-{ (eval echo configure:2678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
X-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
X-if test -z "$ac_err"; then
X-  rm -rf conftest*
X-  eval "ac_cv_header_$ac_safe=yes"
X-else
X-  echo "$ac_err" >&5
X-  echo "configure: failed program was:" >&5
X-  cat conftest.$ac_ext >&5
X-  rm -rf conftest*
X-  eval "ac_cv_header_$ac_safe=no"
X-fi
X-rm -f conftest*
X-fi
X-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
X-  echo "$ac_t""yes" 1>&6
X-  echo $ac_n "checking for cmsCreateRGBProfile in -llcms""... $ac_c" 1>&6
X-echo "configure:2695: checking for cmsCreateRGBProfile in -llcms" >&5
X-ac_lib_var=`echo lcms'_'cmsCreateRGBProfile | sed 'y%./+-%__p_%'`
X-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
X-  echo $ac_n "(cached) $ac_c" 1>&6
X-else
X-  ac_save_LIBS="$LIBS"
X-LIBS="-llcms  $LIBS"
X-cat > conftest.$ac_ext <<EOF
X-#line 2703 "configure"
X-#include "confdefs.h"
X-/* Override any gcc2 internal prototype to avoid an error.  */
X-/* We use char because int might match the return type of a gcc2
X-    builtin and then its argument prototype would still apply.  */
X-char cmsCreateRGBProfile();
X-
X-int main() {
X-cmsCreateRGBProfile()
X-; return 0; }
X-EOF
X-if { (eval echo configure:2714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
X-  rm -rf conftest*
X-  eval "ac_cv_lib_$ac_lib_var=yes"
X-else
X-  echo "configure: failed program was:" >&5
X-  cat conftest.$ac_ext >&5
X-  rm -rf conftest*
X-  eval "ac_cv_lib_$ac_lib_var=no"
X-fi
X-rm -f conftest*
X-LIBS="$ac_save_LIBS"
X-
X-fi
X-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
X-  echo "$ac_t""yes" 1>&6
X-  
X-      LIBS="$LIBS -llcms"
X+  LIBS="$LIBS -llcms"
X       cat >> confdefs.h <<\EOF
X@@ -2737,3 +2673,2 @@
X 
X-    
X else
X@@ -2745,13 +2680,2 @@
X fi
X-
X-  
X-else
X-  echo "$ac_t""no" 1>&6
X-fi
X-
X-
X-  test $_restore -eq 1 && CPPFLAGS=$_cppflags LDFLAGS=$_ldflags
X-
X-fi
X-
X 
END-of-./files/patch-aa
exit

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011021639.eA2Gdco30006>