Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 May 1999 19:07:17 +0900 (JST)
From:      KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/11425: New ports: ja-img-1.2b2(japanese/libimg)
Message-ID:  <199905011007.TAA26863@pis.toba-cmt.ac.jp>

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

>Number:         11425
>Category:       ports
>Synopsis:       New ports: ja-img-1.2b2(japanese/libimg)
>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:   Sat May  1 03:10:02 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     KIRIYAMA Kazuhiko
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Toba National College of Maritime Technology.
	Department of Electronic Mechanical Engineering
>Environment:
>Description:
Japanese libimg port has been ported. This port is a japanese version of graphics/libimg.

I put the port with shar `find libimg` below "Fix:"
>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:
#
#	libimg/
#	libimg/files/
#	libimg/files/md5
#	libimg/scripts/
#	libimg/scripts/post-configure
#	libimg/pkg/
#	libimg/pkg/COMMENT
#	libimg/pkg/DESCR
#	libimg/pkg/PLIST
#	libimg/patches/
#	libimg/patches/patch-aa
#	libimg/patches/patch-ab
#	libimg/Makefile
#
echo c - libimg/
mkdir -p libimg/ > /dev/null 2>&1
echo c - libimg/files/
mkdir -p libimg/files/ > /dev/null 2>&1
echo x - libimg/files/md5
sed 's/^X//' >libimg/files/md5 << 'END-of-libimg/files/md5'
XMD5 (img1.2b2.tar.gz) = 147eeae6b1da0866329ba26ff21982a5
END-of-libimg/files/md5
echo c - libimg/scripts/
mkdir -p libimg/scripts/ > /dev/null 2>&1
echo x - libimg/scripts/post-configure
sed 's/^X//' >libimg/scripts/post-configure << 'END-of-libimg/scripts/post-configure'
X#!/bin/sh
X
Xdirs="."
X
Xfor d in ${dirs}; do
X    perl -pi -e '
X	s@^(prefix[ \t]*=).*$@$1\${PREFIX}@;
X	s@^(exec_prefix[ \t]*=).*$@$1\${PREFIX}@;
X	    ' ${WRKSRC}/${d}/Makefile
Xdone
END-of-libimg/scripts/post-configure
echo c - libimg/pkg/
mkdir -p libimg/pkg/ > /dev/null 2>&1
echo x - libimg/pkg/COMMENT
sed 's/^X//' >libimg/pkg/COMMENT << 'END-of-libimg/pkg/COMMENT'
XEnhanced Tk, adding support for many other Image formats:BMP,XBM,XPM,... 
END-of-libimg/pkg/COMMENT
echo x - libimg/pkg/DESCR
sed 's/^X//' >libimg/pkg/DESCR << 'END-of-libimg/pkg/DESCR'
X"Img" package enhances Tk, adding support for many other Image formats:
XBMP, XBM, XPM, GIF (with transparency), PNG, JPEG, TIFF and
Xpostscript. This version only works with Tcl/Tk 8.0 or higher
X(tested up to Tk8.1b2). If you are using Tk4.2 or lower,
Xstick with Img1.1.4 (which is still available).
X
XThe most recent info is always available at:
X	http://home.wxs.nl/~nijtmans/img.html
X
XNote that both graphics/img and japanese/img are mutually exclusive and 
XSHOULD NOT BE INSTALLED SIMULTANEOUSLY!
X
X-KIRIYAMA Kazuhiko
X<kiri@pis.toba-cmt.ac.jp>
END-of-libimg/pkg/DESCR
echo x - libimg/pkg/PLIST
sed 's/^X//' >libimg/pkg/PLIST << 'END-of-libimg/pkg/PLIST'
Xlib/Img1.2/libimg12.so
Xlib/Img1.2/libimg12.so.1
X@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %D/lib/Img1.2
X@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
Xlib/Img1.2/pkgIndex.tcl
Xshare/doc/img/ANNOUNCE
Xshare/doc/img/README
Xshare/doc/img/changes
X@dirrm lib/Img1.2
X@dirrm share/doc/img
END-of-libimg/pkg/PLIST
echo c - libimg/patches/
mkdir -p libimg/patches/ > /dev/null 2>&1
echo x - libimg/patches/patch-aa
sed 's/^X//' >libimg/patches/patch-aa << 'END-of-libimg/patches/patch-aa'
X--- configure.in.orig	Fri Nov 20 15:14:25 1998
X+++ configure.in	Thu Mar 25 16:30:20 1999
X@@ -111,6 +111,8 @@
X     TCL_INC_DIR=${TCL_EXEC_PREFIX}/include
X elif test -d ${TCL_EXEC_PREFIX}/include -a -f ${TCL_EXEC_PREFIX}/include/tcl.h; then
X     TCL_INC_DIR=${TCL_EXEC_PREFIX}/include
X+elif test -d ${TCL_EXEC_PREFIX}/include/tcl${TCL_VERSION} -a -f ${TCL_EXEC_PREFIX}/include/tcl${TCL_VERSION}/tcl.h; then
X+    TCL_INC_DIR=${TCL_EXEC_PREFIX}/include/tcl${TCL_VERSION}
X else
X     TCL_INC_DIR=$prefix/include
X fi
X@@ -210,6 +212,8 @@
X     TK_INC_DIR=${TK_EXEC_PREFIX}/include
X elif test -d ${TK_EXEC_PREFIX}/include -a -f ${TK_EXEC_PREFIX}/include/tk.h; then
X     TK_INC_DIR=${TK_EXEC_PREFIX}/include
X+elif test -d ${TK_EXEC_PREFIX}/include/tk${TK_VERSION} -a -f ${TK_EXEC_PREFIX}/include/tk${TK_VERSION}/tk.h; then
X+    TK_INC_DIR=${TK_EXEC_PREFIX}/include/tk${TK_VERSION}
X else
X     TK_INC_DIR=$prefix/include
X fi
END-of-libimg/patches/patch-aa
echo x - libimg/patches/patch-ab
sed 's/^X//' >libimg/patches/patch-ab << 'END-of-libimg/patches/patch-ab'
X--- Makefile.in~	Sun Mar  7 17:35:11 1999
X+++ Makefile.in	Sat Mar 27 20:05:22 1999
X@@ -221,7 +221,8 @@
X 			-DZ_LIB_NAME=\"$(IMG_FULL_PATH)$(Z_LIB_FILE)\"		\
X 			-DPNG_LIB_NAME=\"$(IMG_FULL_PATH)$(PNG_LIB_FILE)\"	\
X 			-DJPEG_LIB_NAME=\"$(IMG_FULL_PATH)$(JPEG_LIB_FILE)\"	\
X-			-DTIFF_LIB_NAME=\"$(IMG_FULL_PATH)$(TIFF_LIB_FILE)\"
X+			-DTIFF_LIB_NAME=\"$(IMG_FULL_PATH)$(TIFF_LIB_FILE)\"	\
X+			-I$(TCL_INC_DIR)
X 
X #		fundamentals of this library
X SOURCES	=	imgInit.c imgObj.c imgUtil.c imgPmap.c imgUnixPmap.c \
END-of-libimg/patches/patch-ab
echo x - libimg/Makefile
sed 's/^X//' >libimg/Makefile << 'END-of-libimg/Makefile'
X# New ports collection makefile for:	img
X# Version required:	1.2b2
X# Date created:		25 March 1999
X# Whom:			KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
X#
X# $Id$
X#
X
XDISTNAME=	img1.2b2
XPKGNAME=	ja-img-1.2b2
XCATEGORIES=	graphics tk80 japanese
XMASTER_SITES=	ftp://ftp.neosoft.com/pub/tcl/sorted/packages-8.0/graphics/Img/1.2/ \
X		http://www.aaa-int.or.jp/~jfactory/TkStep/dist/
X
XMAINTAINER=	kiri@pis.toba-cmt.ac.jp
X
XBUILD_DEPENDS=	${PREFIX}/lib/tcl8.0jp/tclIndex:${PORTSDIR}/japanese/tcl80 \
X		${PREFIX}/lib/tk8.0jp/tk.tcl:${PORTSDIR}/japanese/tk80
X
XUSE_AUTOCONF=	yes
XHAS_CONFIGURE=	yes
XCONFIGURE_ARGS=	--with-tcl=${PREFIX}/lib/tcl${TCLVERSION}jp \
X		--with-tk=${PREFIX}/lib/tk${TKVERSION}jp \
X		--disable-stubs
X
XTCLVERSION=	8.0
XTKVERSION=	8.0
XPORTDOCDIR=	${PREFIX}/share/doc/img
X
Xpre-configure:
X	chmod 755 ${WRKSRC}/configure
X
X.include <bsd.port.pre.mk>
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PORTDOCDIR}
X	(cd ${WRKSRC}; ${INSTALL_DATA} ANNOUNCE README changes ${PORTDOCDIR})
X.endif
X.if ${PORTOBJFORMAT} == "aout"
X	${LN} -sf libimg12.so.1.0 ${PREFIX}/lib/Img1.2/libimg12.so
X.else
X	${LN} -sf libimg12.so.1 ${PREFIX}/lib/Img1.2/libimg12.so
X.endif
X	${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib/Img1.2
X
X.include <bsd.port.post.mk>
END-of-libimg/Makefile
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?199905011007.TAA26863>