diff options
author | kevlo <kevlo@FreeBSD.org> | 2014-12-08 14:32:39 +0800 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2014-12-08 14:32:39 +0800 |
commit | 1748d4d1397e4479f86201f4db80b7e2b20a23b0 (patch) | |
tree | 0b7a2e793e9580c968a3dc60bae59187b6b42aa8 /comms | |
parent | 6bf3cb99e48f7f7cbfa5c9ba1f98938be5ff8ee5 (diff) | |
download | freebsd-ports-gnome-1748d4d1397e4479f86201f4db80b7e2b20a23b0.tar.gz freebsd-ports-gnome-1748d4d1397e4479f86201f4db80b7e2b20a23b0.tar.zst freebsd-ports-gnome-1748d4d1397e4479f86201f4db80b7e2b20a23b0.zip |
Update to 20141206.
Diffstat (limited to 'comms')
-rw-r--r-- | comms/librs232/Makefile | 11 | ||||
-rw-r--r-- | comms/librs232/distinfo | 4 | ||||
-rw-r--r-- | comms/librs232/files/patch-rs232.c | 46 | ||||
-rw-r--r-- | comms/librs232/files/patch-rs232.h | 12 |
4 files changed, 14 insertions, 59 deletions
diff --git a/comms/librs232/Makefile b/comms/librs232/Makefile index e2a2d8c9e010..428d3689588f 100644 --- a/comms/librs232/Makefile +++ b/comms/librs232/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= librs232 -PORTVERSION= 20140105 +PORTVERSION= 20141206 CATEGORIES= comms DISTNAME= RS-232 MASTER_SITES= http://www.teuniz.net/RS-232/ @@ -10,19 +10,26 @@ MAINTAINER= kevlo@FreeBSD.org COMMENT= Simple serial library LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/gpl.txt WRKSRC= ${WRKDIR} -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES USES= uidfix USE_LDCONFIG= yes +PORTEXAMPLES= demo_rx.c demo_tx.c + post-extract: @${CP} ${FILESDIR}/${MAKEFILE} ${WRKSRC} post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc.txt ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} +.for f in ${PORTEXAMPLES} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${EXAMPLESDIR} +.endfor .include <bsd.port.mk> diff --git a/comms/librs232/distinfo b/comms/librs232/distinfo index e9da4894b57f..48f96fb855ec 100644 --- a/comms/librs232/distinfo +++ b/comms/librs232/distinfo @@ -1,2 +1,2 @@ -SHA256 (RS-232.tar.gz) = 6d0800639c1b72411591e02b99269509e9916ddfda8d9fc4f2e385d44916240e -SIZE (RS-232.tar.gz) = 11777 +SHA256 (RS-232.tar.gz) = d515fb842dc3a67816aa238b2e45d2ede675be254f04c512f51077980f7b4b6a +SIZE (RS-232.tar.gz) = 12088 diff --git a/comms/librs232/files/patch-rs232.c b/comms/librs232/files/patch-rs232.c index e68de21ffc8c..aeafa8bc83d9 100644 --- a/comms/librs232/files/patch-rs232.c +++ b/comms/librs232/files/patch-rs232.c @@ -1,46 +1,6 @@ ---- rs232.c.orig 2014-10-05 15:21:14.000000000 +0800 -+++ rs232.c 2014-12-04 14:24:26.000000000 +0800 -@@ -38,19 +38,23 @@ - - - --#ifdef __linux__ /* Linux */ -+#if defined(__linux__) || defined(__FreeBSD__) - - --int Cport[30], -+int Cport[38], - error; - - struct termios new_port_settings, -- old_port_settings[30]; -+ old_port_settings[38]; - --char comports[30][16]={"/dev/ttyS0","/dev/ttyS1","/dev/ttyS2","/dev/ttyS3","/dev/ttyS4","/dev/ttyS5", -- "/dev/ttyS6","/dev/ttyS7","/dev/ttyS8","/dev/ttyS9","/dev/ttyS10","/dev/ttyS11", -- "/dev/ttyS12","/dev/ttyS13","/dev/ttyS14","/dev/ttyS15","/dev/ttyUSB0", -- "/dev/ttyUSB1","/dev/ttyUSB2","/dev/ttyUSB3","/dev/ttyUSB4","/dev/ttyUSB5", -+char comports[38][16]={"/dev/cuau0", "/dev/cuau1", "/dev/cuau2", "/dev/cuau3", -+ "/dev/cuaU0", "/dev/cuaU1", "/dev/cuaU2", "/dev/cuaU3", -+ "/dev/ttyS0","/dev/ttyS1","/dev/ttyS2","/dev/ttyS3", -+ "/dev/ttyS4","/dev/ttyS5", "/dev/ttyS6","/dev/ttyS7", -+ "/dev/ttyS8","/dev/ttyS9","/dev/ttyS10","/dev/ttyS11", -+ "/dev/ttyS12","/dev/ttyS13","/dev/ttyS14","/dev/ttyS15", -+ "/dev/ttyUSB0", "/dev/ttyUSB1","/dev/ttyUSB2", -+ "/dev/ttyUSB3", "/dev/ttyUSB4","/dev/ttyUSB5", - "/dev/ttyAMA0","/dev/ttyAMA1","/dev/ttyACM0","/dev/ttyACM1", - "/dev/rfcomm0","/dev/rfcomm1","/dev/ircomm0","/dev/ircomm1"}; - -@@ -61,7 +65,7 @@ - int baudr, - status; - -- if((comport_number>29)||(comport_number<0)) -+ if((comport_number>37)||(comport_number<0)) - { - printf("illegal comport number\n"); - return(1); -@@ -107,28 +111,6 @@ +--- rs232.c.orig 2014-12-08 14:19:24.000000000 +0800 ++++ rs232.c 2014-12-08 14:19:38.000000000 +0800 +@@ -107,28 +107,6 @@ break; case 460800 : baudr = B460800; break; diff --git a/comms/librs232/files/patch-rs232.h b/comms/librs232/files/patch-rs232.h deleted file mode 100644 index 81c40ed93dc3..000000000000 --- a/comms/librs232/files/patch-rs232.h +++ /dev/null @@ -1,12 +0,0 @@ ---- rs232.h.orig 2014-12-04 14:17:08.000000000 +0800 -+++ rs232.h 2014-12-04 14:17:22.000000000 +0800 -@@ -45,8 +45,7 @@ - #include <string.h> - - -- --#ifdef __linux__ -+#if defined(__linux__) || defined(__FreeBSD__) - - #include <termios.h> - #include <sys/ioctl.h> |