2012-12-20 06:40:01 +01:00
|
|
|
# Created by: gary@hotlava.com
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1998-03-01 01:44:59 +01:00
|
|
|
|
2001-03-22 10:13:27 +01:00
|
|
|
PORTNAME= sane-backends
|
2014-01-13 16:09:33 +01:00
|
|
|
PORTVERSION= 1.0.24
|
2014-08-06 20:34:42 +02:00
|
|
|
PORTREVISION= 3
|
1998-03-01 01:44:59 +01:00
|
|
|
CATEGORIES= graphics
|
2014-01-13 16:09:33 +01:00
|
|
|
MASTER_SITES= http://alioth.debian.org/frs/download.php/3958/ \
|
|
|
|
http://fossies.org/linux/misc/
|
1998-03-01 01:44:59 +01:00
|
|
|
|
2001-02-05 16:57:19 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= API for access to scanners, digitals camera, frame grabbers etc
|
1998-03-01 01:44:59 +01:00
|
|
|
|
2014-01-13 16:09:33 +01:00
|
|
|
LICENSE= GPLv2 # (or later)
|
2011-08-08 16:41:38 +02:00
|
|
|
|
2013-10-19 19:21:40 +02:00
|
|
|
LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff \
|
|
|
|
libv4l1.so:${PORTSDIR}/multimedia/libv4l
|
1999-05-29 05:56:15 +02:00
|
|
|
|
2013-10-19 19:21:40 +02:00
|
|
|
OPTIONS_DEFINE= AVAHI CUPS DOCS GPHOTO IEEE1284 IPV6 NLS SNMP USB
|
2014-01-13 16:09:33 +01:00
|
|
|
OPTIONS_DEFAULT= USB IPV6
|
2013-10-19 19:21:40 +02:00
|
|
|
OPTIONS_SUB= yes
|
2014-07-23 01:52:49 +02:00
|
|
|
IEEE1284_DESC= Parallel port support via libieee1284
|
2012-06-12 23:42:32 +02:00
|
|
|
USB_DESC= USB support
|
2005-08-30 03:27:03 +02:00
|
|
|
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2013-10-19 19:21:40 +02:00
|
|
|
CONFIGURE_ARGS= --with-docdir=${DOCSDIR} \
|
2009-05-23 16:24:05 +02:00
|
|
|
--disable-latex \
|
2010-10-16 16:59:26 +02:00
|
|
|
--disable-locking \
|
|
|
|
--enable-pthread
|
2014-07-19 11:24:50 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
USES= gmake libtool pathfix pkgconfig
|
2006-08-15 01:06:39 +02:00
|
|
|
USE_LDCONFIG= yes
|
1998-03-01 01:44:59 +01:00
|
|
|
|
2013-10-19 19:21:40 +02:00
|
|
|
PORTDOCS= *
|
2010-02-07 21:34:20 +01:00
|
|
|
USE_RC_SUBR= saned
|
2010-06-28 09:10:53 +02:00
|
|
|
SUB_FILES+= pkg-message
|
|
|
|
|
|
|
|
USERS= saned
|
|
|
|
GROUPS= saned
|
2010-02-07 21:34:20 +01:00
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2011-08-08 16:41:38 +02:00
|
|
|
|
2013-10-19 19:21:40 +02:00
|
|
|
AVAHI_CONFIGURE_ENABLE= avahi
|
|
|
|
AVAHI_LIB_DEPENDS= libavahi-client.so:${PORTSDIR}/net/avahi-app
|
2003-06-13 13:27:40 +02:00
|
|
|
|
2013-10-19 19:21:40 +02:00
|
|
|
CUPS_LIB_DEPENDS= libcups.so:${PORTSDIR}/print/cups-client
|
2004-08-22 13:24:34 +02:00
|
|
|
|
2013-10-19 19:21:40 +02:00
|
|
|
GPHOTO_CONFIGURE_OFF= --with-gphoto2=no
|
|
|
|
GPHOTO_LIB_DEPENDS= libgphoto2.so:${PORTSDIR}/graphics/libgphoto2
|
2004-05-10 20:07:50 +02:00
|
|
|
|
2013-10-19 19:21:40 +02:00
|
|
|
IEEE1284_LIB_DEPENDS= libieee1284.so:${PORTSDIR}/sysutils/libieee1284
|
2009-09-11 16:15:26 +02:00
|
|
|
|
2014-01-13 16:09:33 +01:00
|
|
|
IPV6_CONFIGURE_ENABLE= ipv6
|
2002-03-16 08:20:59 +01:00
|
|
|
|
2014-01-13 16:09:33 +01:00
|
|
|
NLS_CONFIGURE_ENABLE= translations
|
2013-10-19 19:21:40 +02:00
|
|
|
NLS_USES= gettext
|
2011-08-08 16:41:38 +02:00
|
|
|
|
2014-01-13 16:09:33 +01:00
|
|
|
SNMP_CONFIGURE_WITH= snmp
|
2013-10-19 19:21:40 +02:00
|
|
|
SNMP_LIB_DEPENDS= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp
|
2009-05-23 16:24:05 +02:00
|
|
|
|
2014-01-13 16:09:33 +01:00
|
|
|
USB_CONFIGURE_ENABLE= libusb
|
2013-10-19 19:21:40 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2009-05-23 16:24:05 +02:00
|
|
|
|
2013-10-19 19:21:40 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MCUPS}
|
2012-12-20 06:40:01 +01:00
|
|
|
CONFIGURE_ENV+= ac_cv_header_cups_cups_h=no
|
|
|
|
.endif
|
|
|
|
|
2013-10-19 19:21:40 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MIEEE1284}
|
|
|
|
CONFIGURE_ENV+= sane_cv_use_libieee1284=no
|
|
|
|
.endif
|
|
|
|
|
2005-06-01 21:56:04 +02:00
|
|
|
post-patch:
|
2012-12-20 06:40:01 +01:00
|
|
|
@${REINPLACE_CMD} -e '/^for ac_header in/s|libc.h|cups/cups.h| ; \
|
2014-01-13 16:09:33 +01:00
|
|
|
s|-e .*/cups.h|"$$ac_cv_header_cups_cups_h" = "yes"|' \
|
|
|
|
${WRKSRC}/configure
|
2012-12-20 06:40:01 +01:00
|
|
|
@${REINPLACE_CMD} -e '/^dist_doc_DATA/s|COPYING||' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e '/^pkgconfigdir/s|@libdir@|@prefix@/libdata|' \
|
|
|
|
${WRKSRC}/tools/Makefile.in
|
2013-01-08 01:02:56 +01:00
|
|
|
@${REINPLACE_CMD} -e '/^export PKG_CONFIG_LIBDIR=/s|@libdir@|@prefix@/libdata|' \
|
|
|
|
${WRKSRC}/tools/sane-config.in
|
2005-06-01 21:56:04 +02:00
|
|
|
|
2013-04-26 18:39:14 +02:00
|
|
|
.include <bsd.port.mk>
|