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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Aug 3 12:59:03 2003 UTC (16 years, 2 months ago) by azarah
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
remove temp stuff from 2.6 patch; clean old builds

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # $Header: /home/cvsroot/gentoo-x86/media-libs/svgalib/svgalib-1.9.17.ebuild,v 1.2 2003/02/13 12:56:13 vapier Exp $
4
5 IUSE=""
6
7 inherit eutils
8
9 S="${WORKDIR}/${P}"
10 DESCRIPTION="A library for running svga graphics on the console"
11 SRC_URI="http://www.arava.co.il/matan/${PN}/${P}.tar.gz"
12 HOMEPAGE="http://www.svgalib.org/"
13
14 SLOT="0"
15 LICENSE="BSD"
16 KEYWORDS="~x86 -ppc -sparc "
17
18 DEPEND="virtual/glibc"
19
20 src_unpack() {
21
22 unpack ${A}
23
24 cd ${S};
25 epatch ${FILESDIR}/${P}-gentoo.patch
26 }
27
28 src_compile() {
29
30 make OPTIMIZE="${CFLAGS}" static shared textutils lrmi utils || die
31 # Build the gl stuff tpp
32 make OPTIMIZE="${CFLAGS}" -C gl || die
33 make OPTIMIZE="${CFLAGS}" -C gl libvgagl.so.${PV} || die
34 rm -f src/svgalib_helper.h
35 make OPTIMIZE="${CFLAGS}" -C src libvga.so.${PV} || die
36 cp -a src/libvga.so.${PV} sharedlib/
37 make OPTIMIZE="${CFLAFS}" LDFLAGS='-L ../sharedlib' \
38 -C threeDKit lib3dkit.a || die
39 make INCLUDEDIR="/usr/src/linux/include" -C kernel/svgalib_helper
40 make OPTIMIZE="${CFLAGS}" LDFLAGS='-L ../sharedlib' demoprogs || die
41 cp Makefile Makefile.orig
42 sed -e 's/\(install: $(INSTALLAOUTLIB) \)installheaders \(.*\)/\1\2/g' \
43 Makefile.orig > Makefile
44 }
45
46 src_install() {
47
48 dodir /etc/svgalib /usr/{include,lib,bin,share/man}
49 make TOPDIR=${D} OPTIMIZE="${CFLAGS}" install || die
50 insinto /usr/include
51 doins gl/vgagl.h
52 dolib.a gl/libvgagl.a
53 dolib.a threeDKit/lib3dkit.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 echo "probeall /dev/svga svgalib_helper" > ${D}/etc/modules.d/svgalib
63
64 cd ${S}/demos
65 exeinto /usr/lib/svgalib/demos
66 local DEMO_PROGS="fun testgl speedtest mousetest vgatest scrolltest \
67 testlinear \
68 keytest testaccel accel forktest eventtest spin bg_test printftest \
69 joytest mjoytest bankspeed lineart linearspeed addmodetest \
70 svidtune linearfork vgatweak"
71 doexe ${DEMO_PROGS}
72
73 cd ${S}/threeDKit
74 exeinto /usr/lib/svgalib/theeDKit
75 local THREED_PROGS="plane wrapdemo"
76 doexe ${THREED_PROGS}
77
78 cd ${S}/doc
79 dodoc CHANGES DESIGN TODO
80 docinto txt
81 dodoc Driver-programming-HOWTO README.* add_driver svgalib.lsm
82 }
83
84 pkg_postinst() {
85
86 [ "${ROOT}" = "/" ] && /sbin/modules-update &> /dev/null
87 }
88

  ViewVC Help
Powered by ViewVC 1.1.20