aboutsummaryrefslogtreecommitdiffstats
path: root/x11-drivers/xf86-input-wacom/Makefile
blob: ea12949041108cd28d5c75fc2b04acb2072dd8c2 (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
# $FreeBSD$

PORTNAME=   xf86-input-wacom
PORTVERSION=    0.26.1
CATEGORIES= x11-drivers
MASTER_SITES=   SF/linuxwacom/${PORTNAME}

MAINTAINER= jbeich@vfemail.net
COMMENT=    X.Org Wacom tablet driver

LICENSE=    GPLv2 # or any later version

BUILD_DEPENDS=  v4l_compat>=1.0.20110603:${PORTSDIR}/multimedia/v4l_compat
RUN_DEPENDS=    webcamd>0:${PORTSDIR}/multimedia/webcamd

USES=       tar:bzip2 pathfix pkgconfig libtool
USE_XORG=   xrandr xinerama
XORG_CAT=   driver
SUB_FILES=  pkg-message
CONFIGURE_ARGS= --without-systemd-unit-dir \
        --without-udev-rules-dir \
        --without-doxygen
INSTALL_TARGET= install-strip

OPTIONS_DEFINE= DEBUG TEST

DEBUG_CONFIGURE_ENABLE=debug

TEST_CONFIGURE_ENABLE=unit-tests
TEST_ALL_TARGET=check

post-patch:
    @${REINPLACE_CMD} -e 's/as_fn_error.*udev/${TRUE} &/' \
        -e 's/dir=.*xorg-server/& \
            --define-variable prefix="$$prefix"/' \
        ${WRKSRC}/configure

# XXX adjust MatchProduct to whatever Xorg/devd reports
    @${REINPLACE_CMD} -e '/^SUBDIRS/s/ conf//' \
        ${WRKSRC}/Makefile.in

post-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/etc/X11/xorg.conf.d
    ${INSTALL_DATA} ${FILESDIR}/wacom.conf.sample \
        ${STAGEDIR}${PREFIX}/etc/X11/xorg.conf.d

.include <bsd.port.mk>