diff options
author | yuri <yuri@FreeBSD.org> | 2018-02-14 03:15:13 +0800 |
---|---|---|
committer | yuri <yuri@FreeBSD.org> | 2018-02-14 03:15:13 +0800 |
commit | 77db39589bb9735cc2cedc03d2c2fc6a9d990f6e (patch) | |
tree | ad591a4b64bbc13744652e6e601df5b0a43b116a /x11 | |
parent | 3a692e599c4a36d487cd22a279c17ef992a5dbf0 (diff) | |
download | freebsd-ports-gnome-77db39589bb9735cc2cedc03d2c2fc6a9d990f6e.tar.gz freebsd-ports-gnome-77db39589bb9735cc2cedc03d2c2fc6a9d990f6e.tar.zst freebsd-ports-gnome-77db39589bb9735cc2cedc03d2c2fc6a9d990f6e.zip |
x11/libsynaptics: Update to 0.14.6c
Additional port changes:
* Changed to DISTVERSION
* Added LICENSE and LICENSE_FILE
* Added USES=localbase
Reported by: portscout
Approved by: tcberner (mentor, implicit)
Diffstat (limited to 'x11')
-rw-r--r-- | x11/libsynaptics/Makefile | 11 | ||||
-rw-r--r-- | x11/libsynaptics/distinfo | 5 | ||||
-rw-r--r-- | x11/libsynaptics/files/patch-pad.cpp | 91 | ||||
-rw-r--r-- | x11/libsynaptics/pkg-plist | 5 |
4 files changed, 18 insertions, 94 deletions
diff --git a/x11/libsynaptics/Makefile b/x11/libsynaptics/Makefile index 58318a43e72d..c2aa22886f6f 100644 --- a/x11/libsynaptics/Makefile +++ b/x11/libsynaptics/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= libsynaptics -PORTVERSION= 0.14.6b -PORTREVISION= 4 +DISTVERSION= 0.14.6c CATEGORIES= x11 MASTER_SITES= http://qsynaptics.sourceforge.net/ \ http://www.hitnet.rwth-aachen.de/~brueffer/distfiles/ @@ -11,13 +10,13 @@ MASTER_SITES= http://qsynaptics.sourceforge.net/ \ MAINTAINER= ports@FreeBSD.org COMMENT= Library to access the Xorg/XFree86 Synaptics TouchPad Driver -USES= libtool tar:bzip2 +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= libtool localbase tar:bzip2 GNU_CONFIGURE= yes USE_XORG= x11 INSTALL_TARGET= install-strip USE_LDCONFIG= yes -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib - .include <bsd.port.mk> diff --git a/x11/libsynaptics/distinfo b/x11/libsynaptics/distinfo index efc083c2c774..c41ac2b1104a 100644 --- a/x11/libsynaptics/distinfo +++ b/x11/libsynaptics/distinfo @@ -1,2 +1,3 @@ -SHA256 (libsynaptics-0.14.6b.tar.bz2) = 05fd6d067a735e0534968acdad3276a87b7180f3c118e1cb75301132357c560f -SIZE (libsynaptics-0.14.6b.tar.bz2) = 273936 +TIMESTAMP = 1518548190 +SHA256 (libsynaptics-0.14.6c.tar.bz2) = 5732c30fd2284da2f5e9ccd8511061846de78896f79c40c46227218ff85df900 +SIZE (libsynaptics-0.14.6c.tar.bz2) = 221401 diff --git a/x11/libsynaptics/files/patch-pad.cpp b/x11/libsynaptics/files/patch-pad.cpp index 5da9ac8020d2..1c828334da32 100644 --- a/x11/libsynaptics/files/patch-pad.cpp +++ b/x11/libsynaptics/files/patch-pad.cpp @@ -1,86 +1,11 @@ ---- pad.cpp.orig Thu Sep 14 13:51:00 2006 -+++ pad.cpp Thu Sep 14 13:53:35 2006 -@@ -15,12 +15,14 @@ - #include "version.h" - - #include <X11/Xdefs.h> // for typedef Bool -+#include <sys/types.h> - #include <sys/shm.h> - #include <stdlib.h> -+#include <stdio.h> - #include <unistd.h> - - #include <pthread.h> --static pthread_mutex_t lock; -+static pthread_mutex_t mylock; - - #define PAROFF( verId, par ) \ - offsetof( SynShm, verId ) + offsetof( ShmSegment##verId, par ) -@@ -32,7 +34,7 @@ - p.max_val = max; - - #define NODRIVERVER VER( 0, 0, 0 ) --#define RETURN( val ) pthread_mutex_unlock( &lock ); return ( val ) -+#define RETURN( val ) pthread_mutex_unlock( &mylock ); return ( val ) - - +--- pad.cpp.orig 2018-02-13 19:06:19 UTC ++++ pad.cpp +@@ -9,7 +9,7 @@ + // singleton specific code // -@@ -82,7 +84,7 @@ - mSelf = new Synaptics::Pad(); // call constructor - else - { -- pthread_mutex_lock( &lock ); -+ pthread_mutex_lock( &mylock ); - return; - } - -@@ -333,7 +335,7 @@ - PadType pt = PT_NONE; - - // FIXME: detection just based on the assumption that the driver will register as unknown -- if ( mHasShm and mDetectedDriver == DV_UNKNOWN ) -+ if ( mHasShm && mDetectedDriver == DV_UNKNOWN ) - pt = PT_UNKNOWN; - else - { -@@ -368,19 +370,19 @@ - { - Param p = mSupportedDriver[ DRIVERSTR ][ param ]; - -- if ( ( p.type == PT_BOOL ) or ( p.type == PT_BOOL_RO ) ) -+ if ( ( p.type == PT_BOOL ) || ( p.type == PT_BOOL_RO ) ) - { - rb = *(Bool*)(((char*)mSynShm) + p.offset ); - RETURN( rb ); - } - -- if ( ( p.type == PT_INT ) or ( p.type == PT_INT_RO ) ) -+ if ( ( p.type == PT_INT ) || ( p.type == PT_INT_RO ) ) - { - ri = *(int*)(((char*)mSynShm) + p.offset ); - RETURN( ri ); - } - -- if ( ( p.type == PT_DOUBLE ) or ( p.type == PT_DOUBLE_RO ) ) -+ if ( ( p.type == PT_DOUBLE ) || ( p.type == PT_DOUBLE_RO ) ) - { - rd = *(double*)(((char*)mSynShm) + p.offset ); - RETURN( rd ); -@@ -399,7 +401,7 @@ - { - Param p = mSupportedDriver[ DRIVERSTR ][ param ]; -- if ( ( p.min_val <= v ) and ( p.max_val >= v ) ) -+ if ( ( p.min_val <= v ) && ( p.max_val >= v ) ) - { - if ( p.type == PT_BOOL ) - (*(Bool*)(((char*)mSynShm) + p.offset)) = (Bool)v; -@@ -414,7 +416,7 @@ - } - } - // instead of RETURN(void) -- pthread_mutex_unlock( &lock ); -+ pthread_mutex_unlock( &mylock ); - } +-pthread_mutex_t Synaptics::Pad::mMutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; ++pthread_mutex_t Synaptics::Pad::mMutex = PTHREAD_MUTEX_INITIALIZER; // PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; - int Synaptics::Pad::driverVersion() + Synaptics::Pad* Synaptics::Pad::getInstance() + { diff --git a/x11/libsynaptics/pkg-plist b/x11/libsynaptics/pkg-plist index 2c01ef88648d..78b0ac08fbd8 100644 --- a/x11/libsynaptics/pkg-plist +++ b/x11/libsynaptics/pkg-plist @@ -4,10 +4,9 @@ include/synaptics/Shm_0_14_6 include/synaptics/pad.h include/synaptics/synaptics.h include/synaptics/syndebug.h -include/synaptics/synparams.h +include/synaptics/synparam.h include/synaptics/synshm.h -include/synaptics/version.h lib/libsynaptics.a lib/libsynaptics.so lib/libsynaptics.so.0 -lib/libsynaptics.so.0.0.0 +lib/libsynaptics.so.0.0.1 |