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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Jan 18 04:07:50 2004 UTC (15 years, 9 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/media-libs/svgalib/svgalib-1.9.17-r2.ebuild,v 1.3 2003/09/06 23:59:49 msterret Exp $
4
5 inherit eutils
6
7 DESCRIPTION="A library for running svga graphics on the console"
8 HOMEPAGE="http://www.svgalib.org/"
9 SRC_URI="http://www.arava.co.il/matan/${PN}/${P}.tar.gz"
10
11 LICENSE="BSD"
12 SLOT="0"
13 KEYWORDS="~x86 -ppc -sparc -alpha"
14
15 DEPEND="virtual/glibc"
16
17 pkg_setup() {
18 check_KV
19 }
20
21 src_unpack() {
22 unpack ${A}
23
24 cd ${S}
25 epatch ${FILESDIR}/${P}-gentoo.patch
26
27 # Get it to work with kernel 2.6
28 epatch ${FILESDIR}/${P}-linux2.6.patch
29 }
30
31 src_compile() {
32 make OPTIMIZE="${CFLAGS}" static shared textutils lrmi utils || \
33 die "Failed to build libraries and utils!"
34 # Build the gl stuff tpp
35 make OPTIMIZE="${CFLAGS}" -C gl || die "Failed to build gl!"
36 make OPTIMIZE="${CFLAGS}" -C gl libvgagl.so.${PV} || \
37 die "Failed to build libvgagl.so.${PV}!"
38 rm -f src/svgalib_helper.h
39 make OPTIMIZE="${CFLAGS}" -C src libvga.so.${PV} || \
40 die "Failed to build libvga.so.${PV}!"
41 cp -a src/libvga.so.${PV} sharedlib/
42 make OPTIMIZE="${CFLAFS}" LDFLAGS='-L ../sharedlib' \
43 -C threeDKit lib3dkit.a || die "Failed to build threeDKit!"
44
45 make INCLUDEDIR="/usr/src/linux/include" -C kernel/svgalib_helper \
46 clean all || die "Failed to build kernel module!"
47
48 make OPTIMIZE="${CFLAGS}" LDFLAGS='-L ../sharedlib' demoprogs || \
49 die "Failed to build demoprogs!"
50
51 cp Makefile Makefile.orig
52 sed -e 's/\(install: $(INSTALLAOUTLIB) \)installheaders \(.*\)/\1\2/g' \
53 Makefile.orig > Makefile
54 }
55
56 src_install() {
57 local x=
58
59 dodir /etc/svgalib /usr/{include,lib,bin,share/man}
60
61 make TOPDIR=${D} OPTIMIZE="${CFLAGS}" \
62 INCLUDEDIR="/usr/src/linux/include" install || \
63 die "Failed to install svgalib!"
64
65 insinto /usr/include
66 doins gl/vgagl.h
67 dolib.a gl/libvgagl.a
68 dolib.a threeDKit/lib3dkit.a
69 dolib.so gl/libvgagl.so.${PV}
70 dosym libvgagl.so.${PV} /usr/lib/libvgagl.so
71 preplib
72
73 insinto /usr/include
74 doins src/vga.h gl/vgagl.h src/mouse/vgamouse.h src/joystick/vgajoystick.h
75 doins src/keyboard/vgakeyboard.h
76
77 dodir /etc/modules.d
78 echo "probeall /dev/svga svgalib_helper" > ${D}/etc/modules.d/svgalib
79
80 exeinto /usr/lib/svgalib/demos
81 for x in ${S}/demos/*
82 do
83 [ -x "${x}" ] && doexe ${x}
84 done
85
86 cd ${S}/threeDKit
87 exeinto /usr/lib/svgalib/theeDKit
88 local THREED_PROGS="plane wrapdemo"
89 doexe ${THREED_PROGS}
90
91 cd ${S}/doc
92 dodoc CHANGES DESIGN TODO
93 docinto txt
94 dodoc Driver-programming-HOWTO README.* add_driver svgalib.lsm
95 }
96
97 pkg_postinst() {
98 [ "${ROOT}" = "/" ] && /sbin/modules-update &> /dev/null
99 }

  ViewVC Help
Powered by ViewVC 1.1.20