2010-11-09 14:00:28 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.25 2010/11/09 19:00:28 espie 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
|
|
|
|
2009-08-14 14:49:54 -04:00
|
|
|
DISTNAME= xsane-0.997
|
2010-10-11 04:11:24 -04:00
|
|
|
REVISION= 3
|
2009-12-22 11:06:40 -05:00
|
|
|
|
2006-10-20 13:54:45 -04:00
|
|
|
CATEGORIES= graphics
|
|
|
|
|
2009-08-14 14:49:54 -04:00
|
|
|
MASTER_SITES= http://www.xsane.org/download/
|
2006-10-20 13:54:45 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.xsane.org/
|
|
|
|
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
2008-09-24 13:01:16 -04:00
|
|
|
# GPLv2
|
2006-10-20 13:54:45 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-09-30 03:21:18 -04:00
|
|
|
WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes gdk_pixbuf-2.0
|
2009-04-18 08:22:13 -04:00
|
|
|
WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 c cairo exif expat
|
2010-10-11 04:11:24 -04:00
|
|
|
WANTLIB += fontconfig freetype gio-2.0 glib-2.0 gmodule-2.0
|
2009-04-18 08:22:13 -04:00
|
|
|
WANTLIB += gobject-2.0 gphoto2 gphoto2_port jpeg m pango-1.0 pangocairo-1.0
|
2009-08-10 02:29:51 -04:00
|
|
|
WANTLIB += pangoft2-1.0 pixman-1 png pthread pthread-stubs tiff usb xcb z
|
2010-04-26 05:57:59 -04:00
|
|
|
WANTLIB += avahi-client avahi-common gthread-2.0 xcb-render xcb-render-util
|
2010-11-09 14:00:28 -05:00
|
|
|
WANTLIB += gdk-x11-2.0 gtk-x11-2.0 lcms.>=1 sane.>=1
|
2006-10-20 13:54:45 -04:00
|
|
|
|
2007-10-02 15:09:44 -04:00
|
|
|
MODULES= devel/gettext
|
2010-11-09 14:00:28 -05:00
|
|
|
LIB_DEPENDS= ::x11/gtk+2 \
|
|
|
|
::graphics/lcms \
|
|
|
|
::graphics/sane-backends
|
2009-04-18 08:22:13 -04:00
|
|
|
RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils \
|
|
|
|
::devel/xdg-utils
|
2006-10-20 13:54:45 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2010-10-18 14:13:12 -04:00
|
|
|
USE_GROFF = Yes
|
2006-10-20 13:54:45 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
|
|
|
|
-I${LOCALBASE}/include/libpng" \
|
2008-09-24 12:30:43 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -liconv" \
|
2006-10-20 13:54:45 -04:00
|
|
|
gt_cv_func_gettext_libintl=yes
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
FLAVORS= gimp
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L} == "gimp"
|
2010-11-09 14:00:28 -05:00
|
|
|
WANTLIB += gthread-2.0 gimp-2.0.>=200.0 gimpmodule-2.0 gimpui-2.0
|
|
|
|
WANTLIB += gimpmath-2.0 gimpwidgets-2.0 gimpbase-2.0 gimpcolor-2.0
|
|
|
|
WANTLIB += gimpconfig-2.0
|
|
|
|
LIB_DEPENDS +=::graphics/gimp/stable
|
|
|
|
CONFIGURE_ENV += CPPFLAGS+="-I${LOCALBASE}/include/gimp-2.0"
|
2006-10-20 13:54:45 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-gimp
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|