2001-03-22 10:13:27 +01:00
|
|
|
# New ports collection makefile for: sane-backends
|
1998-12-06 10:37:29 +01:00
|
|
|
# Date created: Sat Jul 19 16:23:10 MET DST 1997
|
|
|
|
# Whom: gary@hotlava.com
|
1998-03-01 01:44:59 +01:00
|
|
|
#
|
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
|
2008-02-18 23:16:24 +01:00
|
|
|
PORTVERSION= 1.0.19
|
1998-03-01 01:44:59 +01:00
|
|
|
CATEGORIES= graphics
|
2008-02-18 23:16:24 +01:00
|
|
|
MASTER_SITES= http://alioth.debian.org/frs/download.php/2318/ \
|
2005-08-30 03:27:03 +02:00
|
|
|
ftp://ftp.sane-project.org/pub/sane/%SUBDIR%/ \
|
2004-08-25 12:38:38 +02:00
|
|
|
ftp://ftp2.sane-project.org/pub/sane/%SUBDIR%/ \
|
|
|
|
ftp://ftp3.sane-project.org/pub/sane/%SUBDIR%/ \
|
|
|
|
ftp://gd.tuwien.ac.at/hci/sane/%SUBDIR%/ \
|
|
|
|
http://gd.tuwien.ac.at/hci/sane/%SUBDIR%/
|
2004-05-10 20:07:50 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}-${PORTVERSION}
|
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
|
|
|
|
2006-09-26 14:35:08 +02:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
1999-05-29 05:56:15 +02:00
|
|
|
|
2005-08-30 03:27:03 +02:00
|
|
|
OPTIONS= USB "USB support" on \
|
|
|
|
NLS "NLS support" on \
|
|
|
|
GPHOTO2 "gPhoto2 support" off
|
|
|
|
|
|
|
|
USE_GNOME= gnometarget
|
|
|
|
USE_GMAKE= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2002-05-30 07:07:48 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2004-05-10 20:07:50 +02:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2007-07-23 11:36:51 +02:00
|
|
|
CONFIGURE_ARGS= --with-docdir=${DOCSDIR} \
|
2006-09-26 14:35:08 +02:00
|
|
|
--disable-locking
|
2007-03-17 19:51:17 +01:00
|
|
|
|
2005-08-30 03:27:03 +02:00
|
|
|
MAKE_ENV= NOPORTDOCS=${NOPORTDOCS}
|
2006-08-15 01:06:39 +02:00
|
|
|
USE_LDCONFIG= yes
|
1998-03-01 01:44:59 +01:00
|
|
|
|
2005-08-30 03:27:03 +02:00
|
|
|
.include "Makefile.man"
|
2003-06-13 13:27:40 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-08-22 13:24:34 +02:00
|
|
|
.if defined(WITHOUT_USB)
|
|
|
|
CONFIGURE_ARGS+= --disable-libusb
|
|
|
|
.else
|
2006-02-19 23:10:13 +01:00
|
|
|
LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb
|
2004-08-22 13:24:34 +02:00
|
|
|
.endif
|
|
|
|
|
2004-05-10 20:07:50 +02:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+= --disable-translations
|
2006-02-19 23:10:13 +01:00
|
|
|
PLIST_SUB+= NLS="@comment "
|
2004-05-10 20:07:50 +02:00
|
|
|
.else
|
2006-02-19 23:10:13 +01:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
2004-05-10 20:07:50 +02:00
|
|
|
.endif
|
|
|
|
|
2002-03-16 08:20:59 +01:00
|
|
|
.if defined(WITH_GPHOTO2)
|
2006-02-19 23:10:13 +01:00
|
|
|
LIB_DEPENDS+= gphoto2.2:${PORTSDIR}/graphics/libgphoto2
|
|
|
|
PLIST_SUB+= GPHOTO2=""
|
2002-03-16 08:20:59 +01:00
|
|
|
.else
|
2004-05-10 20:07:50 +02:00
|
|
|
CONFIGURE_ARGS+= --with-gphoto2=no
|
2006-02-19 23:10:13 +01:00
|
|
|
PLIST_SUB+= GPHOTO2="@comment "
|
2002-03-16 08:20:59 +01:00
|
|
|
.endif
|
|
|
|
|
2005-06-01 21:56:04 +02:00
|
|
|
post-patch:
|
2005-08-30 03:27:03 +02:00
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|= \.\./libtool|= @LIBTOOL@|g'
|
2008-02-18 23:16:24 +01:00
|
|
|
@${REINPLACE_CMD} -e '/^for ac_header in/s|libc.h||g ; \
|
|
|
|
s|} -D_REENT|} ${PTHREAD_CFLAGS} -D_REENT|g ; \
|
|
|
|
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
2005-06-01 21:56:04 +02:00
|
|
|
|
2003-06-13 13:27:40 +02:00
|
|
|
.include <bsd.port.post.mk>
|