blob: 0f41d34ae8ab5b93b1aae579a57f8ecf85d8c2d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# 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.5
PORTREVISION= 1
CATEGORIES= graphics x11
MASTER_SITES= http://people.freebsd.org/~anholt/dri/files/
MAINTAINER= anholt@FreeBSD.org
USE_REINPLACE= yes
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
BROKEN= "FreeBSD 5.0 has DRM supplied by the kernel"
.endif
.if defined(WITH_SMP)
CFLAGS+= -DSMP -DAPIC_IO
.endif
pre-extract:
.if !defined(WITH_SMP)
@${ECHO_MSG} "If you are using modules on an SMP system, use "make -DWITH_SMP" to get SMP locking"
@${ECHO_MSG}
.endif
pre-patch:
${REINPLACE_CMD} -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>
|