2003-11-09 08:24:56 +00:00
|
|
|
# New ports collection makefile for: dri
|
2004-07-23 07:07:22 +00:00
|
|
|
# Date created: 8 Nov 2003
|
2003-11-09 08:24:56 +00:00
|
|
|
# Whom: anholt@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dri
|
2005-02-14 07:08:27 +00:00
|
|
|
PORTVERSION= 6.2.1
|
2004-09-26 03:20:01 +00:00
|
|
|
PORTEPOCH= 2
|
2003-11-09 08:24:56 +00:00
|
|
|
CATEGORIES= graphics
|
2005-02-14 07:08:27 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
|
|
|
http://people.freebsd.org/~anholt/dri/
|
2004-12-23 01:35:49 +00:00
|
|
|
MASTER_SITE_SUBDIR= anholt
|
2005-02-14 07:08:27 +00:00
|
|
|
DISTFILES= Mesa-6.2.1-20050213.tar.bz2 \
|
2005-01-12 23:29:27 +00:00
|
|
|
drm-20050109.tar.bz2
|
2003-11-09 08:24:56 +00:00
|
|
|
|
|
|
|
MAINTAINER= anholt@FreeBSD.org
|
2004-07-23 07:07:22 +00:00
|
|
|
COMMENT= OpenGL hardware acceleration drivers for the DRI
|
2003-11-09 08:24:56 +00:00
|
|
|
|
2004-12-23 01:35:49 +00:00
|
|
|
BUILD_DEPENDS= makedepend:${X_IMAKE_PORT}
|
2003-11-09 08:24:56 +00:00
|
|
|
|
2005-05-05 01:20:50 +00:00
|
|
|
CONFLICTS= xfree86-dri-* dri-6.2.2005*
|
2004-08-11 19:45:03 +00:00
|
|
|
|
2004-12-23 01:35:49 +00:00
|
|
|
WRKSRC= ${WRKDIR}/Mesa
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
2004-12-24 09:05:40 +00:00
|
|
|
MAKE_ENV+= FBSDCC="${CC}" FBSDCXX="${CXX}" \
|
2004-12-29 22:41:28 +00:00
|
|
|
FBSDCFLAGS="${CFLAGS}" FBSDCXXFLAGS="${CXXFLAGS}" \
|
|
|
|
PTHREAD_LIBS=${PTHREAD_LIBS}
|
2003-11-22 23:58:06 +00:00
|
|
|
|
2004-12-23 01:35:49 +00:00
|
|
|
ONLY_FOR_ARCHS= i386 alpha amd64
|
|
|
|
|
|
|
|
DRIMODDIR= ${PREFIX}/lib/modules/dri
|
2003-11-09 08:24:56 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2004-12-23 01:35:49 +00:00
|
|
|
do-install:
|
|
|
|
.if ${ARCH} == i386
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/i810_dri.so ${DRIMODDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/i830_dri.so ${DRIMODDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/i915_dri.so ${DRIMODDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/unichrome_dri.so ${DRIMODDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/tdfx_dri.so ${DRIMODDIR}
|
2005-01-12 23:29:27 +00:00
|
|
|
.elif ${ARCH} == amd64
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/i915_dri.so ${DRIMODDIR}
|
2004-12-23 01:35:49 +00:00
|
|
|
.endif
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/mach64_dri.so ${DRIMODDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/mga_dri.so ${DRIMODDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/r128_dri.so ${DRIMODDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/r200_dri.so ${DRIMODDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/radeon_dri.so ${DRIMODDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/savage_dri.so ${DRIMODDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/sis_dri.so ${DRIMODDIR}
|
|
|
|
|
2003-11-09 08:24:56 +00:00
|
|
|
.if ${ARCH} == i386
|
|
|
|
PLIST_SUB+= I386=""
|
2005-01-12 23:29:27 +00:00
|
|
|
PLIST_SUB+= I386_AMD64=""
|
2004-12-23 01:35:49 +00:00
|
|
|
ALL_TARGET= freebsd-dri-x86
|
2005-01-12 23:29:27 +00:00
|
|
|
.elif ${ARCH} == amd64
|
|
|
|
PLIST_SUB+= I386="@comment "
|
|
|
|
PLIST_SUB+= I386_AMD64=""
|
|
|
|
ALL_TARGET= freebsd-dri
|
2003-11-09 08:24:56 +00:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= I386="@comment "
|
2005-01-12 23:29:27 +00:00
|
|
|
PLIST_SUB+= I386_AMD64="@comment "
|
2004-12-23 01:35:49 +00:00
|
|
|
ALL_TARGET= freebsd-dri
|
2004-09-26 03:20:01 +00:00
|
|
|
.endif
|
2003-11-09 08:24:56 +00:00
|
|
|
.include <bsd.port.post.mk>
|