Date: Fri, 5 Oct 2001 18:58:04 -0700 (PDT) From: Eric Anholt <anholt@positron.anholt.dyn.dhs.org> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/31081: New port: drm-kmod Message-ID: <200110060158.f961w4803750@positron.anholt.dyn.dhs.org>
next in thread | raw e-mail | index | archive | help
>Number: 31081 >Category: ports >Synopsis: New port: drm-kmod >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Oct 05 19:00:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Eric Anholt >Release: FreeBSD 4.3-STABLE i386 >Organization: >Environment: System: FreeBSD positron.anholt.dyn.dhs.org 4.3-STABLE FreeBSD 4.3-STABLE #3: Wed Oct 3 21:22:13 PDT 2001 anholt@positron.anholt.dyn.dhs.org:/usr/src/stable/sys/compile/MYKERNEL i386 >Description: New port of the DRM kernel modules for XFree86-4.x Direct Rendering Infrastructure. Allows hardware-accelerated 3D with some patches to XFree86-4 >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # drm-kmod # drm-kmod/pkg-descr # drm-kmod/pkg-comment # drm-kmod/pkg-message # drm-kmod/distinfo # drm-kmod/pkg-plist # drm-kmod/Makefile # echo c - drm-kmod mkdir -p drm-kmod > /dev/null 2>&1 echo x - drm-kmod/pkg-descr sed 's/^X//' >drm-kmod/pkg-descr << 'END-of-drm-kmod/pkg-descr' XFreeBSD DRM kernel modules for the Direct Rendering XInfrastructure. With XFree86 4.0 they provide 3d Xacceleration under X for 3dfx Voodoo3/5/Banshee, XMatrox G200 and G400, and ATI Rage128 and Radeon cards. X XWWW: http://gladstone.uoregon.edu/~eanholt/dri/ END-of-drm-kmod/pkg-descr echo x - drm-kmod/pkg-comment sed 's/^X//' >drm-kmod/pkg-comment << 'END-of-drm-kmod/pkg-comment' XFreeBSD kernel modules for 3d acceleration with the DRI END-of-drm-kmod/pkg-comment echo x - drm-kmod/pkg-message sed 's/^X//' >drm-kmod/pkg-message << 'END-of-drm-kmod/pkg-message' X------------------------------------------------------------------------------- XTo use the drivers, make a copy of %%PREFIX%%/etc/rc.d/drm.sh.sample under X%%PREFIX%%/etc/rc.d/drm.sh. X XTo load the drivers run (as root): X X# %%PREFIX%%/etc/rc.d/drm.sh start X XTo unload it: X X# %%PREFIX%%/etc/rc.d/drm.sh stop X XIt'll also load the drivers automatically when the system is started. XAlternatively, you could add %%PREFIX%%/lib/drm to your kern.module_path sysctl Xand let XFree86 load the drivers for you. X XOnce the modules are loaded, check http://gladstone.uoregon.edu/~eanholt/dri/ Xfor more information on how to set up the DRI. X XPlease report problems to Eric Anholt <eanholt@gladstone.uoregon.edu>. X------------------------------------------------------------------------------- END-of-drm-kmod/pkg-message echo x - drm-kmod/distinfo sed 's/^X//' >drm-kmod/distinfo << 'END-of-drm-kmod/distinfo' XMD5 (drm-kmod-0.9.2.tar.gz) = b4397e2f0c6138992f2a43076ec70da9 END-of-drm-kmod/distinfo echo x - drm-kmod/pkg-plist sed 's/^X//' >drm-kmod/pkg-plist << 'END-of-drm-kmod/pkg-plist' Xetc/rc.d/drm.sh.sample Xlib/drm/tdfx.ko Xlib/drm/r128.ko Xlib/drm/radeon.ko Xlib/drm/mga.ko Xlib/drm/gamma.ko X@dirrm lib/drm X X END-of-drm-kmod/pkg-plist echo x - drm-kmod/Makefile sed 's/^X//' >drm-kmod/Makefile << 'END-of-drm-kmod/Makefile' X# Ports collection makefile for: aureal-kmod X# Date created: 15 January 2001 X# Whom: Maxim Sobolev <sobomax@FreeBSD.org> X# X# $FreeBSD: ports/audio/aureal-kmod/Makefile,v 1.11 2001/08/24 15:01:55 knu Exp $ X# X XPORTNAME= drm-kmod XPORTVERSION= 0.9.2 X#PORTREVISION= 0 XCATEGORIES= graphics x11 XMASTER_SITES= http://gladstone.uoregon.edu/~eanholt/dri/ X XMAINTAINER= eanholt@gladstone.uoregon.edu X XWRKSRC= ${WRKDIR}/${PORTNAME} X XPKGMESSAGE= ${WRKSRC}/.MESSAGE X X.include <bsd.port.pre.mk> X X.if ${OSVERSION} < 400006 XBROKEN= "FreeBSD before 4.1 is not supported" X.elif ${OSVERSION} < 500000 X.if defined(WITH_SMP) XCFLAGS += -DSMP -DAPIC_IO X.endif X.endif X Xpre-extract: X.if ${OSVERSION} < 500000 X.if !defined(WITH_SMP) X @${ECHO_MSG} "If you are using modules on an SMP system, define WITH_SMP to get SMP locking" X @${ECHO_MSG} X.endif X.endif X Xpre-patch: X ${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/drm.sh X Xpre-install: X @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message > \ X ${PKGMESSAGE} X Xdo-install: X ${MKDIR} ${PREFIX}/lib/drm X ${INSTALL_PROGRAM} ${WRKSRC}/tdfx/tdfx.ko ${PREFIX}/lib/drm/ X ${INSTALL_PROGRAM} ${WRKSRC}/mga/mga.ko ${PREFIX}/lib/drm/ X ${INSTALL_PROGRAM} ${WRKSRC}/r128/r128.ko ${PREFIX}/lib/drm/ X ${INSTALL_PROGRAM} ${WRKSRC}/radeon/radeon.ko ${PREFIX}/lib/drm/ X ${INSTALL_PROGRAM} ${WRKSRC}/gamma/gamma.ko ${PREFIX}/lib/drm/ X Xpost-install: X @${INSTALL_SCRIPT} ${WRKSRC}/drm.sh ${PREFIX}/etc/rc.d/drm.sh.sample X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.post.mk> END-of-drm-kmod/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110060158.f961w4803750>