blob: 37b71cf507e38c8488420b5cff6384a0ff11d232 (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
# New ports collection makefile for: input-wacom
# Date Created: 24 Oct 2008
# Whom: Dominic Fandrey <kamikaze@bsdforen.de>
#
# $FreeBSD$
#
PORTNAME= input-wacom
PORTVERSION= ${KLD_VERSION}.${WACOM_VERSION:C/-/./g}
PORTREVISION= 6
CATEGORIES= x11-drivers kld
MASTER_SITES= http://www.chillt.de/bsdwacom/:bsdwacom \
SF/linuxwacom/linuxwacom/${WACOM_VERSION}:linuxwacom
DISTFILES= ${BSDWACOM}.tbz:bsdwacom \
${LINUXWACOM}.tar.bz2:linuxwacom
EXTRACT_ONLY= ${BSDWACOM}.tbz
MAINTAINER= kamikaze@bsdforen.de
COMMENT= X.Org Wacom tablet driver and kernel module
MAN4= wacom.4x
MANCOMPRESSED= yes
USE_GMAKE= yes
USE_RC_SUBR= wacom
KMODDIR?= /boot/modules
XINPUTMODDIR= lib/xorg/modules/input
MAN4DIR= man/man4
WRKSRC= ${WRKDIR}
PLIST_SUB+= KMODDIR=${KMODDIR} \
XINPUTMODDIR=${XINPUTMODDIR} \
PORTTYPE=${PORTTYPE}
SUB_LIST:= ${PLIST_SUB}
SUB_FILES+= pkg-message-${PORTTYPE}
PKGMESSAGE= ${WRKDIR}/pkg-message-${PORTTYPE}
XORG_CAT= driver
USE_XORG= xi
LINUXWACOM= linuxwacom-${WACOM_VERSION}
BSDWACOM= bsdwacom-${KLD_VERSION}
WACOM_VERSION= 0.8.2-2
KLD_VERSION= 40
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 800064
OPTIONS= UWACOMKLD "Install USB kernel module (not supported on 8.x)" Off
.else
OPTIONS= UWACOMKLD "Install USB kernel module (not supported on 8.x)" On
.endif
.include <bsd.port.options.mk>
.if defined(WITH_UWACOMKLD)
.if ${OSVERSION} >= 800064
BROKEN= does not build with USB support
.endif
PLIST_SUB+= UWACOMKLD="uwacom.ko"
PORTTYPE= usb
.else
PLIST_SUB+= UWACOMKLD="@noinst UWACOMKLD uwacom.ko"
PORTTYPE= serial
.endif
do-configure:
@cd ${WRKDIR}/linuxwacom \
&& ${LN} -s ${DISTDIR}/${DIST_SUBDIR}/${LINUXWACOM}.tar.bz2 \
&& ${SETENV} ${MAKE_ENV} ./run_configure
do-build:
.if defined(WITH_UWACOMKLD)
@cd ${WRKDIR}/uwacom \
&& ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS}
.endif
@cd ${WRKDIR}/linuxwacom/${LINUXWACOM} \
&& ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS}
do-install:
.if defined(WITH_UWACOMKLD)
@${MKDIR} ${KMODDIR}
@${INSTALL_KLD} ${WRKDIR}/uwacom/uwacom.ko ${KMODDIR}/
.endif
@${MKDIR} ${PREFIX}/${XINPUTMODDIR} ${PREFIX}/${MAN4DIR}
@cd ${WRKDIR}/linuxwacom/${LINUXWACOM}/src/util/ \
&& ${SETENV} ${MAKE_ENV} ${GMAKE} install
@${INSTALL} ${WRKDIR}/linuxwacom/${LINUXWACOM}/src/xdrv/wacom_drv.so \
${PREFIX}/${XINPUTMODDIR}/
@${INSTALL_MAN} ${WRKDIR}/linuxwacom/${LINUXWACOM}/src/wacom.4x.gz \
${PREFIX}/${MAN4DIR}/
plist: clean configure
@${ECHO} "===> Rebuilding PLIST."
@${TOUCH} ${PLIST}
@${RM} ${PLIST}
@cd ${WRKDIR}/linuxwacom \
&& ${SETENV} ${MAKE_ENV} PREFIX=${WRKDIR}/plist ./run_configure
@${MKDIR} ${WRKDIR}/plist
@cd ${WRKDIR}/linuxwacom/${LINUXWACOM}/src/util \
&& ${SETENV} ${MAKE_ENV} ${GMAKE} install
@cd ${WRKDIR}/linuxwacom \
&& ${SETENV} ${MAKE_ENV} ./run_configure
@${FIND} ${WRKDIR}/plist/ -not -type d \
| ${SED} "s|${WRKDIR}/plist/||1" \
>> ${PLIST}
@${FIND} -d ${WRKDIR}/plist/ -mindepth 2 -type d \
| ${SED} "s|${WRKDIR}/plist/|@dirrm |1" \
>> ${PLIST}
@${ECHO} "%%XINPUTMODDIR%%/wacom_drv.so" >> ${PLIST}
@${ECHO} "@dirrmtry %%XINPUTMODDIR%%" >> ${PLIST}
@${ECHO} "@cwd %%KMODDIR%%" >> ${PLIST}
@${ECHO} "%%UWACOMKLD%%" >> ${PLIST}
post-install:
@${ECHO} "===> Displaying pkg-message."
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|