aboutsummaryrefslogtreecommitdiffstats
path: root/x11-drivers
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-05-31 22:49:26 +0800
committerbapt <bapt@FreeBSD.org>2012-05-31 22:49:26 +0800
commit66780caf231381add129f8ab44ca54133051a1c5 (patch)
tree986ee858a70982e7ead92499315df9c0231da04d /x11-drivers
parent4297676582426ca3d54e1c10bdf5464fe141fb96 (diff)
downloadfreebsd-ports-gnome-66780caf231381add129f8ab44ca54133051a1c5.tar.gz
freebsd-ports-gnome-66780caf231381add129f8ab44ca54133051a1c5.tar.zst
freebsd-ports-gnome-66780caf231381add129f8ab44ca54133051a1c5.zip
Convert to new options framework
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/input-wacom/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/x11-drivers/input-wacom/Makefile b/x11-drivers/input-wacom/Makefile
index c03aedee0703..1c483b12c858 100644
--- a/x11-drivers/input-wacom/Makefile
+++ b/x11-drivers/input-wacom/Makefile
@@ -50,15 +50,16 @@ CONFIGURE_WRKSRC= ${WRKDIR}/${LINUXWACOM}
USE_AUTOTOOLS= autoconf
MAKE_ARGS+= UDEV_CFLAGS=""
+OPTIONS_DEFINE= UWACOMKLD
+UWACOMKLD_DESC= Install USB kernel module (not supported on 8.x)
+
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 800064
-OPTIONS= UWACOMKLD "Install USB kernel module (not supported on 8.x)" Off
-.else
-OPTIONS= UWACOMKLD "Install USB kernel module (not supported on 8.x)" On
+.if ${OSVERSION} < 800064
+OPTIONS_DEFAULT= UWACOMKLD
.endif
-.if defined(WITH_UWACOMKLD)
+.if ${PORT_OPTIONS:MUWACOMKLD}
.if ${OSVERSION} >= 800064
BROKEN= does not build with USB support
.endif
@@ -70,7 +71,7 @@ PORTTYPE= serial
.endif
do-build:
-.if defined(WITH_UWACOMKLD)
+.if ${PORT_OPTIONS:MUWACOMKLD}
@cd ${WRKDIR}/uwacom \
&& ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS}
.endif
@@ -78,7 +79,7 @@ do-build:
&& ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS}
do-install:
-.if defined(WITH_UWACOMKLD)
+.if ${PORT_OPTIONS:MUWACOMKLD}
@${MKDIR} ${KMODDIR}
@${INSTALL_KLD} ${WRKDIR}/uwacom/uwacom.ko ${KMODDIR}/
.endif