[Midnightbsd-cvs] mports: x11-drivers/synaptics: Added synaptics-0.14.6: The Synaptics
ctriv at midnightbsd.org
ctriv at midnightbsd.org
Thu Oct 11 17:28:51 EDT 2007
Log Message:
-----------
Added synaptics-0.14.6: The Synaptics touchpad X driver
Added Files:
-----------
mports/x11-drivers/synaptics:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-message (r1.1)
pkg-plist (r1.1)
mports/x11-drivers/synaptics/files:
patch-Makefile (r1.1)
patch-eventcomm.c (r1.1)
-------------- next part --------------
--- /dev/null
+++ x11-drivers/synaptics/pkg-message
@@ -0,0 +1,88 @@
+===============================================================================
+
+ * SETUP NOTE * SETUP NOTE *
+
+o Please remove ${X11BASE}/lib/modules/input/synaptics_drv.so
+ manually, If you have installed synaptics-0.14.4_1. I forgot
+ to chase pkg-plist on 0.14.4_1.
+
+o Add boot time tunable to /boot/loader.conf.
+ Set hw.psm.synaptics_support=1 and shutdown -r now!
+
+/boot/loader.conf ---------------------------------
+hw.psm.synaptics_support=1
+---------------------------------------------------
+
+o Don't run moused(8) daemon.
+ Dont' set moused_enable="YES" in /etc/rc.conf.
+
+/etc/rc.conf --------------------------------------
+moused_enable="NO"
+---------------------------------------------------
+
+o Set your /etc/xorg.conf (or /etc/XF86Config)
+ Adopt your environment. This is a sample configration, and
+ following setting is mine. You may want to change the
+ values of *Edge and *Delta.
+
+ *NOTE*
+ Please disable your existing "CorePointer" in "ServerLayout"
+ section, only use "Synaptics_Touchpad" CorePointer.
+
+/etc/xorg.conf (or /etc/XF86Config) ---------------
+ :
+Section "Module"
+ :
+ Load "synaptics"
+EndSection
+
+Section "ServerLayout"
+ :
+# InputDevice "Standard_PS/2_Mouse" "CorePointer"
+ InputDevice "Synaptics_Touchpad" "CorePointer"
+EndSection
+
+Section "InputDevice"
+ Identifier "Synaptics_Touchpad"
+ Driver "synaptics"
+
+ Option "Device" "/dev/psm0"
+ Option "Protocol" "psm"
+
+ Option "LeftEdge" "1700"
+ Option "RightEdge" "5300"
+ Option "TopEdge" "1700"
+ Option "BottomEdge" "4200"
+
+ Option "FingerLow" "25"
+ Option "FingerHigh" "30"
+
+ Option "MaxTapTime" "180"
+ Option "MaxTapMove" "220"
+
+ Option "VertScrollDelta" "100"
+ Option "HorizScrollDelta" "100"
+
+ Option "MinSpeed" "0.06"
+ Option "MaxSpeed" "0.06"
+ Option "AccelFactor" "0.0010"
+
+ Option "ScrollButtonRepeat" "100"
+ Option "UpDownScrolling" "on"
+ Option "UpDownRepeat" "on"
+ Option "LeftRightScrolling" "on"
+ Option "LeftRightRepeat" "on"
+
+ # "SHMConfig on" seems good works with synclient(1). But this
+ # options is insecure. I recommended "off" as default.
+ Option "SHMConfig" "off"
+
+ # If you use circular touchpad, uncomment them.
+# Option "CircularPad" "on"
+# Option "CircularScrolling" "on"
+# Option "CircScrollDelta" "0.5"
+EndSection
+ :
+/etc/xorg.conf (or /etc/XF86Config) ---------------
+
+===============================================================================
--- /dev/null
+++ x11-drivers/synaptics/pkg-descr
@@ -0,0 +1,6 @@
+This is a driver for the Synaptics TouchPad for XOrg/XFree86 4.x.
+A Synaptics touchpad by default operates in compatibility mode by
+emulating a standard mouse. However, by using a dedicated driver,
+more advanced features of the touchpad becomes available.
+
+WWW: http://web.telia.com/~u89404340/touchpad/
--- /dev/null
+++ x11-drivers/synaptics/pkg-plist
@@ -0,0 +1,7 @@
+bin/synclient
+ at comment bin/syndaemon
+%%XORG%%lib/xorg/modules/input/synaptics_drv.so
+%%XORG%%@dirrmtry lib/xorg/modules/input
+%%XORG%%@dirrmtry lib/xorg/modules
+%%XORG%%@dirrmtry lib/xorg
+%%XFREE86%%lib/modules/input/synaptics_drv.o
--- /dev/null
+++ x11-drivers/synaptics/Makefile
@@ -0,0 +1,86 @@
+# New ports collection makefile for: synaptics
+# Date created: 2004-01-02
+# Whom: nork at FreeBSD.org
+#
+# $FreeBSD: ports/x11-drivers/synaptics/Makefile,v 1.10 2007/10/07 10:36:14 erwin Exp $
+# $MidnightBSD: mports/x11-drivers/synaptics/Makefile,v 1.1 2007/10/11 21:28:49 ctriv Exp $
+#
+
+PORTNAME= synaptics
+PORTVERSION= 0.14.6
+CATEGORIES= x11-drivers
+MASTER_SITES= http://web.telia.com/~u89404340/touchpad/files/:synaptics
+DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:synaptics \
+ ${X_DISTFILES:C/$/:x11/}
+EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= The Synaptics touchpad X driver
+LICENSE= gpl
+
+BUILD_DEPENDS= ${X11BASE}/bin/X:${X_SERVER_PORT}
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+
+FAKE_OPTS= trueprefix
+
+.include <bsd.port.pre.mk>
+
+X11VERSION!= ${MAKE} -C `${MAKE} -f bsd.port.mk -VX_SERVER_PORT` \
+ -VPORTVERSION
+
+.if ${X_WINDOW_SYSTEM:L} == xorg
+
+MASTER_SITES+= ftp://ftp.freedesktop.org/pub/xorg/individual/xserver/:x11 \
+ http://xorg.freedesktop.org/releases/individual/xserver/:x11
+DIST_SUBDIR= xorg/xserver
+X_DISTFILES= xorg-server-${X11VERSION}.tar.bz2
+PLIST_SUB+= XORG="" XFREE86="@comment "
+EXTRA_PATCHES= ${FILESDIR}/extra-xorg-server-1.4
+
+post-patch:
+ @${REINPLACE_CMD} 's|\(ALLINCLUDES = -I.\)|\1 -I${LOCALBASE}/include -I${LOCALBASE}/include/pixman-1|' \
+ ${WRKSRC}/Makefile
+
+.elif ${X_WINDOW_SYSTEM:L} == xfree86-4
+
+MASTER_SITES+= ${MASTER_SITE_XFREE:C/$/:x11/}
+MASTER_SITE_SUBDIR= ${X11VERSION}/:x11
+DIST_SUBDIR= xc
+X_DISTFILES= XFree86-${X11VERSION}-src-3.tgz
+PLIST_SUB+= XORG="@comment " XFREE86=""
+
+.else
+
+BROKEN= no support yet
+
+.endif
+
+MAKE_ENV= TOP=${WRKDIR}/xc CFLAGSCLIENT="${CFLAGS}"
+
+MAN1= synclient.1 # syndaemon.1
+MAN5= synaptics.5
+PORTDOCS= COMPATIBILITY FILES INSTALL INSTALL.DE INSTALL.FR \
+ README README.alps TODO
+
+post-extract:
+.for FILE in ${X_DISTFILES}
+ @cd ${WRKDIR} && \
+ ${GZIP_CMD} -dc ${_DISTDIR}/${FILE} | ${TAR} -xf -
+.endfor
+
+
+pre-install:
+ ${MKDIR} ${PREFIX}/lib/xorg/modules/input/
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for FILE in ${PORTDOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.post.mk>
--- /dev/null
+++ x11-drivers/synaptics/distinfo
@@ -0,0 +1,12 @@
+MD5 (xorg/xserver/synaptics-0.14.6.tar.bz2) = 1102cd575045640a064ab6f9b1e391af
+SHA256 (xorg/xserver/synaptics-0.14.6.tar.bz2) = f88b967258a0484b0aa02f26acfb31a70cc8afd4872608b7f81c44dc29ae8429
+SIZE (xorg/xserver/synaptics-0.14.6.tar.bz2) = 126833
+MD5 (xorg/xserver/xorg-server-1.4.tar.bz2) = a06d9fe4f9f1d459ae02657f9ce64220
+SHA256 (xorg/xserver/xorg-server-1.4.tar.bz2) = 51b142df328d427143705371f139a08ff3bcd6efe0eab91f4178ca4017c0ebc2
+SIZE (xorg/xserver/xorg-server-1.4.tar.bz2) = 6179392
+MD5 (xc/synaptics-0.14.6.tar.bz2) = 1102cd575045640a064ab6f9b1e391af
+SHA256 (xc/synaptics-0.14.6.tar.bz2) = f88b967258a0484b0aa02f26acfb31a70cc8afd4872608b7f81c44dc29ae8429
+SIZE (xc/synaptics-0.14.6.tar.bz2) = 126833
+MD5 (xc/XFree86-4.5.0-src-3.tgz) = c0ad630bfec4545857c2877b3e2dcbeb
+SHA256 (xc/XFree86-4.5.0-src-3.tgz) = 2719f8055955dce293f2a8a846514d3908fa05b9d053c59b4fe1e09470a054df
+SIZE (xc/XFree86-4.5.0-src-3.tgz) = 12086763
--- /dev/null
+++ x11-drivers/synaptics/files/patch-Makefile
@@ -0,0 +1,99 @@
+--- Makefile.orig Sun Jul 16 00:58:26 2006
++++ Makefile Sun Aug 13 10:47:35 2006
+@@ -12,14 +12,14 @@
+ MANDIR = $(DESTDIR)$(PREFIX)/man
+
+ ifeq ($(ARCH),)
+- ARCH = $(shell /bin/arch)
++ ARCH = $(shell uname -m)
+ endif
+ ifeq ($(ARCH),amd64)
+ ARCH = x86_64
+ endif
+ ifeq ($(ARCH),x86_64)
+ ARCH_DEFINES = -D__x86_64__ -D_XSERVER64
+- LIBDIR = lib64
++ LIBDIR = lib
+ else
+ ARCH_DEFINES = -D__i386__
+ LIBDIR = lib
+@@ -39,7 +39,7 @@
+ -I$(INSTALLED_X)/include/X11/extensions \
+ -I$(SDKDIR)
+ else
+- INSTALLED_X = /usr/X11R6
++ INSTALLED_X = ${X11BASE}
+ INPUT_MODULE_DIR = $(DESTDIR)/$(INSTALLED_X)/$(LIBDIR)/modules/input
+ SYNAPTICS_DRV = synaptics_drv.o
+ LDCOMBINEFLAGS = -r
+@@ -62,12 +62,16 @@
+ else
+ SERVERSRC = $(TOP)/programs/Xserver
+ ALLINCLUDES = -I. \
++ -I${X11BASE}/include \
++ -I${X11BASE}/include/X11 \
++ -I$(SERVERSRC)/hw/xfree86 \
+ -I$(SERVERSRC)/hw/xfree86/common \
+ -I$(SERVERSRC)/hw/xfree86/os-support \
++ -I$(SERVERSRC)/hw/xfree86/os-support/bus \
+ -I$(SERVERSRC)/mi \
+ -I$(SERVERSRC)/include \
+ -I$(TOP)/include
+- X_INCLUDES_ROOT = $(TOP)
++ X_INCLUDES_ROOT = $(X11BASE)
+ endif
+ endif
+
+@@ -81,11 +85,11 @@
+
+ CCOPTIONS := -pedantic -Wall -Wpointer-arith
+ CCOPTIONS += $(call check_gcc,-fno-merge-constants,)
+-CDEBUGFLAGS = -O2
+-CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(PICFLAG) $(ALLDEFINES) -DVERSION="\"$(VERSION)\"" -DVERSION_ID="$(VERSION_ID)"
+-CFLAGSCLIENT = $(CDEBUGFLAGS) $(CCOPTIONS) -DVERSION="\"$(VERSION)\"" -DVERSION_ID="$(VERSION_ID)" -I$(X_INCLUDES_ROOT)/include
++#CDEBUGFLAGS = -O2
++CFLAGS += $(CDEBUGFLAGS) $(CCOPTIONS) $(PICFLAG) $(ALLDEFINES) -DVERSION="\"$(VERSION)\"" -DVERSION_ID="$(VERSION_ID)"
++CFLAGSCLIENT += $(CCOPTIONS) -DVERSION="\"$(VERSION)\"" -DVERSION_ID="$(VERSION_ID)" -I$(X_INCLUDES_ROOT)/include
+
+-CC = gcc
++#CC = gcc
+
+ SRCS = synaptics.c ps2comm.c eventcomm.c psmcomm.c alpscomm.c
+ OBJS = synaptics.o ps2comm.o eventcomm.o psmcomm.o alpscomm.o
+@@ -94,29 +98,29 @@
+ $(RM) $@
+ $(CC) -c $(CFLAGS) $(_NOOP_) $*.c
+
+-all:: $(SYNAPTICS_DRV) synclient syndaemon
++all:: $(SYNAPTICS_DRV) synclient
+
+-install: $(BINDIR)/synclient $(BINDIR)/syndaemon $(INPUT_MODULE_DIR)/$(SYNAPTICS_DRV) install-man
++install: $(BINDIR)/synclient $(INPUT_MODULE_DIR)/$(SYNAPTICS_DRV) install-man
+
+-install-man: $(MANDIR)/man1/synclient.1 $(MANDIR)/man1/syndaemon.1 $(MANDIR)/man5/synaptics.5
++install-man: $(MANDIR)/man1/synclient.1 $(MANDIR)/man5/synaptics.5
+
+ $(MANDIR)/man1/synclient.1: manpages/synclient.1
+- install --mode=0644 -D $< $@
++ ${BSD_INSTALL_MAN} $< $@
+
+ $(MANDIR)/man1/syndaemon.1: manpages/syndaemon.1
+ install --mode=0644 -D $< $@
+
+ $(MANDIR)/man5/synaptics.5: manpages/synaptics.5
+- install --mode=0644 -D $< $@
++ ${BSD_INSTALL_MAN} $< $@
+
+ $(BINDIR)/synclient : synclient
+- install -D $< $@
++ ${BSD_INSTALL_PROGRAM} $< $@
+
+ $(BINDIR)/syndaemon : syndaemon
+ install -D $< $@
+
+ $(INPUT_MODULE_DIR)/$(SYNAPTICS_DRV) : $(SYNAPTICS_DRV)
+- install --mode=0644 -D $< $@
++ ${BSD_INSTALL_DATA} $< $@
+
+ $(SYNAPTICS_DRV): $(OBJS)
+ $(RM) $@
--- /dev/null
+++ x11-drivers/synaptics/files/patch-eventcomm.c
@@ -0,0 +1,20 @@
+--- eventcomm.c.orig Mon Aug 8 04:44:04 2005
++++ eventcomm.c Sat Mar 18 18:54:22 2006
+@@ -55,6 +55,7 @@
+ static Bool
+ event_query_is_touchpad(int fd)
+ {
++#if 0
+ int ret;
+ unsigned long evbits[NBITS(KEY_MAX)];
+
+@@ -83,6 +84,9 @@
+ return FALSE;
+
+ return TRUE;
++#else
++ return FALSE;
++#endif
+ }
+
+ static Bool
More information about the Midnightbsd-cvs
mailing list