2007-10-02 15:09:44 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2007/10/02 19:09:44 jasper Exp $
|
2006-10-20 13:54:45 -04:00
|
|
|
|
2007-09-08 14:41:27 -04:00
|
|
|
COMMENT= scanner frontend for SANE
|
2006-10-20 13:54:45 -04:00
|
|
|
|
2007-03-21 04:19:34 -04:00
|
|
|
DISTNAME= xsane-0.994
|
2007-09-08 14:41:27 -04:00
|
|
|
PKGNAME= ${DISTNAME}p1
|
2006-10-20 13:54:45 -04:00
|
|
|
CATEGORIES= graphics
|
|
|
|
|
|
|
|
MASTER_SITES= ftp://ftp.sane-project.org/pub/sane/xsane/ \
|
|
|
|
http://gd.tuwien.ac.at/hci/sane/xsane/ \
|
|
|
|
ftp://gd.tuwien.ac.at/hci/sane/xsane/ \
|
|
|
|
ftp://ftp.no.mostang.com/pub/sane/xsane/ \
|
|
|
|
ftp://ftp2.sane-project.org/pub/sane/xsane/ \
|
|
|
|
ftp://sunsite.uio.no/pub/sane/xsane/
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.xsane.org/
|
|
|
|
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
|
|
|
# GPLv2
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2007-06-01 02:37:16 -04:00
|
|
|
WANTLIB= X11 Xau Xcursor Xdmcp Xext Xfixes Xi Xinerama Xrandr \
|
|
|
|
Xrender z atk-1.0 c cairo expat fontconfig freetype \
|
|
|
|
glib-2.0 glitz gmodule-2.0 gobject-2.0 gphoto2 \
|
|
|
|
gphoto2_port jpeg m pango-1.0 pangocairo-1.0 \
|
|
|
|
pangoft2-1.0 png pthread tiff usb
|
2006-10-20 13:54:45 -04:00
|
|
|
|
2007-10-02 15:09:44 -04:00
|
|
|
MODULES= devel/gettext
|
2006-10-20 13:54:45 -04:00
|
|
|
LIB_DEPENDS= gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2 \
|
2007-01-27 12:57:22 -05:00
|
|
|
lcms.>=1::graphics/lcms \
|
2006-10-20 13:54:45 -04:00
|
|
|
sane.>=1::graphics/sane-backends
|
|
|
|
|
2007-09-08 14:41:27 -04:00
|
|
|
SUBST_VARS= LOCALBASE
|
|
|
|
|
2006-10-20 13:54:45 -04:00
|
|
|
USE_X11= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
|
|
|
|
-I${LOCALBASE}/include/libpng" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
gt_cv_func_gettext_libintl=yes
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@rm -f ${WRKSRC}/src/xsane-save.c.orig
|
|
|
|
|
|
|
|
FLAVORS= gimp
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L} == "gimp"
|
|
|
|
LIB_DEPENDS+= gimp-2.0.>=200.0,gimpui-2.0.>=200.0,gimpmath-2.0.>=200.0,gimpwidgets-2.0.>=200.0,gimpbase-2.0.>=200.0,gimpcolor-2.0.>=200.0::graphics/gimp/stable
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS+="-I${LOCALBASE}/include/gimp-2.0"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-gimp
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|