Date: Fri, 30 Apr 1999 15:40:05 -0500 (CDT) From: adam@whizkidtech.net To: FreeBSD-gnats-submit@freebsd.org Subject: ports/11408: New port - tifmerge Message-ID: <199904302040.PAA54876@whizkidtech.net>
next in thread | raw e-mail | index | archive | help
>Number: 11408 >Category: ports >Synopsis: Library to create multi-page TIFF files >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: Fri Apr 30 13:50:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: G. Adam Stanislav >Release: FreeBSD 3.1-RELEASE i386 >Organization: Whiz Kid Technomagic >Environment: >Description: # 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: # # tifmerge # tifmerge/Makefile # tifmerge/files # tifmerge/files/md5 # tifmerge/pkg # tifmerge/pkg/COMMENT # tifmerge/pkg/DESCR # tifmerge/pkg/PLIST # echo c - tifmerge mkdir -p tifmerge > /dev/null 2>&1 echo x - tifmerge/Makefile sed 's/^X//' >tifmerge/Makefile << 'END-of-tifmerge/Makefile' X# New ports collection makefile for: tifmerge X# Version required: 1.0 X# Date created: 29 April 1999 X# Whom: G. Adam Stanislav <adam@whizkidtech.net> X# X# $Id$ X# X XDISTNAME= tiff XPKGNAME= tifmerge-1.0 XCATEGORIES= graphics XMASTER_SITES= http://www.whizkidtech.net/fports/ XEXTRACT_SUFX= .zip X XMAINTAINER= adam@whizkidtech.net X XMAN3= tifmerge.3 XMANCOMPRESSED= no XBUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip \ X tuc:${PORTSDIR}/textproc/tuc X XEXTRACT_CMD= unzip XEXTRACT_BEFORE_ARGS= XEXTRACT_AFTER_ARGS= X Xpost-extract: X @mkdir -p ${WRKSRC} X @tuc ${WRKDIR}/TIFMERGE.H ${WRKSRC}/tifmerge.h X @sed -e "s/#include <io.h>/#pragma align 1/g" \ X -e s/TifMerge.h/tifmerge.h/g \ X -e "s/r+b/r+/g" \ X -e s/rb/r/g \ X -e "/fInFile == NULL/,/seek/s/-1;/-2;/g" \ X -e "s/pLastIFD = TiffReadLastIFD( fOutFile);/if ((pLastIFD = TiffReadLastIFD( fOutFile)) == NULL) return 1;/g" \ X -e "s/dwIFDPos = TiffAppendFile( fOutFile, fInFile);/if ((dwIFDPos = TiffAppendFile( fOutFile, fInFile)) == 0) return 2;/g" \ X ${WRKDIR}/TIFMERGE.C \ X | tuc -o ${WRKSRC}/tifmerge.c X @echo "LIB= tifmerge" > ${WRKSRC}/Makefile X @echo >> ${WRKSRC}/Makefile X @echo "SHLIB_MAJOR= 1" >> ${WRKSRC}/Makefile X @echo "SHLIB_MINOR= 0" >> ${WRKSRC}/Makefile X @echo "SRCS= tifmerge.c" >> ${WRKSRC}/Makefile X @echo >> ${WRKSRC}/Makefile X @echo ".include <bsd.lib.mk>" >> ${WRKSRC}/Makefile X @echo ".Dd April 29, 1999" > ${WRKSRC}/tifmerge.3 X @echo ".Dt TIFMERGE 3" >> ${WRKSRC}/tifmerge.3 X @echo ".Os FreeBSD" >> ${WRKSRC}/tifmerge.3 X @echo ".Sh NAME" >> ${WRKSRC}/tifmerge.3 X @echo ".Nm TiffAppend" >> ${WRKSRC}/tifmerge.3 X @echo ".Nd tifmerge library function manual page" >> ${WRKSRC}/tifmerge.3 X @echo ".Sh SYNOPSIS" >> ${WRKSRC}/tifmerge.3 X @echo ".Fd #include <tifmerge.h>" >> ${WRKSRC}/tifmerge.3 X @echo ".Ft int" >> ${WRKSRC}/tifmerge.3 X @echo '.Fn TiffAppend "const char *ptr out" "const char *ptr in"' >> ${WRKSRC}/tifmerge.3 X @echo ".Sh DESCRIPTION" >> ${WRKSRC}/tifmerge.3 X @echo "This is the tifmerge library function manual page for" >> ${WRKSRC}/tifmerge.3 X @echo "the " >> ${WRKSRC}/tifmerge.3 X @echo ".Fn TiffAppend" >> ${WRKSRC}/tifmerge.3 X @echo "function. This function merges two TIFF files into a single " >> ${WRKSRC}/tifmerge.3 X @echo "multi-page TIFF file." >> ${WRKSRC}/tifmerge.3 X @echo ".Pp" >> ${WRKSRC}/tifmerge.3 X @echo "The" >> ${WRKSRC}/tifmerge.3 X @echo ".Fn TiffAppend" >> ${WRKSRC}/tifmerge.3 X @echo "function takes two arguments:" >> ${WRKSRC}/tifmerge.3 X @echo ".Fa out" >> ${WRKSRC}/tifmerge.3 X @echo "and" >> ${WRKSRC}/tifmerge.3 X @echo ".Fa in ." >> ${WRKSRC}/tifmerge.3 X @echo "Both arguments contain the pointer to the name of a file. Both files must" >> ${WRKSRC}/tifmerge.3 X @echo "exist and be valid TIFF files." >> ${WRKSRC}/tifmerge.3 X @echo ".Pp" >> ${WRKSRC}/tifmerge.3 X @echo "The " >> ${WRKSRC}/tifmerge.3 X @echo ".Fn TiffAppend" >> ${WRKSRC}/tifmerge.3 X @echo "function will append the images contained in the " >> ${WRKSRC}/tifmerge.3 X @echo ".Fa in" >> ${WRKSRC}/tifmerge.3 X @echo "file to the images inside the" >> ${WRKSRC}/tifmerge.3 X @echo ".Fa out" >> ${WRKSRC}/tifmerge.3 X @echo "file." >> ${WRKSRC}/tifmerge.3 X @echo ".Pp" >> ${WRKSRC}/tifmerge.3 X @echo "The function is declared in" >> ${WRKSRC}/tifmerge.3 X @echo ".Aq Pa tifmerge.h ," >> ${WRKSRC}/tifmerge.3 X @echo located in the ${PREFIX}/include directory. >> ${WRKSRC}/tifmerge.3 X @echo ".Sh RETURN VALUES" >> ${WRKSRC}/tifmerge.3 X @echo "The" >> ${WRKSRC}/tifmerge.3 X @echo ".Fn TiffAppend" >> ${WRKSRC}/tifmerge.3 X @echo "function returns 0 on success, non-0 otherwise." >> ${WRKSRC}/tifmerge.3 X @echo ".Sh ENVIRONMENT" >> ${WRKSRC}/tifmerge.3 X @echo "The " >> ${WRKSRC}/tifmerge.3 X @echo ".Fn TiffAppend" >> ${WRKSRC}/tifmerge.3 X @echo "library function ignores the environment variables." >> ${WRKSRC}/tifmerge.3 X @echo ".Sh SEE ALSO" >> ${WRKSRC}/tifmerge.3 X @echo ".Rs" >> ${WRKSRC}/tifmerge.3 X @echo ".%A Peter van Vloten" >> ${WRKSRC}/tifmerge.3 X @echo ".%D May 1999" >> ${WRKSRC}/tifmerge.3 X @echo ".%J Windows Developer's Journal" >> ${WRKSRC}/tifmerge.3 X @echo ".%T Creating Multi-Page TIFF Files" >> ${WRKSRC}/tifmerge.3 X @echo ".Re" >> ${WRKSRC}/tifmerge.3 X @echo ".Sh STANDARDS" >> ${WRKSRC}/tifmerge.3 X @echo ".St -ansiC ." >> ${WRKSRC}/tifmerge.3 X @echo ".Sh DIAGNOSTICS" >> ${WRKSRC}/tifmerge.3 X @echo "None." >> ${WRKSRC}/tifmerge.3 X @echo ".Sh AUTHORS" >> ${WRKSRC}/tifmerge.3 X @echo "This" >> ${WRKSRC}/tifmerge.3 X @echo "manual page was written by" >> ${WRKSRC}/tifmerge.3 X @echo ".An G. Adam Stanislav Aq adam@whizkidtech.net ." >> ${WRKSRC}/tifmerge.3 X @echo ".Pp" >> ${WRKSRC}/tifmerge.3 X @echo "The " >> ${WRKSRC}/tifmerge.3 X @echo ".Fn TiffAppend" >> ${WRKSRC}/tifmerge.3 X @echo "function was written by" >> ${WRKSRC}/tifmerge.3 X @echo ".An Peter van Vloten Aq pixelpan@aol.com ." >> ${WRKSRC}/tifmerge.3 X @echo ".Sh BUGS" >> ${WRKSRC}/tifmerge.3 X @echo "The original version of the " >> ${WRKSRC}/tifmerge.3 X @echo ".Fn TiffAppend" >> ${WRKSRC}/tifmerge.3 X @echo "function causes a core dump if the " >> ${WRKSRC}/tifmerge.3 X @echo ".Fa out " >> ${WRKSRC}/tifmerge.3 X @echo "argument is not a valid TIFF file. This is fixed in the FreeBSD port." >> ${WRKSRC}/tifmerge.3 X Xdo-install: X ${INSTALL_DATA} ${WRKSRC}/libtifmerge.so.1 ${PREFIX}/lib X ln -fs ${PREFIX}/lib/libtifmerge.so.1 ${PREFIX}/lib/libtifmerge.so X ${INSTALL_DATA} ${WRKSRC}/libtifmerge.a ${PREFIX}/lib X ${INSTALL_DATA} ${WRKSRC}/libtifmerge_p.a ${PREFIX}/lib X ${INSTALL_DATA} ${WRKSRC}/tifmerge.h ${PREFIX}/include X ${INSTALL_DATA} ${WRKSRC}/tifmerge.3 ${PREFIX}/man/man3 X Xpost-install: X ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib X X.include <bsd.port.mk> END-of-tifmerge/Makefile echo c - tifmerge/files mkdir -p tifmerge/files > /dev/null 2>&1 echo x - tifmerge/files/md5 sed 's/^X//' >tifmerge/files/md5 << 'END-of-tifmerge/files/md5' XMD5 (tiff.zip) = 3dcc8fb3e96ed1f09cceb0e2bb0e2fd6 END-of-tifmerge/files/md5 echo c - tifmerge/pkg mkdir -p tifmerge/pkg > /dev/null 2>&1 echo x - tifmerge/pkg/COMMENT sed 's/^X//' >tifmerge/pkg/COMMENT << 'END-of-tifmerge/pkg/COMMENT' XLibrary to merge TIFF files into multi-page TIFF files. END-of-tifmerge/pkg/COMMENT echo x - tifmerge/pkg/DESCR sed 's/^X//' >tifmerge/pkg/DESCR << 'END-of-tifmerge/pkg/DESCR' XLibrary to convert TIFF files into multi-page TIFF files. It contains only one Xfunction callable by programs: X X int TiffAppend(const char *outfile, const char *infile); X XIt will insert images from infile as additional pages to outfile. Infile Xand outfile must be names of two existing TIFF files. X XThe function returns 0 on success, non-0 otherwise. X XThe code for this library was written by Peter van Vloten <pixelpan@aol.com> Xand was published in May 1999 issue of Windows Developer's Journal (sic!). END-of-tifmerge/pkg/DESCR echo x - tifmerge/pkg/PLIST sed 's/^X//' >tifmerge/pkg/PLIST << 'END-of-tifmerge/pkg/PLIST' Xinclude/tifmerge.h Xlib/libtifmerge.a Xlib/libtifmerge_p.a Xlib/libtifmerge.so Xlib/libtifmerge.so.1 X@exec /sbin/ldconfig -m %D/lib X@unexec /sbin/ldconfig -R END-of-tifmerge/pkg/PLIST exit >How-To-Repeat: >Fix: >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?199904302040.PAA54876>