freebsd-ports/graphics/linux_dri-devel/Makefile
Boris Samorodov 0263b9d868 Welcome to the new linux ports infrastructure which allows using
both current (fc4) and future linux (f8) distributions at one
ports tree.

The patch contains full changes to ports/Mk files and all ports involved.
But only infrastructure is changed. The resulting packages are the same as
before. Hence no need to bump PORTREVISIONs.

The idea was taken from bsd.gnome.mk and others.

More than 130 ports are switched to follow a new linux infrastructure
introduced by changes to bsd.port.mk, bsd.linux-rpm.mk and a new
bsd.linux-apps.mk.

Thanks for all who was involved and helped me with this work.
And help from Alexander Leidinger was incredible.

Other changes are coming. Stay tuned!

PR:		ports/132510
Submitted by:	bsam (me)
Exp-run by:	portmgr (pav)
2009-03-19 17:28:51 +00:00

66 lines
2.3 KiB
Makefile

# Ports collection makefile for: linux_dri
# Date created: Thu Oct 25 18:51:06 PDT 2001
# Whom: Eric Anholt <eta@lclark.edu>
#
# $FreeBSD$
#
PORTNAME= linux_dri-devel
PORTVERSION= 6.5.20060624
CATEGORIES= graphics linux
MASTER_SITES= http://people.freebsd.org/~anholt/dri/files/
DISTFILES= Mesa-linux-bin-20060624.tar.bz2 \
linux-libglide.tar.gz \
linux-dri-tools.tar.gz
MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= Binary Linux DRI libraries for 3D hardware acceleration of linux apps
CONFLICTS= linux_dri-6.5 linux-libGLU-[0-9]*
WRKSRC= ${WRKDIR}
NO_BUILD= yes
USE_LINUX= yes
USE_LINUX_PREFIX= yes
USE_LINUX_APPS= xorglibs
# don't package this for amd64 until we come up with 32-bit ioctl wrappers for
# the drm.
ONLY_FOR_ARCHS= i386
MODULELIST= i810_dri.so i915_dri.so mach64_dri.so mga_dri.so r128_dri.so \
r200_dri.so r300_dri.so radeon_dri.so sis_dri.so savage_dri.so \
sis_dri.so tdfx_dri.so
LDCONFIG_LINUX= ${LINUXBASE}/sbin/ldconfig
.include <bsd.port.pre.mk>
do-install:
${MKDIR} ${PREFIX}/usr/X11R6/lib/modules/dri
${INSTALL_PROGRAM} ${WRKSRC}/linux_dri/libGL.so.1.2 \
${PREFIX}/usr/X11R6/lib
${INSTALL_PROGRAM} ${WRKSRC}/linux_dri/libGLU.so.1.3.060500 \
${PREFIX}/usr/X11R6/lib
${INSTALL_PROGRAM} ${WRKSRC}/linux_dri/libdrm.so.2.0.0 \
${PREFIX}/usr/lib
${INSTALL_PROGRAM} ${WRKSRC}/linux_dri/libexpat.so.1 \
${PREFIX}/usr/lib
.for i in ${MODULELIST}
${INSTALL_PROGRAM} ${WRKSRC}/linux_dri/${i} \
${PREFIX}/usr/X11R6/lib/modules/dri
.endfor
# The libglide3 distributed with linux_base is broken and is symlinked poorly, supply our own.
${INSTALL_PROGRAM} ${WRKDIR}/linux-libglide/libglide3-v3.so.0 ${PREFIX}/usr/X11R6/lib
${INSTALL_PROGRAM} ${WRKDIR}/linux-libglide/libglide3-v5.so.0 ${PREFIX}/usr/X11R6/lib
${LN} -sf libglide3-v3.so.0 ${PREFIX}/usr/X11R6/lib/libglide3-v3.so
${LN} -sf libglide3-v5.so.0 ${PREFIX}/usr/X11R6/lib/libglide3-v5.so
${INSTALL_PROGRAM} ${WRKDIR}/linux-dri-tools/libglut.so.3.7.0 ${PREFIX}/usr/X11R6/lib
${INSTALL_PROGRAM} ${WRKDIR}/linux-dri-tools/gears ${PREFIX}/usr/X11R6/bin
${BRANDELF} -t Linux ${PREFIX}/usr/X11R6/bin/gears
${INSTALL_PROGRAM} ${WRKDIR}/linux-dri-tools/glxinfo ${PREFIX}/usr/X11R6/bin
${BRANDELF} -t Linux ${PREFIX}/usr/X11R6/bin/glxinfo
post-install:
@${LDCONFIG_LINUX} ${PREFIX}/usr/X11R6/lib
.include <bsd.port.post.mk>