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
|
2004-05-09 15:01:17 +02:00
|
|
|
PORTVERSION= 1.0.14
|
1998-03-01 01:44:59 +01:00
|
|
|
CATEGORIES= graphics
|
2001-07-03 15:09:58 +02:00
|
|
|
MASTER_SITES= ftp://ftp.mostang.com/pub/sane/%SUBDIR%/ \
|
2002-02-19 22:25:57 +01:00
|
|
|
ftp://ftp.de.mostang.com/pub/sane/%SUBDIR%/ \
|
2001-07-03 15:09:58 +02:00
|
|
|
ftp://ftp.no.mostang.com/pub/sane/%SUBDIR%/
|
2003-06-13 13:27:40 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}-${PORTVERSION} \
|
|
|
|
old-versions/${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-02-04 05:36:30 +01:00
|
|
|
LIB_DEPENDS= usb-0.1.7:${PORTSDIR}/devel/libusb \
|
2002-02-10 00:28:47 +01:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg
|
1999-05-29 05:56:15 +02:00
|
|
|
|
2002-07-08 12:41:30 +02:00
|
|
|
USE_REINPLACE= yes
|
2004-02-04 05:36:30 +01:00
|
|
|
USE_GETTEXT= yes
|
1998-03-01 01:44:59 +01:00
|
|
|
USE_GMAKE= yes
|
2004-03-14 07:17:56 +01:00
|
|
|
USE_LIBTOOL_VER=13
|
2003-02-10 22:07:20 +01:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2002-05-30 07:07:48 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2000-04-30 01:44:21 +02:00
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
2001-07-03 15:09:58 +02:00
|
|
|
MAKE_ENV= NOPORTDOCS=${NOPORTDOCS}
|
|
|
|
INSTALLS_SHLIB= yes
|
1998-03-01 01:44:59 +01:00
|
|
|
|
2003-06-13 13:27:40 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-03-16 08:20:59 +01:00
|
|
|
.if defined(WITH_GPHOTO2)
|
|
|
|
LIB_DEPENDS+= gphoto2.2:${PORTSDIR}/graphics/gphoto2
|
|
|
|
CONFIGURE_ARGS+= --with-gphoto2=yes
|
|
|
|
PLIST_SUB+= GPHOTO2=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GPHOTO2="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
.if !defined(WITH_GPHOTO2)
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "If you want to compile with gPhoto2 support,"
|
|
|
|
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_GPHOTO2=yes\""
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2002-07-08 12:41:30 +02:00
|
|
|
@${REINPLACE_CMD} -e 's| -I/usr/local/include||g ; \
|
2002-05-30 07:07:48 +02:00
|
|
|
s|gphoto2 2.0.1|gphoto2 2.0|g' ${WRKSRC}/configure
|
2002-03-16 08:20:59 +01:00
|
|
|
|
2002-05-30 07:07:48 +02:00
|
|
|
.include "Makefile.man"
|
2003-06-13 13:27:40 +02:00
|
|
|
.include <bsd.port.post.mk>
|