2001-10-06 07:08:42 +00:00
|
|
|
# Ports collection makefile for: drm-kmod
|
|
|
|
# Date created: 6 October 2001
|
|
|
|
# Whom: Eric Anholt <eanholt@gladstone.uoregon.edu>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= drm-kmod
|
2002-10-17 00:59:51 +00:00
|
|
|
PORTVERSION= 0.9.6
|
2001-10-06 07:08:42 +00:00
|
|
|
CATEGORIES= graphics x11
|
2002-10-17 00:59:51 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= anholt
|
2002-09-19 07:30:29 +00:00
|
|
|
MAINTAINER= anholt@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= A FreeBSD kernel modules for 3d acceleration with the DRI
|
2001-10-06 07:08:42 +00:00
|
|
|
|
2002-07-13 02:39:28 +00:00
|
|
|
USE_REINPLACE= yes
|
2001-10-06 07:08:42 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
PKGMESSAGE= ${WRKSRC}/.MESSAGE
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-05-12 01:17:37 +00:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2001-10-06 07:08:42 +00:00
|
|
|
.if ${OSVERSION} < 400006
|
|
|
|
BROKEN= "FreeBSD before 4.1 is not supported"
|
2002-09-19 07:30:29 +00:00
|
|
|
.elif ${OSVERSION} > 500000
|
2002-11-25 00:18:32 +00:00
|
|
|
IGNORE= "FreeBSD 5.0 has DRM supplied by the kernel"
|
2002-09-19 07:30:29 +00:00
|
|
|
.endif
|
|
|
|
|
2001-10-06 07:08:42 +00:00
|
|
|
.if defined(WITH_SMP)
|
|
|
|
CFLAGS+= -DSMP -DAPIC_IO
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-extract:
|
|
|
|
.if !defined(WITH_SMP)
|
2002-03-17 16:02:32 +00:00
|
|
|
@${ECHO_MSG} "If you are using modules on an SMP system, use "make -DWITH_SMP" to get SMP locking"
|
2001-10-06 07:08:42 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
2002-10-17 00:59:51 +00:00
|
|
|
@${ECHO_MSG} "If you don't want linux compatibility, use make -DDRM_NOLINUX"
|
|
|
|
@${ECHO_MSG}
|
2001-10-06 07:08:42 +00:00
|
|
|
|
|
|
|
pre-patch:
|
2002-07-13 02:39:28 +00:00
|
|
|
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/drm.sh
|
2001-10-06 07:08:42 +00:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message > \
|
|
|
|
${PKGMESSAGE}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/lib/drm
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tdfx/tdfx.ko ${PREFIX}/lib/drm/
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mga/mga.ko ${PREFIX}/lib/drm/
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/r128/r128.ko ${PREFIX}/lib/drm/
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/radeon/radeon.ko ${PREFIX}/lib/drm/
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gamma/gamma.ko ${PREFIX}/lib/drm/
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/drm.sh ${PREFIX}/etc/rc.d/drm.sh.sample
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|