Index: x11-drivers/xf86-input-wacom/Makefile
===================================================================
--- x11-drivers/xf86-input-wacom/Makefile	(revision 366336)
+++ x11-drivers/xf86-input-wacom/Makefile	(working copy)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	xf86-input-wacom
-PORTVERSION=	0.24.99.1
+PORTVERSION=	0.25.99.1
 CATEGORIES=	x11-drivers
 MASTER_SITES=	SF/linuxwacom/${PORTNAME}
 
@@ -8,6 +8,8 @@ MASTER_SITES=	SF/linuxwacom/${PORTNAME}
 MAINTAINER=	jbeich@vfemail.net
 COMMENT=	X.Org Wacom tablet driver
 
+LICENSE=	GPLv2 # or any later version
+
 BUILD_DEPENDS=	v4l_compat>=1.0.20110603:${PORTSDIR}/multimedia/v4l_compat
 RUN_DEPENDS=	webcamd>0:${PORTSDIR}/multimedia/webcamd
 
@@ -18,7 +20,15 @@ SUB_FILES=	pkg-message
 CONFIGURE_ARGS=	--without-systemd-unit-dir \
 		--without-udev-rules-dir \
 		--without-doxygen
+INSTALL_TARGET=	install-strip
 
+OPTIONS_DEFINE=	DEBUG TEST
+
+DEBUG_CONFIGURE_ENABLE=debug
+
+TEST_CONFIGURE_ENABLE=unit-tests
+TEST_ALL_TARGET=check
+
 post-patch:
 	@${REINPLACE_CMD} -e 's/as_fn_error.*udev/${TRUE} &/' \
 		-e 's/dir=.*xorg-server/& \
@@ -30,7 +40,6 @@ post-patch:
 		${WRKSRC}/Makefile.in
 
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/xorg/modules/input/wacom_drv.so
 	${MKDIR} ${STAGEDIR}${PREFIX}/etc/X11/xorg.conf.d
 	${INSTALL_DATA} ${FILESDIR}/wacom.conf.sample \
 		${STAGEDIR}${PREFIX}/etc/X11/xorg.conf.d
Index: x11-drivers/xf86-input-wacom/distinfo
===================================================================
--- x11-drivers/xf86-input-wacom/distinfo	(revision 366336)
+++ x11-drivers/xf86-input-wacom/distinfo	(working copy)
@@ -1,2 +1,2 @@
-SHA256 (xorg/driver/xf86-input-wacom-0.24.99.1.tar.bz2) = 4b68b1570bd6ce085010980fa1842825e5d676cd2962ec6ad2d7d5bc52149983
-SIZE (xorg/driver/xf86-input-wacom-0.24.99.1.tar.bz2) = 586002
+SHA256 (xorg/driver/xf86-input-wacom-0.25.99.1.tar.bz2) = 395142ebc8864ba6aa6c6bc7ce65c1f00d71ac31cef029b24fb248c34325546e
+SIZE (xorg/driver/xf86-input-wacom-0.25.99.1.tar.bz2) = 588017
Index: x11-drivers/xf86-input-wacom/files/patch-test-fake-symbols.c
===================================================================
--- x11-drivers/xf86-input-wacom/files/patch-test-fake-symbols.c	(revision 0)
+++ x11-drivers/xf86-input-wacom/files/patch-test-fake-symbols.c	(working copy)
@@ -0,0 +1,74 @@
+--- test/fake-symbols.c~
++++ test/fake-symbols.c
+@@ -92,7 +92,11 @@ xf86NameCmp(const char *s1, const char *
+ }
+ 
+ _X_EXPORT char *
++#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) > 18
+ xf86CheckStrOption(OPTTYPE optlist, const char *name, CONST char *deflt)
++#else
++xf86CheckStrOption(OPTTYPE optlist, const char *name, char *deflt)
++#endif
+ {
+     return NULL;
+ }
+@@ -231,7 +235,7 @@ InitValuatorAxisStruct(DeviceIntPtr dev,
+ {
+     return TRUE;
+ }
+-#else
++#elif GET_ABI_MAJOR(ABI_XINPUT_VERSION) > 12
+ _X_EXPORT void
+ InitValuatorAxisStruct(DeviceIntPtr dev, int axnum, Atom label,
+                        int minval, int maxval, int resolution,
+@@ -239,6 +243,14 @@ InitValuatorAxisStruct(DeviceIntPtr dev,
+ {
+     return;
+ }
++#else
++_X_EXPORT void
++InitValuatorAxisStruct(DeviceIntPtr dev, int axnum, Atom label,
++                       int minval, int maxval, int resolution,
++                       int min_res, int max_res)
++{
++    return;
++}
+ #endif
+ 
+ _X_EXPORT void
+@@ -279,7 +291,7 @@ InitPtrFeedbackClassDeviceStruct(DeviceI
+ _X_EXPORT int
+ XIChangeDeviceProperty (DeviceIntPtr dev, Atom property, Atom type,
+                         int format, int mode, unsigned long len,
+-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) > 16
++#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 16
+                         const void *
+ #elif GET_ABI_MAJOR(ABI_XINPUT_VERSION) > 12
+                         const pointer
+@@ -506,6 +518,7 @@ xf86UnblockSIGIO (int wasset)
+ 
+ /* This is not the same as the X server one, but it'll do for the tests */
+ #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 14
++#define InputOption InputOption_custom
+ typedef struct _InputOption {
+     struct _InputOption *next;
+     char *key;
+@@ -537,6 +550,7 @@ input_option_free_list(InputOption **opt
+ 		*opts = tmp;
+ 	}
+ }
++#undef InputOption
+ #endif
+ 
+ #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 16
+@@ -558,9 +572,9 @@ _X_EXPORT void xf86PostTouchEvent(Device
+     uint32_t flags, const ValuatorMask *mask) {
+ 	return;
+ }
++#endif
+ 
+ _X_EXPORT void
+ xf86PrintChipsets(const char *drvname, const char *drvmsg, SymTabPtr chips)
+ {
+ }
+-#endif

Property changes on: x11-drivers/xf86-input-wacom/files/patch-test-fake-symbols.c
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Index: x11-drivers/xf86-input-wacom/files/patch-test-fake-symbols.h
===================================================================
--- x11-drivers/xf86-input-wacom/files/patch-test-fake-symbols.h	(revision 0)
+++ x11-drivers/xf86-input-wacom/files/patch-test-fake-symbols.h	(working copy)
@@ -0,0 +1,10 @@
+--- test/fake-symbols.h~
++++ test/fake-symbols.h
+@@ -2,7 +2,6 @@
+ #include <dix.h>
+ #include <os.h>
+ #include <exevents.h>
+-#include <Xprintf.h>
+ #include <xf86.h>
+ #include <xf86Xinput.h>
+ #include <xf86_OSproc.h>

Property changes on: x11-drivers/xf86-input-wacom/files/patch-test-fake-symbols.h
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
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
Index: x11-drivers/xf86-input-wacom/files/patch-test-wacom-tests.c
===================================================================
--- x11-drivers/xf86-input-wacom/files/patch-test-wacom-tests.c	(revision 0)
+++ x11-drivers/xf86-input-wacom/files/patch-test-wacom-tests.c	(working copy)
@@ -0,0 +1,19 @@
+--- test/wacom-tests.c~
++++ test/wacom-tests.c
+@@ -184,7 +184,7 @@ test_normalize_pressure(void)
+ 
+ 	priv.common = &common;
+ 	priv.pInfo = &pInfo;
+-	pInfo.name = strdupa("Wacom test device");
++	pInfo.name = strdup("Wacom test device");
+ 	common.wcmPressureRecalibration = 1;
+ 
+ 	priv.minPressure = 0;
+@@ -229,6 +229,7 @@ test_normalize_pressure(void)
+ 		/* we count up, so assume normalised pressure goes up too */
+ 		assert(prev_pressure == pressure);
+ 	}
++	free(pInfo.name);
+ }
+ 
+ /**

Property changes on: x11-drivers/xf86-input-wacom/files/patch-test-wacom-tests.c
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property