mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
3864965968
- Enable USB support by default PR: ports/169275 Submitted by: Markus Dolze <bsdfan@nurfuerspam.de> Approved by: crees, tabthorpe (mentors, implicit)
128 lines
2.6 KiB
Makefile
128 lines
2.6 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.5
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= bsdfan@nurfuerspam.de
|
|
COMMENT= A client/server suite for LCD devices
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
USE_AUTOTOOLS= autoconf automake aclocal
|
|
GNU_CONFIGURE= yes
|
|
USE_GNOME= pkgconfig
|
|
USE_RC_SUBR= LCDd lcdproc lcdexec
|
|
|
|
CONFIGURE_ARGS= --enable-drivers="${LCDPROC_DRIVERS}" \
|
|
--disable-dependency-tracking \
|
|
--disable-doxygen
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
MAN1= lcdexec.1 lcdproc.1
|
|
MAN5= lcdproc-config.5
|
|
MAN8= LCDd.8
|
|
|
|
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=
|
|
|
|
LCDPROC_DRIVERS=bayrad \
|
|
CFontz \
|
|
CFontz633 \
|
|
CFontzPacket \
|
|
CwLnx \
|
|
curses \
|
|
ea65 \
|
|
EyeboxOne \
|
|
glk \
|
|
hd44780 \
|
|
icp_a106 \
|
|
lb216 \
|
|
lcdm001 \
|
|
lcterm \
|
|
MD8800 \
|
|
ms6931 \
|
|
mtc_s16209x \
|
|
MtxOrb \
|
|
NoritakeVFD \
|
|
pyramid \
|
|
SureElec \
|
|
sed1330 \
|
|
sed1520 \
|
|
serialPOS \
|
|
serialVFD \
|
|
sli \
|
|
stv5730 \
|
|
t6963 \
|
|
text \
|
|
tyan
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MUSB}
|
|
. if ${OSVERSION} < 800069
|
|
LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb
|
|
CONFIGURE_ARGS+= --with-libusb
|
|
. else
|
|
CONFIGURE_ARGS+= --with-libusb=/usr
|
|
. endif
|
|
PLIST_SUB+= USB=""
|
|
LCDPROC_DRIVERS+=IOWarrior \
|
|
picolcd \
|
|
shuttleVFD
|
|
|
|
. if ${PORT_OPTIONS:MFTDI}
|
|
LIB_DEPENDS+= ftdi.19:${PORTSDIR}/devel/libftdi
|
|
CONFIGURE_ARGS+= --enable-libftdi
|
|
PLIST_SUB+= FTDI=""
|
|
LCDPROC_DRIVERS+=i2500vfd \
|
|
lis \
|
|
ula200
|
|
. else
|
|
CONFIGURE_ARGS+= --disable-libftdi
|
|
PLIST_SUB+= FTDI="@comment "
|
|
. endif
|
|
|
|
. if ${PORT_OPTIONS:MHID}
|
|
LIB_DEPENDS+= hid:${PORTSDIR}/devel/libhid
|
|
CONFIGURE_ARGS+= --enable-libhid
|
|
PLIST_SUB+= HID=""
|
|
LCDPROC_DRIVERS+=mdm166a
|
|
. else
|
|
CONFIGURE_ARGS+= --disable-libhid
|
|
PLIST_SUB+= HID="@comment "
|
|
. endif
|
|
|
|
.else
|
|
CONFIGURE_ARGS+= --without-libusb --disable-libftdi --disable-libhid
|
|
PLIST_SUB+= USB="@comment " FTDI="@comment " HID="@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
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|