Index: devel/evdev-proto/Makefile =================================================================== --- devel/evdev-proto/Makefile +++ devel/evdev-proto/Makefile @@ -2,7 +2,8 @@ PORTVERSION= 5.8 CATEGORIES= devel MASTER_SITES= https://github.com/torvalds/linux/raw/v${PORTVERSION}/include/uapi/linux/ -DISTFILES= input.h input-event-codes.h joystick.h uinput.h +DISTFILES= joystick.h +EVDEV_HDRS= input.h input-event-codes.h uinput.h DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} MAINTAINER= x11@FreeBSD.org @@ -21,6 +22,10 @@ .for i in ${DISTFILES} @${CP} ${DISTDIR}/${DIST_SUBDIR}/${i} ${WRKSRC} .endfor +.for i in ${EVDEV_HDRS} + @echo "#include " > ${WRKSRC}/${i} +.endfor + post-patch: @${REINPLACE_CMD} -i '' -E -e \ @@ -49,7 +54,7 @@ do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/include/linux/ -.for i in ${DISTFILES} +.for i in ${DISTFILES} ${EVDEV_HDRS} ${INSTALL_DATA} ${WRKSRC}/${i} \ ${STAGEDIR}${PREFIX}/include/linux/ .endfor