add libungif 4.1.0b1 port

--
GIF loading and saving library. (Saving uses an uncompressed GIF
algorithm that does not use LZW compression.)
This commit is contained in:
brad 2001-11-02 21:13:35 +00:00
parent 56137f44d8
commit 9249c92b6c
8 changed files with 232 additions and 0 deletions

View File

@ -0,0 +1,49 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/11/02 21:13:35 brad Exp $
COMMENT= "tools and library routines for working with GIF images"
DISTNAME= libungif-4.1.0b1
CATEGORIES= graphics
NEED_VERSION= 1.475
MASTER_SITES= ftp://prtr-13.ucsc.edu/pub/libungif/
HOMEPAGE= http://prtr-13.ucsc.edu/~badger/software/libungif/index.shtml
MAINTAINER= Brad Smith <brad@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --enable-static --without-x
PATCH_LIST= ${PORTSDIR}/infrastructure/patches/patch-lt1.3.3-ltconfig \
${PORTSDIR}/infrastructure/patches/patch-lt1.3.3-ltmain_sh \
patch-*
DOCS= COPYING UNCOMPRESSED_GIF
HTMLDOCS= *.html *.txt *.png
DOCSDIR= ${PREFIX}/share/doc/libungif
pre-build:
@touch ${WRKSRC}/aclocal.m4
@find ${WRKSRC} -name 'Makefile.in' -print | xargs touch
post-install:
@cd ${PREFIX}/lib; \
for f in libungif.a libungif.so.5.0; do \
g=`echo $$f | sed -e s#libungif#libgif#g`; \
ln -sf $$f $$g; \
done && \
sed -e s#libungif#libgif#g libungif.la > libgif.la && \
chown root.bin libgif.la && \
chmod 755 libgif.la
${INSTALL_DATA_DIR} ${DOCSDIR}
cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
${INSTALL_DATA_DIR} ${DOCSDIR}/html
cd ${WRKSRC}/doc; ${INSTALL_DATA} ${HTMLDOCS} ${DOCSDIR}/html
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (libungif-4.1.0b1.tar.gz) = 20d96eb90cf818a1da093614c44ad3e5
RMD160 (libungif-4.1.0b1.tar.gz) = f221bd5f5be564a4eaac72ec8b6166e6390a247a
SHA1 (libungif-4.1.0b1.tar.gz) = 5675aeb4a96ec476929c6d78907b5a689f872b03

View File

@ -0,0 +1,53 @@
--- configure.orig Tue Oct 30 18:55:05 2001
+++ configure Tue Oct 30 18:55:49 2001
@@ -2967,50 +2967,6 @@ else
fi
-if test ${MATH_LIB}; then
- echo $ac_n "checking for rle_hdr_init in -lrle""... $ac_c" 1>&6
-echo "configure:2973: checking for rle_hdr_init in -lrle" >&5
-ac_lib_var=`echo rle'_'rle_hdr_init | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lrle "-lm" $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2981 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char rle_hdr_init();
-
-int main() {
-rle_hdr_init()
-; return 0; }
-EOF
-if { (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- RLE_LIB="${RLE_LIBS} -lrle -lm"
- COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gif2rle rle2gif"
-else
- echo "$ac_t""no" 1>&6
-fi
-
-fi
-
echo $ac_n "checking for main in -lgl_s""... $ac_c" 1>&6
echo "configure:3016: checking for main in -lgl_s" >&5
ac_lib_var=`echo gl_s'_'main | sed 'y%./+-%__p_%'`

View File

@ -0,0 +1,15 @@
--- configure.in.orig Tue Oct 30 18:54:49 2001
+++ configure.in Tue Oct 30 18:55:00 2001
@@ -21,12 +21,6 @@ dnl Checks for libraries.
AC_CHECK_LIB(m, pow, [MATH_LIB="${MATH_LIB} -lm"
COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gifclrmp gifrotat"] )
-if test ${MATH_LIB}; then
- AC_CHECK_LIB(rle, rle_hdr_init, [RLE_LIB="${RLE_LIBS} -lrle -lm"
- COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gif2rle rle2gif"],
- ,"-lm" )
-fi
-
dnl I don't have this on my system. Could someone else configure it and
dnl check that it works?
AC_CHECK_LIB(gl_s, main, [GL_S_LIB="${GL_S_LIB} -lgl_s $X_LIBS"

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-doc_index_html,v 1.1.1.1 2001/11/02 21:13:35 brad Exp $
--- doc/index.html.orig Tue Oct 30 18:57:54 2001
+++ doc/index.html Tue Oct 30 18:58:33 2001
@@ -63,16 +63,10 @@ hotlink to HTML documentation.<P>
<DD>print GIF file on laser printers supporting PostScript
<DT><a href="gif2rgb.html">gif2rgb</a>
<DD>convert images saved as GIF to 24-bit RGB image(s)
-<DT><a href="gif2rle.html">gif2rle</a>
-<DD>convert images saved as GIF to RLE (Utah raster toolkit) format
-<DT><a href="gif2x11.html">gif2x11</a>
-<DD>display images saved as GIF files under X window system
<DT><a href="raw2gif.html">raw2gif</a>
<DD>convert raw 8-bit image data into GIF files
<DT><a href="rgb2gif.html">rgb2gif</a>
<DD>convert 24 bit images to a GIF image using color quantization
-<DT><a href="rle2gif.html">rle2gif</a>
-<DD>convert images saved as RLE (Utah raster toolkit) to GIF format
</DL>
<H2>Test Pattern Generators</H2>

View File

@ -0,0 +1,7 @@
GIF loading and saving library. (Saving uses an uncompressed GIF
algorithm that does not use LZW compression.)
See the ${PREFIX}/share/doc/libungif directory for more information
on libungif's capabilities.
WWW: ${HOMEPAGE}

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2001/11/02 21:13:35 brad Exp $
lib/libgif.so.5.0
lib/libungif.so.5.0
DYNLIBDIR(%B)

View File

@ -0,0 +1,81 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/11/02 21:13:35 brad Exp $
@pkgcfl giflib-[0-9]*
bin/gif2epsn
bin/gif2ps
bin/gif2rgb
bin/gifasm
bin/gifbg
bin/gifburst
bin/gifclip
bin/gifclrmp
bin/gifcolor
bin/gifcomb
bin/gifcompose
bin/giffiltr
bin/giffix
bin/gifflip
bin/gifhisto
bin/gifinfo
bin/gifinter
bin/gifinto
bin/gifovly
bin/gifpos
bin/gifrotat
bin/gifrsize
bin/gifspnge
bin/giftext
bin/gifwedge
bin/icon2gif
bin/raw2gif
bin/rgb2gif
bin/text2gif
include/gif_lib.h
lib/libgif.a
lib/libgif.la
lib/libungif.a
lib/libungif.la
%%SHARED%%
share/doc/libungif/COPYING
share/doc/libungif/UNCOMPRESSED_GIF
share/doc/libungif/html/GifFileType.png
share/doc/libungif/html/gif2bgi.html
share/doc/libungif/html/gif2epsn.html
share/doc/libungif/html/gif2herc.html
share/doc/libungif/html/gif2iris.html
share/doc/libungif/html/gif2ps.html
share/doc/libungif/html/gif2rgb.html
share/doc/libungif/html/gif2rle.html
share/doc/libungif/html/gif2x11.html
share/doc/libungif/html/gif89.txt
share/doc/libungif/html/gif_lib.html
share/doc/libungif/html/gifasm.html
share/doc/libungif/html/gifbg.html
share/doc/libungif/html/gifburst.html
share/doc/libungif/html/gifclip.html
share/doc/libungif/html/gifclrmp.html
share/doc/libungif/html/gifcolor.html
share/doc/libungif/html/gifcomb.html
share/doc/libungif/html/gifcompose.html
share/doc/libungif/html/giffiltr.html
share/doc/libungif/html/giffix.html
share/doc/libungif/html/gifflip.html
share/doc/libungif/html/gifhisto.html
share/doc/libungif/html/gifinter.html
share/doc/libungif/html/gifinto.html
share/doc/libungif/html/gifovly.html
share/doc/libungif/html/gifpos.html
share/doc/libungif/html/gifrotat.html
share/doc/libungif/html/gifrsize.html
share/doc/libungif/html/gifspnge.html
share/doc/libungif/html/giftext.html
share/doc/libungif/html/gifwedge.html
share/doc/libungif/html/icon2gif.html
share/doc/libungif/html/index.html
share/doc/libungif/html/liberror.html
share/doc/libungif/html/lzgif.txt
share/doc/libungif/html/raw2gif.html
share/doc/libungif/html/rgb2gif.html
share/doc/libungif/html/rle2gif.html
share/doc/libungif/html/text2gif.html
@dirrm share/doc/libungif/html
@dirrm share/doc/libungif