/[gentoo-x86]/media-libs/svgalib/svgalib-1.4.3.ebuild
Gentoo

Contents of /media-libs/svgalib/svgalib-1.4.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu May 23 00:55:55 2002 UTC (17 years, 4 months ago) by agenkin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
The ebuild creates /etc/vga directory now.  This closes bug #2912.

While I was at it, cleaned up some indentation and style.

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # Author Peter Gavin <pete@gentoo.org>
4 # $Header: /home/cvsroot/gentoo-x86/media-libs/svgalib/svgalib-1.4.3.ebuild,v 1.5 2002/05/01 01:29:59 seemant Exp $
5
6 S=${WORKDIR}/${P}
7 DESCRIPTION="a library for running svga graphics on the console"
8 SRC_URI="http://www.svgalib.org/${P}.tar.gz"
9 HOMEPAGE="http://www.svgalib.org/"
10
11 DEPEND="virtual/glibc"
12
13 src_unpack() {
14 unpack ${A}
15 cd ${S}
16 patch -p1 < ${FILESDIR}/${P}-gentoo.diff
17 }
18
19 src_compile() {
20
21 make OPTIMIZE="${CFLAGS}" static || die
22 make OPTIMIZE="${CFLAGS}" shared || die
23 make OPTIMIZE="${CFLAGS}" textutils || die
24 make OPTIMIZE="${CFLAGS}" lrmi || die
25 make OPTIMIZE="${CFLAGS}" utils || die
26 # Build the gl stuff tpp
27 make OPTIMIZE="${CFLAGS}" -C gl || die
28 make OPTIMIZE="${CFLAGS}" -C gl libvgagl.so.${PV} || die
29
30 cp Makefile Makefile.orig
31 sed 's/\(install: $(INSTALLAOUTLIB) \)installheaders \(.*\)/\1\2/g' \
32 Makefile.orig > Makefile
33 }
34
35 src_install () {
36
37 dodir /etc/svga /usr/{include,lib,bin,share/man}
38 make TOPDIR=${D} OPTIMIZE="${CFLAGS}" install || die
39 insinto /usr/include
40 doins gl/vgagl.h
41 dolib.a gl/libvgagl.a
42 dolib.so gl/libvgagl.so.${PV}
43 dosym libvgagl.so.${PV} /usr/lib/libvgagl.so
44
45 insinto /usr/include
46 doins src/vga.h gl/vgagl.h src/mouse/vgamouse.h src/joystick/vgajoystick.h
47 doins src/keyboard/vgakeyboard.h
48
49 cd doc
50 dodoc 0-README CHANGES* DESIGN NEWS TODO
51 docinto txt
52 dodoc Driver-programming-HOWTO README.* add_driver svgalib.lsm
53
54 }

  ViewVC Help
Powered by ViewVC 1.1.20