# $OpenBSD: Makefile,v 1.13 2011/04/17 15:11:57 ajacoutot Exp $

COMMENT =	tool for working with RAW images

DISTNAME =	rawstudio-1.2
REVISION =	4

CATEGORIES =	graphics

MAINTAINER =	Stuart Henderson <sthen@openbsd.org>

HOMEPAGE =	http://rawstudio.org
MASTER_SITES =	${HOMEPAGE}/files/release/

# GPLv2+
PERMIT_PACKAGE_CDROM =	Yes
PERMIT_PACKAGE_FTP =	Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP =	Yes

CONFIGURE_STYLE =	gnu
CONFIGURE_ENV +=	CPPFLAGS=-I${LOCALBASE}/include \
			LDFLAGS=-L${LOCALBASE}/lib

WANTLIB += ORBit-2 X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 c cairo dbus-1 exiv2 expat
WANTLIB += fontconfig freetype gconf-2 gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0
WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0 gtk-x11-2.0
WANTLIB += jpeg lcms m pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1
WANTLIB += png pthread pthread-stubs stdc++ tiff xcb xcb-render
WANTLIB += xcb-render-util xml2 z

MODULES =	devel/gettext
LIB_DEPENDS +=	x11/dbus \
		graphics/exiv2 \
		devel/gconf2 \
		x11/gtk+2 \
		graphics/jpeg \
		graphics/lcms \
		devel/ORBit2 \
		graphics/png \
		graphics/tiff \
		textproc/libxml

RUN_DEPENDS =	devel/desktop-file-utils \
		x11/gtk-engines2

NO_REGRESS =	Yes

.include <bsd.port.mk>
