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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.20 - (show annotations) (download)
Sun Aug 8 13:30:11 2004 UTC (15 years, 2 months ago) by dragonheart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.19: +1 -1 lines
FILE REMOVED
Fixed CFLAFS typo. Removed empty /usr/man directory as per bug #46565. Remove old versions (a patch was too big)

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/svgalib/svgalib-1.4.3-r4.ebuild,v 1.19 2004/07/19 17:10:10 vapier Exp $
4
5 inherit eutils flag-o-matic
6
7 DESCRIPTION="A library for running svga graphics on the console"
8 HOMEPAGE="http://www.svgalib.org/"
9 SRC_URI="http://www.svgalib.org/${P}.tar.gz
10 mirror://gentoo/${P}-r128.c.bz2"
11 # http://www.arava.co.il/matan/svgalib/r128.c"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="-* x86"
16
17 DEPEND="virtual/libc"
18
19 src_unpack() {
20 unpack ${P}.tar.gz
21
22 cd ${S}
23 epatch ${FILESDIR}/${P}-gentoo.diff
24 epatch ${FILESDIR}/${P}-userpriv.patch
25 epatch ${FILESDIR}/${P}-linux2.6.patch
26 epatch ${FILESDIR}/${P}-gcc3.patch #23515
27
28 # Update r128 driver, bug #10987.
29 unpack ${P}-r128.c.bz2
30 mv ${P}-r128.c ${S}/src/r128.c
31 }
32
33 src_compile() {
34 filter-flags "-fPIC"
35
36 make OPTIMIZE="${CFLAGS}" static shared textutils lrmi utils || die
37 # Build the gl stuff tpp
38 make OPTIMIZE="${CFLAGS}" -C gl || die
39 make OPTIMIZE="${CFLAGS}" -C gl libvgagl.so.${PV} || die
40
41 make OPTIMIZE="${CFLAGS}" LDFLAGS='-L ../sharedlib' demoprogs || die
42
43 sed -i \
44 's/\(install: $(INSTALLAOUTLIB) \)installheaders \(.*\)/\1\2/g' \
45 Makefile
46 }
47
48 src_install() {
49 dodir /etc/{vga,svga} /usr/{include,lib,bin,share/man}
50 make TOPDIR=${D} OPTIMIZE="${CFLAGS}" install || die
51 insinto /usr/include
52 doins gl/vgagl.h
53 dolib.a gl/libvgagl.a
54 dolib.so gl/libvgagl.so.${PV}
55 dosym libvgagl.so.${PV} /usr/lib/libvgagl.so
56 preplib
57
58 insinto /usr/include
59 doins src/vga.h gl/vgagl.h src/mouse/vgamouse.h src/joystick/vgajoystick.h
60 doins src/keyboard/vgakeyboard.h
61
62 cd ${S}/demos
63 exeinto /usr/lib/svgalib/demos
64 local DEMO_PROGS="fun testgl speedtest mousetest vgatest scrolltest \
65 testlinear \
66 keytest testaccel accel forktest eventtest spin bg_test printftest \
67 joytest mjoytest bankspeed lineart linearspeed addmodetest \
68 svidtune linearfork vgatweak"
69 doexe ${DEMO_PROGS}
70
71 cd ${S}/threeDKit
72 exeinto /usr/lib/svgalib/threeDKit
73 local THREED_PROGS="plane wrapdemo"
74 doexe ${THREED_PROGS}
75
76 cd ${S}/doc
77 dodoc 0-README CHANGES* DESIGN NEWS TODO
78 docinto txt
79 dodoc Driver-programming-HOWTO README.* add_driver svgalib.lsm
80 }
81
82 pkg_postinst() {
83 # we chown/chmod outside userpriv
84 for x in /usr/lib/svgalib/demos/* /usr/lib/svgalib/theeDKit/*; do
85 chown root ${x}
86 chmod u+s ${x}
87 done
88 }

  ViewVC Help
Powered by ViewVC 1.1.20