diff options
-rw-r--r-- | japanese/libimg/Makefile | 47 | ||||
-rw-r--r-- | japanese/libimg/distinfo | 1 | ||||
-rw-r--r-- | japanese/libimg/files/patch-aa | 20 | ||||
-rw-r--r-- | japanese/libimg/files/patch-ab | 12 | ||||
-rw-r--r-- | japanese/libimg/pkg-comment | 1 | ||||
-rw-r--r-- | japanese/libimg/pkg-descr | 14 | ||||
-rw-r--r-- | japanese/libimg/pkg-plist | 10 | ||||
-rw-r--r-- | japanese/libimg/scripts/post-configure | 10 |
8 files changed, 115 insertions, 0 deletions
diff --git a/japanese/libimg/Makefile b/japanese/libimg/Makefile new file mode 100644 index 000000000000..6c3e121b8fe0 --- /dev/null +++ b/japanese/libimg/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: img +# Version required: 1.2b2 +# Date created: 25 March 1999 +# Whom: KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp> +# +# $Id$ +# + +DISTNAME= img1.2b2 +PKGNAME= ja-img-1.2b2 +CATEGORIES= graphics tk80 japanese +MASTER_SITES= ftp://ftp.neosoft.com/pub/tcl/sorted/packages-8.0/graphics/Img/1.2/ \ + http://www.aaa-int.or.jp/~jfactory/TkStep/dist/ + +MAINTAINER= kiri@pis.toba-cmt.ac.jp + +BUILD_DEPENDS= ${PREFIX}/lib/tcl8.0jp/tclIndex:${PORTSDIR}/japanese/tcl80 \ + ${PREFIX}/lib/tk8.0jp/tk.tcl:${PORTSDIR}/japanese/tk80 + +USE_AUTOCONF= yes +HAS_CONFIGURE= yes +CONFIGURE_ARGS= --with-tcl=${PREFIX}/lib/tcl${TCLVERSION}jp \ + --with-tk=${PREFIX}/lib/tk${TKVERSION}jp \ + --disable-stubs + +TCLVERSION= 8.0 +TKVERSION= 8.0 +PORTDOCDIR= ${PREFIX}/share/doc/img + +pre-configure: + chmod 755 ${WRKSRC}/configure + +.include <bsd.port.pre.mk> + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${PORTDOCDIR} + (cd ${WRKSRC}; ${INSTALL_DATA} ANNOUNCE README changes ${PORTDOCDIR}) +.endif +.if ${PORTOBJFORMAT} == "aout" + ${LN} -sf libimg12.so.1.0 ${PREFIX}/lib/Img1.2/libimg12.so +.else + ${LN} -sf libimg12.so.1 ${PREFIX}/lib/Img1.2/libimg12.so +.endif + ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib/Img1.2 + +.include <bsd.port.post.mk> diff --git a/japanese/libimg/distinfo b/japanese/libimg/distinfo new file mode 100644 index 000000000000..a0060578afec --- /dev/null +++ b/japanese/libimg/distinfo @@ -0,0 +1 @@ +MD5 (img1.2b2.tar.gz) = 147eeae6b1da0866329ba26ff21982a5 diff --git a/japanese/libimg/files/patch-aa b/japanese/libimg/files/patch-aa new file mode 100644 index 000000000000..488b3bf3cbed --- /dev/null +++ b/japanese/libimg/files/patch-aa @@ -0,0 +1,20 @@ +--- configure.in.orig Fri Nov 20 15:14:25 1998 ++++ configure.in Thu Mar 25 16:30:20 1999 +@@ -111,6 +111,8 @@ + TCL_INC_DIR=${TCL_EXEC_PREFIX}/include + elif test -d ${TCL_EXEC_PREFIX}/include -a -f ${TCL_EXEC_PREFIX}/include/tcl.h; then + TCL_INC_DIR=${TCL_EXEC_PREFIX}/include ++elif test -d ${TCL_EXEC_PREFIX}/include/tcl${TCL_VERSION} -a -f ${TCL_EXEC_PREFIX}/include/tcl${TCL_VERSION}/tcl.h; then ++ TCL_INC_DIR=${TCL_EXEC_PREFIX}/include/tcl${TCL_VERSION} + else + TCL_INC_DIR=$prefix/include + fi +@@ -210,6 +212,8 @@ + TK_INC_DIR=${TK_EXEC_PREFIX}/include + elif test -d ${TK_EXEC_PREFIX}/include -a -f ${TK_EXEC_PREFIX}/include/tk.h; then + TK_INC_DIR=${TK_EXEC_PREFIX}/include ++elif test -d ${TK_EXEC_PREFIX}/include/tk${TK_VERSION} -a -f ${TK_EXEC_PREFIX}/include/tk${TK_VERSION}/tk.h; then ++ TK_INC_DIR=${TK_EXEC_PREFIX}/include/tk${TK_VERSION} + else + TK_INC_DIR=$prefix/include + fi diff --git a/japanese/libimg/files/patch-ab b/japanese/libimg/files/patch-ab new file mode 100644 index 000000000000..2e9d79be3869 --- /dev/null +++ b/japanese/libimg/files/patch-ab @@ -0,0 +1,12 @@ +--- Makefile.in~ Sun Mar 7 17:35:11 1999 ++++ Makefile.in Sat Mar 27 20:05:22 1999 +@@ -221,7 +221,8 @@ + -DZ_LIB_NAME=\"$(IMG_FULL_PATH)$(Z_LIB_FILE)\" \ + -DPNG_LIB_NAME=\"$(IMG_FULL_PATH)$(PNG_LIB_FILE)\" \ + -DJPEG_LIB_NAME=\"$(IMG_FULL_PATH)$(JPEG_LIB_FILE)\" \ +- -DTIFF_LIB_NAME=\"$(IMG_FULL_PATH)$(TIFF_LIB_FILE)\" ++ -DTIFF_LIB_NAME=\"$(IMG_FULL_PATH)$(TIFF_LIB_FILE)\" \ ++ -I$(TCL_INC_DIR) + + # fundamentals of this library + SOURCES = imgInit.c imgObj.c imgUtil.c imgPmap.c imgUnixPmap.c \ diff --git a/japanese/libimg/pkg-comment b/japanese/libimg/pkg-comment new file mode 100644 index 000000000000..03831b53a4be --- /dev/null +++ b/japanese/libimg/pkg-comment @@ -0,0 +1 @@ +Enhanced Tk, adding support for many other Image formats:BMP,XBM,XPM,... diff --git a/japanese/libimg/pkg-descr b/japanese/libimg/pkg-descr new file mode 100644 index 000000000000..95a1c231aa3d --- /dev/null +++ b/japanese/libimg/pkg-descr @@ -0,0 +1,14 @@ +"Img" package enhances Tk, adding support for many other Image formats: +BMP, XBM, XPM, GIF (with transparency), PNG, JPEG, TIFF and +postscript. This version only works with Tcl/Tk 8.0 or higher +(tested up to Tk8.1b2). If you are using Tk4.2 or lower, +stick with Img1.1.4 (which is still available). + +The most recent info is always available at: + http://home.wxs.nl/~nijtmans/img.html + +Note that both graphics/img and japanese/img are mutually exclusive and +SHOULD NOT BE INSTALLED SIMULTANEOUSLY! + +-KIRIYAMA Kazuhiko +<kiri@pis.toba-cmt.ac.jp> diff --git a/japanese/libimg/pkg-plist b/japanese/libimg/pkg-plist new file mode 100644 index 000000000000..0f3fff0e3b27 --- /dev/null +++ b/japanese/libimg/pkg-plist @@ -0,0 +1,10 @@ +lib/Img1.2/libimg12.so +lib/Img1.2/libimg12.so.1 +@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %D/lib/Img1.2 +@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R +lib/Img1.2/pkgIndex.tcl +share/doc/img/ANNOUNCE +share/doc/img/README +share/doc/img/changes +@dirrm lib/Img1.2 +@dirrm share/doc/img diff --git a/japanese/libimg/scripts/post-configure b/japanese/libimg/scripts/post-configure new file mode 100644 index 000000000000..fe652c3aebf8 --- /dev/null +++ b/japanese/libimg/scripts/post-configure @@ -0,0 +1,10 @@ +#!/bin/sh + +dirs="." + +for d in ${dirs}; do + perl -pi -e ' + s@^(prefix[ \t]*=).*$@$1\${PREFIX}@; + s@^(exec_prefix[ \t]*=).*$@$1\${PREFIX}@; + ' ${WRKSRC}/${d}/Makefile +done |