openbsd-ports/graphics/xsane/Makefile

66 lines
1.7 KiB
Makefile
Raw Normal View History

2011-12-02 09:36:13 -05:00
# $OpenBSD: Makefile,v 1.33 2011/12/02 14:36:14 espie Exp $
COMMENT= scanner frontend for SANE
2010-11-18 02:30:10 -05:00
DISTNAME= xsane-0.998
2011-11-02 05:57:21 -04:00
REVISION= 3
CATEGORIES= graphics
MASTER_SITES= http://www.xsane.org/download/
HOMEPAGE= http://www.xsane.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
2008-09-24 13:01:16 -04:00
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2011-11-02 05:57:21 -04:00
WANTLIB += GL X11 Xcomposite Xcursor Xdamage Xext Xfixes
WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 c cairo
WANTLIB += expat fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0
WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0
WANTLIB += gtk-x11-2.0 jpeg lcms m pango-1.0 pangocairo-1.0 pangoft2-1.0
WANTLIB += pixman-1 png pthread pthread-stubs sane tiff usb xcb
WANTLIB += xcb-render xcb-shm z
MODULES= devel/gettext
2010-11-17 03:05:12 -05:00
LIB_DEPENDS= x11/gtk+2 \
graphics/lcms \
graphics/sane-backends
RUN_DEPENDS= devel/desktop-file-utils \
devel/xdg-utils
USE_GMAKE= Yes
2010-10-18 14:13:12 -04:00
USE_GROFF = Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
-I${LOCALBASE}/include/libpng" \
LDFLAGS="-L${LOCALBASE}/lib -liconv" \
gt_cv_func_gettext_libintl=yes
NO_REGRESS= Yes
FLAVORS= gimp
FLAVOR?=
2011-12-02 09:36:13 -05:00
.if ${FLAVOR} == "gimp"
2010-11-17 03:05:12 -05:00
WANTLIB += gthread-2.0 gimp-2.0>=200.0 gimpmodule-2.0 gimpui-2.0
2010-11-09 14:00:28 -05:00
WANTLIB += gimpmath-2.0 gimpwidgets-2.0 gimpbase-2.0 gimpcolor-2.0
WANTLIB += gimpconfig-2.0
2010-11-17 03:05:12 -05:00
LIB_DEPENDS +=graphics/gimp/stable
2010-11-09 14:00:28 -05:00
CONFIGURE_ENV += CPPFLAGS+="-I${LOCALBASE}/include/gimp-2.0"
.else
CONFIGURE_ARGS+=--disable-gimp
.endif
MAKE_FLAGS= localedir=${TRUEPREFIX}/share/locale \
sanedatadir=${TRUEPREFIX}/share/ \
xsanedocdir=${TRUEPREFIX}/share/doc/xsane/
2011-05-02 14:57:53 -04:00
.include <bsd.port.mk>