diff options
author | nox <nox@FreeBSD.org> | 2012-06-03 03:37:10 +0800 |
---|---|---|
committer | nox <nox@FreeBSD.org> | 2012-06-03 03:37:10 +0800 |
commit | 8b9b3dc3ed9eac942f28291af4e03e5e7d3b7a45 (patch) | |
tree | 4ca44f8cb16f0baae30f425bd5a04fdf2eb0fcc8 /comms | |
parent | a93cc2a52f7469778821be8fd170a4e8e3f4ebf1 (diff) | |
download | freebsd-ports-gnome-8b9b3dc3ed9eac942f28291af4e03e5e7d3b7a45.tar.gz freebsd-ports-gnome-8b9b3dc3ed9eac942f28291af4e03e5e7d3b7a45.tar.zst freebsd-ports-gnome-8b9b3dc3ed9eac942f28291af4e03e5e7d3b7a45.zip |
- Convert these to OPTIONng.
- Omit shlib major versions in LIB_DEPENDS to pet portlint.
Diffstat (limited to 'comms')
-rw-r--r-- | comms/lirc/Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/comms/lirc/Makefile b/comms/lirc/Makefile index 87e726da30f9..dfc05614c38c 100644 --- a/comms/lirc/Makefile +++ b/comms/lirc/Makefile @@ -34,9 +34,10 @@ CONFIGURE_ARGS= --enable-sandboxed --with-devdir=/var/run/lirc \ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -OPTIONS= MINIMAL "Build with minmal dependencies" Off \ - DEBUG "Build debug version" Off \ - UARTLIRC "Install serial LIRC driver" Off +OPTIONS_DEFINE= MINIMAL DEBUG UARTLIRC + +MINIMAL_DESC= Build with minmal dependencies +UARTLIRC_DESC= Install serial LIRC driver USE_RC_SUBR= lircd.sh PORTDOCS= html images irxevent.keys lirc.css lirc.hwdb @@ -52,7 +53,7 @@ PLIST_SUB+= SMODE2= PLIST_SUB+= SMODE2="@comment " .endif -.if defined(WITHOUT_MINIMAL) +.if empty(PORT_OPTIONS:MMINIMAL) BUILD_DEPENDS+= ${LOCALBASE}/lib/libirman.a:${PORTSDIR}/comms/libirman LIB_DEPENDS+= ftdi.19:${PORTSDIR}/devel/libftdi CONFIGURE_ARGS+= --with-driver=userspace @@ -60,11 +61,11 @@ CONFIGURE_ARGS+= --with-driver=userspace CONFIGURE_ARGS+= --with-driver=dvico .endif -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} CONFIGURE_ARGS+= --enable-debug .endif -.if defined(WITH_UARTLIRC) +.if ${PORT_OPTIONS:MUARTLIRC} RUN_DEPENDS+= uartlirc>=0.3:${PORTSDIR}/comms/uartlirc .endif @@ -73,12 +74,12 @@ MAN1= ircat.1 irexec.1 irpty.1 irrecord.1 irsend.1 irw.1 \ MAN8= lircd.8 lircmd.8 post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${DOCSDIR}/) @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} images ${DOCSDIR}/) @(cd ${WRKSRC}/doc && ${INSTALL_DATA} irxevent.keys lirc.css lirc.hwdb ${DOCSDIR}/) .endif -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} @(cd ${WRKSRC} && ${COPYTREE_SHARE} remotes ${EXAMPLESDIR}/) .endif @${INSTALL_DATA} ${WRKDIR}/lircd.conf ${PREFIX}/etc/lircd.conf.sample |