[Midnightbsd-cvs] mports [24829] trunk/devel: add evdev-proto
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Jan 30 23:09:25 EST 2019
Revision: 24829
http://svnweb.midnightbsd.org/mports/?rev=24829
Author: laffer1
Date: 2019-01-30 23:09:25 -0500 (Wed, 30 Jan 2019)
Log Message:
-----------
add evdev-proto
Modified Paths:
--------------
trunk/devel/Makefile
Added Paths:
-----------
trunk/devel/evdev-proto/
trunk/devel/evdev-proto/Makefile
trunk/devel/evdev-proto/distinfo
trunk/devel/evdev-proto/pkg-descr
Modified: trunk/devel/Makefile
===================================================================
--- trunk/devel/Makefile 2019-01-31 04:04:34 UTC (rev 24828)
+++ trunk/devel/Makefile 2019-01-31 04:09:25 UTC (rev 24829)
@@ -71,6 +71,7 @@
SUBDIR += efl
SUBDIR += eggdbus
SUBDIR += epm
+SUBDIR += evdev-proto
SUBDIR += fam
SUBDIR += ffcall
SUBDIR += fmake
Added: trunk/devel/evdev-proto/Makefile
===================================================================
--- trunk/devel/evdev-proto/Makefile (rev 0)
+++ trunk/devel/evdev-proto/Makefile 2019-01-31 04:09:25 UTC (rev 24829)
@@ -0,0 +1,59 @@
+# $MidnightBSD$
+# $FreeBSD: head/devel/evdev-proto/Makefile 487799 2018-12-19 14:44:12Z zeising $
+
+PORTNAME= evdev-proto
+PORTVERSION= 4.19
+CATEGORIES= devel
+MASTER_SITES= https://github.com/torvalds/linux/raw/v${PORTVERSION}/include/uapi/linux/
+DISTFILES= input.h input-event-codes.h uinput.h
+DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Input event device header files
+
+LICENSE= gpl2
+
+NO_BUILD= yes
+NO_ARCH= yes
+NO_WRKSUBDIR= yes
+
+PLIST_FILES= ${DISTFILES:S|^|include/linux/|}
+
+do-extract:
+ @${MKDIR} ${WRKSRC}
+.for i in ${DISTFILES}
+ @${CP} ${DISTDIR}/${DIST_SUBDIR}/${i} ${WRKSRC}
+.endfor
+
+post-patch:
+ @${REINPLACE_CMD} -i '' -E -e \
+ 's/__u([[:digit:]]+)/uint\1_t/g ; \
+ s/__s([[:digit:]]+)/int\1_t/g ; \
+ /# *include/ s|<sys/ioctl.h>|<sys/ioccom.h>| ; \
+ /# *include[[:space:]]+<linux\/types.h>/d ; \
+ /EVIOC(RMFF|GRAB|REVOKE)/ s/_IOW(.*), *int/_IOWINT\1/ ; \
+ /EVIOCGKEYCODE/ s/_IOR/_IOWR/ ; \
+ /EVIOCGMASK/ s/_IOR/_IOW/ ; \
+ /EVIOCGMTSLOTS/ s/_IOC_READ/IOC_INOUT/ ; \
+ /#define/ s/_IOC_READ/IOC_OUT/ ; \
+ /#define/ s/_IOC_WRITE/IOC_IN/ ; \
+ s/[[:space:]]+__user[[:space:]]+/ / ; \
+ /__USE_TIME_BITS64/ s|^#if (.*)$$|#if 1 /* \1 */|' \
+ ${WRKSRC}/input.h
+ @${REINPLACE_CMD} -i '' -E -e \
+ 's/__u([[:digit:]]+)/uint\1_t/g ; \
+ s/__s([[:digit:]]+)/int\1_t/g ; \
+ /# *include/s|<linux/types.h>|<sys/types.h>| ; \
+ /#define/ s/_IOW(.*), *int/_IOWINT\1/ ; \
+ /#define/ s/_IOW(.*), *char\*/_IO\1/ ; \
+ /#define/ s/_IOC_READ/IOC_OUT/' \
+ ${WRKSRC}/uinput.h
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/include/linux/
+.for i in ${DISTFILES}
+ ${INSTALL_DATA} ${WRKSRC}/${i} \
+ ${STAGEDIR}${PREFIX}/include/linux/
+.endfor
+
+.include <bsd.port.mk>
Property changes on: trunk/devel/evdev-proto/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/evdev-proto/distinfo
===================================================================
--- trunk/devel/evdev-proto/distinfo (rev 0)
+++ trunk/devel/evdev-proto/distinfo 2019-01-31 04:09:25 UTC (rev 24829)
@@ -0,0 +1,7 @@
+TIMESTAMP = 1545220953
+SHA256 (evdev-proto-4.19/input.h) = 6daff6404fe93484d1c53f8f8bd49d3ae2094f3c1b41871e05a9ba5c8eecc420
+SIZE (evdev-proto-4.19/input.h) = 15929
+SHA256 (evdev-proto-4.19/input-event-codes.h) = a736ca688b6d5fd5d0f52d77b620387dd1f0d360ebba53106ca7be96a8231249
+SIZE (evdev-proto-4.19/input-event-codes.h) = 24313
+SHA256 (evdev-proto-4.19/uinput.h) = 9123b078f13047c34797332c4f835e5f1e418387e9a950024920faa5a1186974
+SIZE (evdev-proto-4.19/uinput.h) = 9276
Property changes on: trunk/devel/evdev-proto/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/evdev-proto/pkg-descr
===================================================================
--- trunk/devel/evdev-proto/pkg-descr (rev 0)
+++ trunk/devel/evdev-proto/pkg-descr 2019-01-31 04:09:25 UTC (rev 24829)
@@ -0,0 +1 @@
+This port installs the input event device header files.
Property changes on: trunk/devel/evdev-proto/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list