View | Details | Raw Unified | Return to bug 240964
Collapse All | Expand All

(-)devel/evdev-proto/Makefile (-2 / +8 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	evdev-proto
3
PORTNAME=	evdev-proto
4
PORTVERSION=	4.19
4
PORTVERSION=	4.19
5
PORTREVISION=	1
5
CATEGORIES=	devel
6
CATEGORIES=	devel
6
MASTER_SITES=	https://github.com/torvalds/linux/raw/v${PORTVERSION}/include/uapi/linux/
7
MASTER_SITES=	https://github.com/torvalds/linux/raw/v${PORTVERSION}/include/uapi/linux/
7
DISTFILES=	input.h input-event-codes.h uinput.h
8
DISTFILES=	input.h input-event-codes.h uinput.h
Lines 26-32 Link Here
26
27
27
post-patch:
28
post-patch:
28
	@${REINPLACE_CMD} -i '' -E -e \
29
	@${REINPLACE_CMD} -i '' -E -e \
29
		's/__u([[:digit:]]+)/uint\1_t/g ; \
30
		's/_UAPI_INPUT_H/_EVDEV_INPUT_H/g ; \
31
		s/__u([[:digit:]]+)/uint\1_t/g ; \
30
		s/__s([[:digit:]]+)/int\1_t/g ; \
32
		s/__s([[:digit:]]+)/int\1_t/g ; \
31
		/# *include/ s|<sys/ioctl.h>|<sys/ioccom.h>| ; \
33
		/# *include/ s|<sys/ioctl.h>|<sys/ioccom.h>| ; \
32
		/# *include[[:space:]]+<linux\/types.h>/d ; \
34
		/# *include[[:space:]]+<linux\/types.h>/d ; \
Lines 40-46 Link Here
40
		/__USE_TIME_BITS64/ s|^#if (.*)$$|#if 1 /* \1 */|' \
42
		/__USE_TIME_BITS64/ s|^#if (.*)$$|#if 1 /* \1 */|' \
41
		${WRKSRC}/input.h
43
		${WRKSRC}/input.h
42
	@${REINPLACE_CMD} -i '' -E -e \
44
	@${REINPLACE_CMD} -i '' -E -e \
43
		's/__u([[:digit:]]+)/uint\1_t/g ; \
45
		's/_UAPI__UINPUT_H_/_EVDEV_UINPUT_H_/g ; \
46
		s/__u([[:digit:]]+)/uint\1_t/g ; \
44
		s/__s([[:digit:]]+)/int\1_t/g ; \
47
		s/__s([[:digit:]]+)/int\1_t/g ; \
45
		/# *include/s|<linux/types.h>|<sys/types.h>| ; \
48
		/# *include/s|<linux/types.h>|<sys/types.h>| ; \
46
		/#define/ s/_IOW(.*), *int/_IOWINT\1/ ; \
49
		/#define/ s/_IOW(.*), *int/_IOWINT\1/ ; \
Lines 47-52 Link Here
47
		/#define/ s/_IOW(.*), *char\*/_IO\1/ ; \
50
		/#define/ s/_IOW(.*), *char\*/_IO\1/ ; \
48
		/#define/ s/_IOC_READ/IOC_OUT/' \
51
		/#define/ s/_IOC_READ/IOC_OUT/' \
49
		${WRKSRC}/uinput.h
52
		${WRKSRC}/uinput.h
53
	@${REINPLACE_CMD} -i '' -E -e \
54
		's/_UAPI_INPUT_EVENT_CODES_H/_EVDEV_INPUT_EVENT_CODES_H/g' \
55
		${WRKSRC}/input-event-codes.h
50
56
51
do-install:
57
do-install:
52
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/linux/
58
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/linux/
(-)devel/libmtdev/Makefile (-1 / +2 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	mtdev
3
PORTNAME=	mtdev
4
PORTVERSION=	1.1.5
4
PORTVERSION=	1.1.5
5
PORTREVISION=	2
5
PORTREVISION=	3
6
CATEGORIES=	devel
6
CATEGORIES=	devel
7
MASTER_SITES=	http://bitmath.org/code/${PORTNAME}/
7
MASTER_SITES=	http://bitmath.org/code/${PORTNAME}/
8
PKGNAMEPREFIX=	lib
8
PKGNAMEPREFIX=	lib
Lines 14-19 Link Here
14
LICENSE_FILE=	${WRKSRC}/COPYING
14
LICENSE_FILE=	${WRKSRC}/COPYING
15
15
16
BUILD_DEPENDS=	${LOCALBASE}/include/linux/input.h:devel/evdev-proto
16
BUILD_DEPENDS=	${LOCALBASE}/include/linux/input.h:devel/evdev-proto
17
RUN_DEPENDS=	${LOCALBASE}/include/linux/input.h:devel/evdev-proto
17
18
18
USES=		libtool pathfix tar:bz2
19
USES=		libtool pathfix tar:bz2
19
GNU_CONFIGURE=	yes
20
GNU_CONFIGURE=	yes

Return to bug 240964