2011-01-17 18:26:50 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.38 2011/01/17 23:26:50 ajacoutot Exp $
|
2005-10-03 17:15:04 -04:00
|
|
|
|
2007-09-15 16:09:40 -04:00
|
|
|
COMMENT= API for accessing scanners, backends
|
2005-10-03 17:15:04 -04:00
|
|
|
|
2010-04-26 06:41:28 -04:00
|
|
|
DISTNAME= sane-backends-1.0.21
|
2011-01-17 18:26:50 -05:00
|
|
|
REVISION= 12
|
2010-04-27 10:29:44 -04:00
|
|
|
|
|
|
|
PATCHFILES= sane-backends-1.0.21-i18n.patch
|
|
|
|
PATCH_DIST_STRIP= -p1
|
2009-05-11 11:22:07 -04:00
|
|
|
|
2009-05-06 06:23:21 -04:00
|
|
|
SHARED_LIBS= sane 2.0 # .1.0
|
2005-10-03 17:15:04 -04:00
|
|
|
CATEGORIES= graphics
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.sane-project.org/
|
|
|
|
|
2006-10-27 08:53:01 -04:00
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
2005-10-03 17:15:04 -04:00
|
|
|
|
|
|
|
# GPLv2
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-10-28 08:32:57 -04:00
|
|
|
WANTLIB += c dbus-1 exif jpeg ltdl m pthread usb z tiff
|
|
|
|
WANTLIB += gphoto2 gphoto2_port avahi-client avahi-common
|
2009-05-06 06:23:21 -04:00
|
|
|
|
2005-10-03 17:15:04 -04:00
|
|
|
MASTER_SITES= ftp://ftp.sane-project.org/pub/sane/${DISTNAME}/ \
|
2006-07-22 07:52:49 -04:00
|
|
|
ftp://ftp.ibiblio.org/pub/Linux/apps/graphics/capture/ \
|
2005-10-03 17:15:04 -04:00
|
|
|
http://gd.tuwien.ac.at/hci/sane/${DISTNAME}/ \
|
2005-10-06 18:37:45 -04:00
|
|
|
ftp://gd.tuwien.ac.at/hci/sane/${DISTNAME}/ \
|
|
|
|
ftp://ftp.sane-project.org/pub/sane/old-versions/${DISTNAME}/
|
2008-02-13 08:23:58 -05:00
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
LIB_DEPENDS= graphics/tiff \
|
|
|
|
graphics/libgphoto2 \
|
|
|
|
net/avahi
|
2005-10-03 17:15:04 -04:00
|
|
|
|
2006-04-23 06:29:53 -04:00
|
|
|
MODULES= devel/gettext
|
2008-02-13 08:23:58 -05:00
|
|
|
|
2005-10-03 17:15:04 -04:00
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
USE_GMAKE= Yes
|
2010-10-18 14:13:12 -04:00
|
|
|
USE_GROFF = Yes
|
2005-10-03 17:15:04 -04:00
|
|
|
|
2008-02-13 08:23:58 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
2005-10-03 17:15:04 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2006-04-23 06:29:53 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
ac_cv_path_MAKEDEPEND="no"
|
2005-10-03 17:15:04 -04:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2008-02-13 08:23:58 -05:00
|
|
|
--sbindir=${PREFIX}/libexec \
|
|
|
|
--with-docdir=${PREFIX}/share/doc/sane-backends \
|
2005-10-09 05:12:19 -04:00
|
|
|
--localstatedir=/var/spool \
|
2006-04-23 06:29:53 -04:00
|
|
|
--with-gphoto2 \
|
2009-05-06 06:23:21 -04:00
|
|
|
--with-group=553 \
|
2009-06-08 15:42:32 -04:00
|
|
|
--enable-avahi \
|
2009-05-06 06:23:21 -04:00
|
|
|
--disable-latex
|
2005-10-03 17:15:04 -04:00
|
|
|
|
2008-02-13 08:23:58 -05:00
|
|
|
FAKE_FLAGS= configdir=${PREFIX}/share/examples/sane-backends/sane.d
|
2005-10-03 17:15:04 -04:00
|
|
|
|
2009-05-06 06:23:21 -04:00
|
|
|
post-install:
|
2010-11-25 08:55:57 -05:00
|
|
|
# removing the microtek2 backend which needs a Linux kernel module
|
|
|
|
find ${PREFIX} -name \*microtek2\* | xargs rm
|
2009-05-06 06:23:21 -04:00
|
|
|
cp -R ${WRKSRC}/tools/openbsd/ \
|
|
|
|
${PREFIX}/share/examples/sane-backends/hotplug
|
|
|
|
|
2005-10-03 17:15:04 -04:00
|
|
|
.include <bsd.port.mk>
|