freebsd-ports/comms/lirc/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

76 lines
2.2 KiB
Makefile

PORTNAME= lirc
PORTVERSION= 0.9.0
PORTREVISION= 13
PORTEPOCH= 1
CATEGORIES= comms
MASTER_SITES= SF/${PORTNAME}/LIRC/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Linux Infrared Remote Control
WWW= https://www.lirc.org/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto
USES= alias autoreconf gmake libtool localbase python tar:bzip2 xorg
USE_XORG= sm x11 ice
USE_CSTD= gnu89
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-sandboxed --with-devdir=/var/run/lirc \
--sysconfdir=${PREFIX}/etc
USE_RC_SUBR= lircd
PORTDOCS= html images irxevent.keys lirc.css lirc.hwdb
PORTEXAMPLES= remotes
SUB_FILES= pkg-message lircd.conf
# SMODE2 requires svgalib which is only available on x86
OPTIONS_DEFINE= MINIMAL DEBUG UARTLIRC DOCS EXAMPLES
OPTIONS_DEFINE_i386= SMODE2
OPTIONS_DEFINE_amd64= SMODE2
OPTIONS_SUB= yes
MINIMAL_DESC= Build with minimal dependencies
UARTLIRC_DESC= Install serial LIRC driver
SMODE2_DESC= Build smode2 (shows signal waveform), requires svgalib
MINIMAL_LIB_DEPENDS_OFF=libftdi.so:devel/libftdi \
libirman.so:comms/libirman
MINIMAL_CONFIGURE_OFF= --with-driver=userspace
MINIMAL_CONFIGURE_ON= --with-driver=dvico
DEBUG_CONFIGURE_ENABLE= debug
SMODE2_LIB_DEPENDS= libvga.so:graphics/svgalib
SMODE2_PLIST_FILES= bin/smode2
UARTLIRC_RUN_DEPENDS= uartlirc>=0.3:comms/uartlirc
post-patch:
@${REINPLACE_CMD} \
-e 's/`$${LIBUSB_CONFIG} --libs`/-lusb/' \
-e 's/`$${LIBUSB_CONFIG} --cflags`//' \
${WRKSRC}/configure.ac
post-install:
${INSTALL_DATA} ${WRKDIR}/lircd.conf ${STAGEDIR}${PREFIX}/etc/lircd.conf.sample
@${MKDIR} ${STAGEDIR}/var/run/lirc
post-install-MINIMAL-on:
# bacause --with-driver is specified, it installs remotes/dvico/lircd.conf.fusionHDTV to etc/lircd/
# remove to not break the plist, but remote configs handling should probably be fixed...
@${RM} -r ${STAGEDIR}${PREFIX}/etc/lirc
post-install-DOCS-on:
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "html images irxevent.keys lirc.css lirc.hwdb" ${STAGEDIR}${DOCSDIR}/)
post-install-EXAMPLES-on:
@(cd ${WRKSRC} && ${COPYTREE_SHARE} remotes ${STAGEDIR}${EXAMPLESDIR}/)
.include <bsd.port.mk>