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
|
2005-12-26 23:25:26 +01:00
|
|
|
PORTVERSION= 1.0.17
|
2006-04-07 16:24:48 +02:00
|
|
|
PORTREVISION= 3
|
1998-03-01 01:44:59 +01:00
|
|
|
CATEGORIES= graphics
|
2005-12-26 23:25:26 +01:00
|
|
|
MASTER_SITES= http://alioth.debian.org/download.php/1347/ \
|
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
|
|
|
|
2004-08-22 13:24:34 +02:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
|
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"
|
2005-10-09 23:35:15 +02:00
|
|
|
CONFIGURE_ARGS= --with-docdir=${DOCSDIR} --disable-locking
|
2005-08-30 03:27:03 +02:00
|
|
|
MAKE_ENV= NOPORTDOCS=${NOPORTDOCS}
|
2001-07-03 15:09:58 +02:00
|
|
|
INSTALLS_SHLIB= 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
|
|
|
|
|
2006-02-19 23:10:13 +01:00
|
|
|
pre-fetch:
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "*** ATTENTION ***"
|
|
|
|
@${ECHO} ""
|
2006-04-07 16:24:48 +02:00
|
|
|
@${ECHO} "Older versions than 1.0.17_1 do not check if you change config files."
|
|
|
|
@${ECHO} "If that's the case for you, press CTRL+C and backup your config files."
|
2006-02-19 23:10:13 +01:00
|
|
|
@${ECHO} ""
|
|
|
|
|
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'
|
2005-12-26 23:25:26 +01:00
|
|
|
@${REINPLACE_CMD} -e '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>
|