Magellan Linux

Contents of /trunk/extras/glew/glew-1.5.2-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5003 - (show annotations) (download)
Sun Feb 28 19:05:56 2010 UTC (14 years, 2 months ago) by niro
File size: 1338 byte(s)
-magellan specific fixup of BINDIR, we use this variable in our buildsystem
1 # $Id$
2
3 PNAME="glew"
4 PVER="1.5.2"
5 PBUILD="r3"
6
7 PCATEGORIE="media-libs"
8 STATE="unstable"
9
10 DESCRIPTION="The OpenGL Extension Wrangler Library (GLEW)."
11 HOMEPAGE="http://glew.sourceforge.net/"
12
13 sminclude multilib
14
15 DEPEND=">= virtual/opengl
16 >= virtual/glut"
17
18 SDEPEND=">= sys-apps/sed-4"
19
20 SRCFILE="${PNAME}-${PVER}.tgz"
21 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22
23 SRC_URI=(
24 sourceforge://${PNAME}/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 )
27
28 UP2DATE="updatecmd_sourceforge ${PNAME}"
29
30 src_prepare()
31 {
32 munpack ${SRCFILE} || die
33
34 # convert crlfs from dos to unix
35 all-abis 'cp config/config.guess{,.orig} || die'
36 all-abis 'tr -d \\r < config/config.guess.orig > config/config.guess || die'
37 all-abis 'cp Makefile{,.orig} || die'
38 all-abis 'tr -d \\r < Makefile.orig > Makefile || die'
39
40 # fix CC LD and co
41 all-abis 'sed -i "s:^\(CC =\).*:\1 ${CC}:" config/Makefile.linux || die'
42 all-abis 'sed -i "s:^\(LD =\).*:\1 ${CC} ${LDFLAGS}:" config/Makefile.linux || die'
43 all-abis 'sed -i "s:^\(POPT =\).*:\1 ${CFLAGS}:" config/Makefile.linux || die'
44 all-abis 'sed -i "s:^\(LDFLAGS.EXTRA =\).*:\1:" config/Makefile.linux || die'
45 }
46
47 src_compile()
48 {
49 mmake STRIP=true M_ARCH="" || die
50 }
51
52 src_install()
53 {
54 mmake STRIP=true M_ARCH="" GLEW_DEST=${BINDIR}/usr BINDIR=${BINDIR}/bin LIBDIR=${BINDIR}/usr/'$(mlibdir)' install || die
55 minstalldocs *.txt || die
56 }

Properties

Name Value
svn:keywords Id