# $Header: /magellan-cvs/smage/glproto/glproto-1.4.9-r1.smage2,v 1.1 2008/02/12 15:07:09 niro Exp $ PNAME="glproto" PVER="1.4.9" PBUILD="r2" PCATEGORIE="x11-proto" STATE="unstable" DESCRIPTION="GL extension headers." HOMEPAGE="http://xorg.freedesktop.org" sminclude xorg multilib mtools DEPEND=">= x11-base/opengl-update-magellan-2" UP2DATE="updatecmd_xorg ${PNAME}" src_install() { xorg_src_install || die # dynamic opengl setup minstalldir /usr/$(mlibdir)/opengl/xorg/include || die local i for i in ${BINDIR}/usr/include/GL/{glxtokens.h,glxmd.h,glxproto.h} do if [ -f ${i} -o -L ${i} ] then mv -f ${i} ${BINDIR}/usr/$(mlibdir)/opengl/xorg/include || die "${i}" fi done } postinstall() { ${MROOT}/usr/sbin/opengl-update --use-old xorg }