From abbd6b6aaf499da0615f200f16fcfcbe1bcdd6db Mon Sep 17 00:00:00 2001 From: madpilot Date: Wed, 20 Jun 2012 21:52:27 +0000 Subject: - Convert to new options framework - Enable USB support by default PR: ports/169275 Submitted by: Markus Dolze Approved by: crees, tabthorpe (mentors, implicit) --- sysutils/lcdproc/Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'sysutils') diff --git a/sysutils/lcdproc/Makefile b/sysutils/lcdproc/Makefile index 27908a4a9476..acb12cd71568 100644 --- a/sysutils/lcdproc/Makefile +++ b/sysutils/lcdproc/Makefile @@ -33,9 +33,12 @@ MAN1= lcdexec.1 lcdproc.1 MAN5= lcdproc-config.5 MAN8= LCDd.8 -OPTIONS= USB "Enable USB support" off \ - LIBFTDI "Enable libftdi support (requires USB)" off \ - LIBHID "Enable libhid support (requires USB)" off +OPTIONS_DEFINE= USB FTDI HID +USB_DESC= Enable USB support +FTDI_DESC= Enable libftdi support (requires USB) +HID_DESC= Enable libhid support (requires USB) +OPTIONS_DEFAULT=USB +NO_OPTIONS_SORT=yes # Empty args to aclocal required! ACLOCAL_ARGS= @@ -73,7 +76,7 @@ LCDPROC_DRIVERS=bayrad \ .include -.if defined(WITH_USB) +.if ${PORT_OPTIONS:MUSB} . if ${OSVERSION} < 800069 LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb CONFIGURE_ARGS+= --with-libusb @@ -85,7 +88,7 @@ LCDPROC_DRIVERS+=IOWarrior \ picolcd \ shuttleVFD -. if defined(WITH_LIBFTDI) +. if ${PORT_OPTIONS:MFTDI} LIB_DEPENDS+= ftdi.19:${PORTSDIR}/devel/libftdi CONFIGURE_ARGS+= --enable-libftdi PLIST_SUB+= FTDI="" @@ -97,7 +100,7 @@ CONFIGURE_ARGS+= --disable-libftdi PLIST_SUB+= FTDI="@comment " . endif -. if defined(WITH_LIBHID) +. if ${PORT_OPTIONS:MHID} LIB_DEPENDS+= hid:${PORTSDIR}/devel/libhid CONFIGURE_ARGS+= --enable-libhid PLIST_SUB+= HID="" -- cgit