diff options
author | Juergen Lock <nox@FreeBSD.org> | 2012-06-02 19:37:10 +0000 |
---|---|---|
committer | Juergen Lock <nox@FreeBSD.org> | 2012-06-02 19:37:10 +0000 |
commit | f9c1938da060c21d117041a47315c0448e9ad1a5 (patch) | |
tree | d47163dc1cd7f71a33b29913202ba7c607d517c9 /comms/lirc | |
parent | 98e078c405c7bf721d1defc27d8d72d2c6e999b9 (diff) |
- Convert these to OPTIONng.
- Omit shlib major versions in LIB_DEPENDS to pet portlint.
Notes
Notes:
svn path=/head/; revision=298038
Diffstat (limited to 'comms/lirc')
-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 |