diff options
author | Deposite Pirate | 2018-09-16 18:48:36 +0200 |
---|---|---|
committer | Deposite Pirate | 2018-09-16 18:48:36 +0200 |
commit | d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 (patch) | |
tree | ce5e44d69c5f3175bfdbd1e3717b52c5dcca5638 /xorg/mesa/mesa.build | |
parent | f29d3519ce073ec30f99754d93304324f7f26d65 (diff) |
Add ports.
Diffstat (limited to 'xorg/mesa/mesa.build')
-rwxr-xr-x | xorg/mesa/mesa.build | 164 |
1 files changed, 164 insertions, 0 deletions
diff --git a/xorg/mesa/mesa.build b/xorg/mesa/mesa.build new file mode 100755 index 0000000..5d5e4f3 --- /dev/null +++ b/xorg/mesa/mesa.build @@ -0,0 +1,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}" +} |