freebsd-ports/sysutils/lcdproc/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

52 lines
1.3 KiB
Makefile

# New ports collection makefile for: lcdproc
# Date created: Sat Jun 1 20:03:41 EDT 2002
# Whom: pat
#
# $FreeBSD$
#
PORTNAME= lcdproc
PORTVERSION= 0.5.2
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= bsdfan@nurfuerspam.de
COMMENT= A client/server suite for LCD devices
ONLY_FOR_ARCHS= i386
USE_AUTOTOOLS= autoconf:259 automake:19 aclocal:19
USE_GCC= 3.2+
GNU_CONFIGURE= yes
USE_GETOPT_LONG=yes
USE_RC_SUBR= LCDd lcdproc
CONFIGURE_ARGS= --enable-drivers=all \
--disable-ldap \
--disable-doxygen
CONFIGURE_ENV= CFLAGS="${CFLAGS}"
MAN1= lcdexec.1 lcdproc.1
MAN5= lcdproc-config.5
MAN8= LCDd.8
.if defined(WITH_USB)
LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb
CONFIGURE_ARGS+= --enable-libusb
PLIST_SUB+= USB=""
.else
CONFIGURE_ARGS+= --disable-libusb
PLIST_SUB+= USB="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's!server/drivers!${PREFIX}/lib/lcdproc!' ${WRKSRC}/LCDd.conf
post-install:
${INSTALL_DATA} ${WRKSRC}/LCDd.conf ${PREFIX}/etc/LCDd.conf.sample
${INSTALL_DATA} ${WRKSRC}/clients/lcdproc/lcdproc.conf ${PREFIX}/etc/lcdproc.conf.sample
${INSTALL_DATA} ${WRKSRC}/clients/lcdexec/lcdexec.conf ${PREFIX}/etc/lcdexec.conf.sample
${INSTALL_DATA} ${WRKSRC}/clients/lcdvc/lcdvc.conf ${PREFIX}/etc/lcdvc.conf.sample
.include <bsd.port.mk>