blob: 5d5e4f36ce58601eed432d6bcc6de195e89fe079 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
|
#!/bin/bash
#
# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
source /usr/src/ports/Build/build.sh
NAME=mesa
VERSION=9.0.1
BUILD=1
DEPENDS=('xorg_libs >= 7.7-3' 'libdrm >= 2.4.41-1' 'talloc >= 2.0.8-1')
GALLIUM="r300,r600,radeonsi,nouveau,svga,swrast"
# Description
cat > ${PKG}/install/slack-desc <<EOF
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
$(padd)|-----handy-ruler------------------------------------------------------|
${NAME}: mesa (a 3D graphics library)
${NAME}:
${NAME}: Mesa is a 3D graphics library with an API very similar to that of
${NAME}: another well-known 3D graphics library. :-) The Mesa libraries are
${NAME}: used by X to provide both software and hardware accelerated graphics.
${NAME}:
${NAME}: Mesa was written by Brian Paul.
${NAME}:
${NAME}: Homepage: http://www.mesa3d.org
${NAME}:
${NAME}:
EOF
# Sources
SRCNAME[0]=MesaLib
SRCVERS[0]=${VERSION}
SRCPACK[0]=ftp://ftp.freedesktop.org/pub/${NAME}/${VERSION}/${SRCNAME[0]}-${SRCVERS[0]}.tar.bz2
SRCROOT[0]=Mesa-${SRCVERS[0]}
SRCCOPY[0]="LGPL2"
build0()
{
#FIXME: convert to CMake one of these days
CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
./configure \
--build="${ARCH}-slackware-linux" \
--prefix=/usr \
--docdir="/usr/doc/${NAME}-${VERSION}" \
--mandir="${SYS_DIR[man]}" \
--sysconfdir=/etc \
--libdir=/usr/lib$(libdirsuffix) \
--localstatedir=/var \
--with-xorg-driver-dir="/usr/lib$(libdirsuffix)/plugins/xorg/modules/drivers" \
--with-dri-driverdir="/usr/lib$(libdirsuffix)/plugins/xorg/modules/dri" \
--with-gallium-drivers="${GALLIUM}" \
--with-egl-driver-dir="/usr/lib$(libdirsuffix)/plugins/egl" \
--with-egl-platforms="x11,drm" \
--enable-shared-glapi \
--enable-texture-float \
--enable-gallium-egl \
--enable-gallium-llvm \
--enable-dri \
--enable-glx \
--enable-glx-tls \
--enable-osmesa \
--enable-gles1 \
--enable-gles2 \
--enable-egl \
--enable-xa \
--enable-gbm \
--enable-xvmc \
--enable-vdpau
make ${JOBS} V=1
make install DESTDIR="${PKG}"
install.dir ${DOC}
install.doc docs/relnotes-${VERSION}.html ${DOC}
rm -f ${PKG}/usr/lib*/*.la
}
SRCNAME[1]=xdriinfo
SRCVERS[1]=1.0.4
SRCPACK[1]=http://www.x.org/releases/X11R7.6/src/everything/${SRCNAME[1]}-${SRCVERS[1]}.tar.bz2
build1()
{
XDRIINFO_CFLAGS="-I${PKG}/usr/include" \
XDRIINFO_LIBS="-L${PKG}/usr/lib$(libdirsuffix) -lX11 -lglapi" \
CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
./configure \
--build="${ARCH}-slackware-linux" \
--disable-dependency-tracking \
--disable-silent-rules \
--prefix=/usr \
--mandir="${SYS_DIR[man]}" \
--sysconfdir=/etc \
--libdir=/usr/lib$(libdirsuffix) \
--localstatedir=/var
make ${JOBS} V=1
make install DESTDIR="${PKG}"
changelog ChangeLog
license COPYING
}
SRCNAME[2]=glu
SRCVERS[2]=9.0.0
SRCPACK[2]=http://cgit.freedesktop.org/mesa/glu/snapshot/${SRCNAME[2]}-${SRCVERS[2]}.tar.gz
build2()
{
chmod 0755 configure
GL_CFLAGS="-I${PKG}/usr/include" \
GL_LIBS="-L${PKG}/usr/lib$(libdirsuffix) -lGL" \
CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
./configure \
--build="${ARCH}-slackware-linux" \
--disable-dependency-tracking \
--disable-silent-rules \
--enable-shared=yes \
--enable-static=no \
--prefix=/usr \
--mandir="${SYS_DIR[man]}" \
--sysconfdir=/etc \
--libdir=/usr/lib$(libdirsuffix) \
--localstatedir=/var
make ${JOBS} V=1
make install DESTDIR="${PKG}"
}
SRCNAME[3]=glew
SRCVERS[3]=1.9.0
SRCPACK[3]=${URL[sf]}/${SRCNAME[3]}/${SRCNAME[3]}-${SRCVERS[3]}.tgz
build3()
{
make ${JOBS} \
CFLAGS.EXTRA="-I${PKG}/usr/include" \
LDFLAGS.GL="-L${PKG}/usr/lib$(libdirsuffix) -lGL -lX11 -lglapi" \
LDFLAGS.GLU="-lGLU"
make install GLEW_DEST="${PKG}/usr"
chmod 0755 ${PKG}/usr/lib$(libdirsuffix)/libGLEW.so.?.?.?
rm -f ${PKG}/usr/lib$(libdirsuffix)/*.a
}
SRCNAME[4]=gl-manpages
SRCVERS[4]=1.0.1
SRCPACK[4]=ftp://ftp.archlinux.org/other/mesa/${SRCNAME[4]}-${SRCVERS[4]}.tar.bz2
build4()
{
./configure \
--build="${ARCH}-slackware-linux" \
--disable-dependency-tracking \
--prefix=/usr \
--mandir="${SYS_DIR[man]}" \
--sysconfdir=/etc \
--localstatedir=/var \
--datadir=/usr
make ${JOBS}
make install DESTDIR="${PKG}"
}
|