aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xorg-minimal/Makefile
blob: 3c7bc30b5c890bd2e8ad15f4ec8c30bbbe6dbe2f (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
# $FreeBSD$

PORTNAME=   xorg
PORTVERSION=    7.5.2
PORTREVISION=   1
CATEGORIES= x11 x11-servers
MASTER_SITES=   # none
PKGNAMESUFFIX=  -minimal
DISTFILES=  # none
EXTRACT_ONLY=   # none

MAINTAINER= ports@FreeBSD.org
COMMENT=    X.Org minimal distribution metaport

NO_BUILD=   yes
NO_MTREE=   yes

.include <bsd.port.options.mk>

VIDEO_DRIVER?=  vesa

RUN_DEPENDS+=   ${LOCALBASE}/bin/Xorg:${PORTSDIR}/x11-servers/xorg-server \
        ${LOCALBASE}/lib/xorg/modules/input/mouse_drv.so:${PORTSDIR}/x11-drivers/xf86-input-mouse \
        ${LOCALBASE}/lib/xorg/modules/input/kbd_drv.so:${PORTSDIR}/x11-drivers/xf86-input-keyboard \
        ${LOCALBASE}/bin/xinit:${PORTSDIR}/x11/xinit \
        ${LOCALBASE}/bin/xauth:${PORTSDIR}/x11/xauth
.if ${VIDEO_DRIVER} == "nvidia"
RUN_DEPENDS+=   ${LOCALBASE}/lib/xorg/modules/drivers/nvidia_drv.so:${PORTSDIR}/x11/nvidia-driver
.elif ${VIDEO_DRIVER} == "intel29"
RUN_DEPENDS+=   ${LOCALBASE}/lib/xorg/modules/drivers/intel_drv.so:${PORTSDIR}/x11-drivers/xf86-video-${VIDEO_DRIVER}
.else
RUN_DEPENDS+=   ${LOCALBASE}/lib/xorg/modules/drivers/${VIDEO_DRIVER}_drv.so:${PORTSDIR}/x11-drivers/xf86-video-${VIDEO_DRIVER}
.endif

.if ${VIDEO_DRIVER} == intel && defined(WITH_NEW_XORG)
RUN_DEPENDS+=   ${LOCALBASE}/lib/va/i965_drv_video.so:${PORTSDIR}/multimedia/libva-intel-driver
.endif

do-install:

pre-everything::
    @${ECHO_MSG} "This is a meta-port, meaning that it just depends on its subparts of the port."
    @${ECHO_MSG} "It won't build and install all the parts until you have typed make install"
    @${ECHO_MSG} "This port does not ensure things are upgraded; use portmaster if you want to"
    @${ECHO_MSG} "upgrade X.Org. The \"vesa\" driver is installed by default. You can choose a"
    @${ECHO_MSG} "different one by means of the VIDEO_DRIVER parameter. For example:"
    @${ECHO_MSG} ""
    @${ECHO_MSG} "        make install VIDEO_DRIVER=intel"
    @${ECHO_MSG} ""

.include <bsd.port.mk>