Magellan Linux

Contents of /branches/R11-stable/extras/glew/glew-1.11.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22752 - (show annotations) (download)
Tue Oct 28 08:42:06 2014 UTC (9 years, 6 months ago) by niro
File size: 1145 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="glew"
4 PVER="1.11.0"
5 PBUILD="r1"
6
7 PCAT="media-libs"
8
9 Description="The OpenGL Extension Wrangler Library."
10 HOMEPAGE="http://glew.sourceforge.net"
11
12 DEPEND=">= virtual/glu
13 >= x11-libs/libXi-1.7
14 >= x11-libs/libXmu-1.1"
15
16 PROVIDE="virtual/glew"
17
18 SRCFILE="${PNAME}-${PVER}.tgz"
19 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20
21 sminclude multilib
22 msetfeature "!check" # no check target in Makefile
23
24 SRC_URI=(
25 sourceforge://${PNAME}/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 )
28
29 UP2DATE="updatecmd_sourceforge ${PNAME} tgz"
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34
35 # fix Makefile: no strip, honor LDFLAGS , do not ignore pkgconfig files
36 all-abis "sed -i -e '/INSTALL/s:-s::' -e '/^.PHONY: .*\.pc$/d' Makefile" || die
37 }
38
39 src_compile()
40 {
41 # bindir gets overriden by mage
42 mmake \
43 CC="'$(mabi-cc)'" \
44 LD="'$(mabi-cc) $(mabi-ldflags)'" \
45 GLEW_DEST=/usr \
46 BINDIR=/usr/bin \
47 LIBDIR=/usr/'$(mlibdir)' \
48 || die
49 }
50
51 src_install()
52 {
53 # bindir gets overriden by mage
54 mmake \
55 GLEW_DEST=${BINDIR}/usr \
56 BINDIR=${BINDIR}/usr/bin \
57 LIBDIR=${BINDIR}/usr/'$(mlibdir)' \
58 install.all \
59 || die
60
61 minstalldocs LICENSE* README* TODO* || die
62 }