Date: Wed, 21 Jul 1999 13:18:08 -0400 (EDT) From: Mikhail Teterin <mi@misha.cisco.com> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/12739: port for the AT: T's DjVu Netscape plug-in Message-ID: <199907211718.NAA08347@misha.cisco.com>
next in thread | raw e-mail | index | archive | help
>Number: 12739 >Category: ports >Synopsis: port for the AT&T's DjVu Netscape plug-in >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jul 21 10:20:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Mikhail Teterin >Release: FreeBSD 3.2-STABLE i386 >Organization: Virtual Estates, Inc. >Environment: >Description: New port. See http://djvu.research.att.com/ for details. The plugin is in binary form only and is of the older version, then those available for other platforms (Solaris, Irix, Windoz). AT&T built it on FreeBSD-2.2.6, but it seems to work fine on 3.2-STABLE with the Communicator 4.61 >How-To-Repeat: Once you install it, go to http://djvu.research.att.com/examples/ to play. >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: # # djvu-plugin # djvu-plugin/Makefile # djvu-plugin/pkg # djvu-plugin/pkg/COMMENT # djvu-plugin/pkg/DESCR # djvu-plugin/patches # djvu-plugin/patches/patch-aa # djvu-plugin/files # djvu-plugin/files/md5 # echo c - djvu-plugin mkdir -p djvu-plugin > /dev/null 2>&1 echo x - djvu-plugin/Makefile sed 's/^X//' >djvu-plugin/Makefile << 'END-of-djvu-plugin/Makefile' X# New ports collection makefile for: DjVu-plugin X# Version required: 0.9 X# Date created: 21 Jul 1999 X# Whom: Mikhail Teterin <mi@aldan.algebra.com> X# X# $Id$ X# X XDISTNAME= npdjvu-freebsd XPKGNAME= npdjvu-freebsd-0.9 XCATEGORIES= www XMASTER_SITES= http://www.djvu.att.com/download/plugin/ X XMAINTAINER= mi@aldan.algebra.com X XBUILD_DEPENDS= netscape:${PORTSDIR}/www/netscape46-communicator X X.if !defined(MOZILLA_HOME) XMOZILLA_HOME != exec() { }; . `which netscape`; echo $${MOZILLA_HOME} X#XXX It is assumed below, the MOZILLA_HOME is under PREFIX -- a safe assumption? X.endif X XMHOME_REL = ${MOZILLA_HOME:S/^${PREFIX}\///} X XNO_BUILD= yes XPLIST= ${WRKDIR}/PLIST X Xecho: X # ${MOZILLA_HOME} ${MHOME_REL} X Xdo-install: X # Detected MOZILLA_HOME as ${MOZILLA_HOME}. X # Use ${MAKE} -DMOZILLA_HOME=Whatever if this is a wrong location, X # If you simply specify the alternative to the install.sh now, the X # installed files may not be registered properly. X env SCRIPT_NAME=${WRKSRC}/ MOZILLA_HOME="${MOZILLA_HOME}" \ X ${SH} ${WRKSRC}/install.sh X # Generating the ${PLIST} X ${RM} -f ${PLIST} X for f in `${TAR} tf ${WRKSRC}/archive.tar` ; do \ X case $$f in \ X */) dirs="$$dirs $$f";; \ X *) echo ${MHOME_REL}/$$f >> ${PLIST};; \ X esac; \ X done X ${ECHO} @dirrm ${MHOME_REL}/DjVu >> ${PLIST} X X.include <bsd.port.mk> END-of-djvu-plugin/Makefile echo c - djvu-plugin/pkg mkdir -p djvu-plugin/pkg > /dev/null 2>&1 echo x - djvu-plugin/pkg/COMMENT sed 's/^X//' >djvu-plugin/pkg/COMMENT << 'END-of-djvu-plugin/pkg/COMMENT' XPlug-in for Netscape. Views DjVu format images. END-of-djvu-plugin/pkg/COMMENT echo x - djvu-plugin/pkg/DESCR sed 's/^X//' >djvu-plugin/pkg/DESCR << 'END-of-djvu-plugin/pkg/DESCR' XFrom AT&T's description on http://www.djvu.att.com/wid/ : X XOver 90 percent of the information in the world is still on paper. Many Xof those paper documents include color graphics and/or photographs that Xrepresent significant invested value. And almost none of that rich Xcontent is on the Internet. X XThat's because scanning such documents and getting them onto a Web site Xhas been problematic at best. At the high resolution necessary to Xpreserve the quality of images and to keep type readable, file sizes Xbecome far too bulky for acceptable download speed. Reducing resolution Xto achieve satisfactory download speed means forfeiting quality and Xlegibility. Conventional JPEG and GIF compression techniques only begin Xto solve the problem. As a result, Web site content developers have been Xunable to leverage existing printed materials. X XUntil now... END-of-djvu-plugin/pkg/DESCR echo c - djvu-plugin/patches mkdir -p djvu-plugin/patches > /dev/null 2>&1 echo x - djvu-plugin/patches/patch-aa sed 's/^X//' >djvu-plugin/patches/patch-aa << 'END-of-djvu-plugin/patches/patch-aa' X--- install.sh.orig Tue Jul 14 16:47:27 1998 X+++ install.sh Wed Jul 21 12:19:15 1999 X@@ -164,3 +164,3 @@ X # X-${MORE} -c ${SCRIPT_NAME}${LICENSE_NAME} X+${MORE} -c ${SCRIPT_DIR}${LICENSE_NAME} X X@@ -191,24 +191,4 @@ X # X-${CLEAR} X-${CAT} << @EOF X-This package can be installed either in private or public Netscape directory. X-In the former case all files will be placed under \$HOME/.netscape, and only X-you will have the access to the ${PRODUCT} plugin, while if the plugin is X-installed in a public place, everybody will be able to use it. X- X-@EOF X- X-ANS="" X-while test "${ANS}" != "yes" -a "${ANS}" != "no" X-do X- ${ECHO_HEAD} "Do you want to install ${PRODUCT} in the private directory? (yes/no): ${ECHO_TAIL}" X- read ANS X- if test "${ANS}" != "yes" -a "${ANS}" != "no" X- then X- ${ECHO} "Please enter either 'yes' or 'no'." X- fi X-done X X-${ECHO} X-INSTALL_DIR="" X+ANS="no" # Do not install in the private directories X END-of-djvu-plugin/patches/patch-aa echo c - djvu-plugin/files mkdir -p djvu-plugin/files > /dev/null 2>&1 echo x - djvu-plugin/files/md5 sed 's/^X//' >djvu-plugin/files/md5 << 'END-of-djvu-plugin/files/md5' XMD5 (npdjvu-freebsd.tar.gz) = 3441995b58e3816f012a0b0086a3fbe5 END-of-djvu-plugin/files/md5 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?199907211718.NAA08347>