diff options
author | Ben Lutgens <lamer@gentoo.org> | 2001-07-21 17:23:59 +0000 |
---|---|---|
committer | Ben Lutgens <lamer@gentoo.org> | 2001-07-21 17:23:59 +0000 |
commit | d9e24a9e8386d2a1e1a55c889f7708f0271ddd42 (patch) | |
tree | 82c136cbce0b0cbff8e7671257731b8008734be1 /media-gfx/xv | |
parent | Two multimedia libs used by many games. Needed for some things I'll be adding... (diff) | |
download | gentoo-2-d9e24a9e8386d2a1e1a55c889f7708f0271ddd42.tar.gz gentoo-2-d9e24a9e8386d2a1e1a55c889f7708f0271ddd42.tar.bz2 gentoo-2-d9e24a9e8386d2a1e1a55c889f7708f0271ddd42.zip |
xv, the image viewing and manipulation application.
Diffstat (limited to 'media-gfx/xv')
-rw-r--r-- | media-gfx/xv/files/digest-xv-3.10a | 1 | ||||
-rw-r--r-- | media-gfx/xv/files/xv.diff | 155 | ||||
-rw-r--r-- | media-gfx/xv/xv-3.10a.ebuild | 39 |
3 files changed, 195 insertions, 0 deletions
diff --git a/media-gfx/xv/files/digest-xv-3.10a b/media-gfx/xv/files/digest-xv-3.10a new file mode 100644 index 000000000000..7aa30669f2cd --- /dev/null +++ b/media-gfx/xv/files/digest-xv-3.10a @@ -0,0 +1 @@ +MD5 2d4fbeec1561304362781cc8e2f7f72d xv-3.10a.tar.gz diff --git a/media-gfx/xv/files/xv.diff b/media-gfx/xv/files/xv.diff new file mode 100644 index 000000000000..50f4a18a2044 --- /dev/null +++ b/media-gfx/xv/files/xv.diff @@ -0,0 +1,155 @@ +Common subdirectories: xv-3.10a.clean/.xvpics and xv-3.10a/.xvpics +diff -Nu xv-3.10a.clean/Makefile xv-3.10a/Makefile +--- xv-3.10a.clean/Makefile Sat Jul 21 12:03:42 2001 ++++ xv-3.10a/Makefile Sat Jul 21 12:10:48 2001 +@@ -1,8 +1,8 @@ + # Makefile for xv + + # your C compiler (and options) of choice +-CC = cc +-# CC = gcc -ansi ++#CC = cc ++CC = gcc -ansi + + # use this if you're using 'cc' on a DEC Alpha (OSF/1) or MIPS (Ultrix) system: + # CC = cc -std1 -Olimit 750 +@@ -14,7 +14,7 @@ + # -Wuninitialized -Wparentheses + + +-CCOPTS = -O ++CCOPTS = -O3 -march=i686 -mcpu=i686 + + + ### NOTE: Sun running OpenWindows: +@@ -28,10 +28,10 @@ + + + ### Installation locations +-BINDIR = /usr/local/bin +-MANDIR = /usr/local/man/man1 ++BINDIR = /usr/bin ++MANDIR = /usr/share/man/man1 + MANSUF = 1 +-LIBDIR = /usr/local/lib ++LIBDIR = /usr/lib + + + buildit: all +@@ -45,26 +45,26 @@ + ### if, for whatever reason, you're unable to get the JPEG library to compile + ### on your machine, *COMMENT OUT* the following lines + ### +-JPEG = -DDOJPEG +-JPEGDIR = jpeg +-JPEGINC = -I$(JPEGDIR) +-JPEGLIB = $(JPEGDIR)/libjpeg.a +-$(JPEGDIR)/jconfig.h: +- cd $(JPEGDIR) ; ./configure CC='$(CC)' +-$(JPEGLIB): $(JPEGDIR)/jconfig.h +- cd $(JPEGDIR) ; make ++#JPEG = -DDOJPEG ++#JPEGDIR = jpeg ++#JPEGINC = -I$(JPEGDIR) ++#JPEGLIB = $(JPEGDIR)/libjpeg.a ++#$(JPEGDIR)/jconfig.h: ++# cd $(JPEGDIR) ; ./configure CC='$(CC)' ++#$(JPEGLIB): $(JPEGDIR)/jconfig.h ++# cd $(JPEGDIR) ; make + + + ### + ### if, for whatever reason, you're unable to get the TIFF library to compile + ### on your machine, *COMMENT OUT* the following lines + ### +-TIFF = -DDOTIFF +-TIFFDIR = tiff +-TIFFINC = -I$(TIFFDIR) +-TIFFLIB = $(TIFFDIR)/libtiff.a +-$(TIFFLIB): +- ( cd $(TIFFDIR) ; make CC='$(CC)' ) ++#TIFF = -DDOTIFF ++#TIFFDIR = tiff ++#TIFFINC = -I$(TIFFDIR) ++#TIFFLIB = $(TIFFDIR)/libtiff.a ++#$(TIFFLIB): ++# ( cd $(TIFFDIR) ; make CC='$(CC)' ) + + + ### +@@ -102,7 +102,7 @@ + + + ### for LINUX, uncomment the following line +-#MCHN = -DLINUX ++MCHN = -DLINUX + + + # For SCO 1.1 (UNIX 3.2v2) machines, uncomment the following: +@@ -144,7 +144,7 @@ + + # if your machine has the usleep() function, uncomment the following line: + # if it doesn't, or you're not sure, leave this line alone. +-#TIMERS = -DUSLEEP ++TIMERS = -DUSLEEP + + + # if XV locks up whenever you click on *any* of the buttons, the Timer() +@@ -163,7 +163,7 @@ + # if, during compilation, your system complains about the types + # 'u_long', 'u_short', 'u_int', etc. as being undefined, uncomment the + # following line: +-#BSDTYPES = -DBSDTYPES ++BSDTYPES = -DBSDTYPES + + + # if your machine doesn't have 'vprintf()' or 'vsprintf()' +@@ -188,7 +188,7 @@ + $(NODIRENT) $(VPRINTF) $(TIMERS) $(UNIX) $(BSDTYPES) $(RAND) \ + $(DXWM) $(MCHN) + +-LIBS = -lX11 $(JPEGLIB) $(TIFFLIB) -lm ++LIBS = -L/usr/X11R6/lib -lX11 $(JPEGLIB) $(TIFFLIB) -lm -ltiff + + OBJS = xv.o xvevent.o xvroot.o xvmisc.o xvimage.o xvcolor.o xvsmooth.o \ + xv24to8.o xvgif.o xvpm.o xvinfo.o xvctrl.o xvscrl.o xvalg.o \ +@@ -237,13 +237,14 @@ + + + install: all +- cp xv bggen vdcomp xcmap xvpictoppm $(BINDIR) +- cp docs/xv.man $(MANDIR)/xv.$(MANSUF) +- cp docs/bggen.man $(MANDIR)/bggen.$(MANSUF) +- cp docs/xcmap.man $(MANDIR)/xcmap.$(MANSUF) +- cp docs/xvp2p.man $(MANDIR)/xvpictoppm.$(MANSUF) +- cp docs/vdcomp.man $(MANDIR)/vdcomp.$(MANSUF) +- cp docs/xvdocs.ps* $(LIBDIR) ++ mkdir -p ${DESTDIR}/{${BINDIR},$(MANDIR),$(LIBDIR)} ++ cp xv bggen vdcomp xcmap xvpictoppm ${DESTDIR}/$(BINDIR) ++ cp docs/xv.man ${DESTDIR}/$(MANDIR)/xv.$(MANSUF) ++ cp docs/bggen.man ${DESTDIR}/$(MANDIR)/bggen.$(MANSUF) ++ cp docs/xcmap.man ${DESTDIR}/$(MANDIR)/xcmap.$(MANSUF) ++ cp docs/xvp2p.man ${DESTDIR}/$(MANDIR)/xvpictoppm.$(MANSUF) ++ cp docs/vdcomp.man ${DESTDIR}/$(MANDIR)/vdcomp.$(MANSUF) ++ cp docs/xvdocs.ps* ${DESTDIR}/$(LIBDIR) + + tar: + tar cvf xv.tar Makefile* Imakefile *.c *.h bits \ +Common subdirectories: xv-3.10a.clean/bits and xv-3.10a/bits +diff -Nu xv-3.10a.clean/config.h xv-3.10a/config.h +--- xv-3.10a.clean/config.h Sat Jul 21 12:03:42 2001 ++++ xv-3.10a/config.h Sat Jul 21 12:11:00 2001 +@@ -19,7 +19,7 @@ + # ifdef VMS + # define GUNZIP "UNCOMPRESS" + # else +-# define GUNZIP "/usr/local/bin/gunzip -q" ++# define GUNZIP "/bin/gunzip -q" + # endif + #endif + +Common subdirectories: xv-3.10a.clean/docs and xv-3.10a/docs +Common subdirectories: xv-3.10a.clean/jpeg and xv-3.10a/jpeg +Common subdirectories: xv-3.10a.clean/tiff and xv-3.10a/tiff +Common subdirectories: xv-3.10a.clean/unsupt and xv-3.10a/unsupt +Common subdirectories: xv-3.10a.clean/vms and xv-3.10a/vms diff --git a/media-gfx/xv/xv-3.10a.ebuild b/media-gfx/xv/xv-3.10a.ebuild new file mode 100644 index 000000000000..3b02150cdc35 --- /dev/null +++ b/media-gfx/xv/xv-3.10a.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Ben Lutgens <lamer@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/media-gfx/xv/xv-3.10a.ebuild,v 1.1 2001/07/21 17:23:59 lamer Exp $ +S=${WORKDIR}/${P} +DESCRIPTION="This is a sample skeleton ebuild file" +SRC_URI="ftp://ftp.cis.upenn.edu/pub/xv/${P}.tar.gz" +HOMEPAGE="http://www.trilon.com/xv/index.html" +DEPEND="virtual/x11 + virtual/glibc + >=media-libs/tiff-3.5.6_beta + >=media-libs/jpeg-6b + >=sys-libs/zlib-1.1.3" + +#RDEPEND="" + +src_unpack() { + unpack ${A} + cd ${S} +# I know very little about make but somehow I was able to riddle out how to +# fix this makefile so it not unly understood DESTDIR but makes it's own +# dirs to. I fail to understand why people can't seem to do that. Do they +# want packagers to have a hard time with thier source trees? + patch -p1 < ${FILESDIR}/xv.diff +} + +src_compile() { + +# try emake + try make +} + +src_install () { + + + try make DESTDIR=${D} install + dodoc README INSTALL CHANGELOG BUGS IDEAS +} + |