aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/drm-kmod/Makefile
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-10-06 15:08:42 +0800
committersobomax <sobomax@FreeBSD.org>2001-10-06 15:08:42 +0800
commit5edbbe8a60ea379cc5e34ed21e02663db0dbfcfa (patch)
tree9c45d6b2bc6701e5022ff6b084f49b92707de904 /graphics/drm-kmod/Makefile
parent513710a41d503e48bdf41d7b766dc2d0bd15be9c (diff)
downloadfreebsd-ports-gnome-5edbbe8a60ea379cc5e34ed21e02663db0dbfcfa.tar.gz
freebsd-ports-gnome-5edbbe8a60ea379cc5e34ed21e02663db0dbfcfa.tar.zst
freebsd-ports-gnome-5edbbe8a60ea379cc5e34ed21e02663db0dbfcfa.zip
Add drm-kmod 0.9.2, a FreeBSD kernel modules for 3d acceleration
with the DRI. PR: 31081 Submitted by: Eric Anholt <eanholt@gladstone.uoregon.edu>
Diffstat (limited to 'graphics/drm-kmod/Makefile')
-rw-r--r--graphics/drm-kmod/Makefile56
1 files changed, 56 insertions, 0 deletions
diff --git a/graphics/drm-kmod/Makefile b/graphics/drm-kmod/Makefile
new file mode 100644
index 000000000000..c846d2900355
--- /dev/null
+++ b/graphics/drm-kmod/Makefile
@@ -0,0 +1,56 @@
+# Ports collection makefile for: drm-kmod
+# Date created: 6 October 2001
+# Whom: Eric Anholt <eanholt@gladstone.uoregon.edu>
+#
+# $FreeBSD$
+#
+
+PORTNAME= drm-kmod
+PORTVERSION= 0.9.2
+CATEGORIES= graphics x11
+MASTER_SITES= http://gladstone.uoregon.edu/~eanholt/dri/
+
+MAINTAINER= eanholt@gladstone.uoregon.edu
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+PKGMESSAGE= ${WRKSRC}/.MESSAGE
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 400006
+BROKEN= "FreeBSD before 4.1 is not supported"
+.elif ${OSVERSION} < 500000
+.if defined(WITH_SMP)
+CFLAGS+= -DSMP -DAPIC_IO
+.endif
+.endif
+
+pre-extract:
+.if ${OSVERSION} < 500000
+.if !defined(WITH_SMP)
+ @${ECHO_MSG} "If you are using modules on an SMP system, define WITH_SMP to get SMP locking"
+ @${ECHO_MSG}
+.endif
+.endif
+
+pre-patch:
+ ${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/drm.sh
+
+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>