openbsd-ports/x11/gnustep/back/Makefile
2008-10-03 07:21:56 +00:00

46 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2008/10/03 07:21:56 ajacoutot Exp $
COMMENT= GNUstep gui backend
DISTNAME= gnustep-back-0.14.0
CATEGORIES= devel
HOMEPAGE= http://www.gnustep.org/
WANTLIB= GL X11 Xt Xext Xmu c freetype m objc pthread z
MASTER_SITES= ${MASTER_SITE_GNUSTEP:=core/}
USE_X11= Yes
MODULES= x11/gnustep
LIB_DEPENDS= gnustep-base.>=1::x11/gnustep/base \
gnustep-gui::x11/gnustep/gui
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -lm"
CONFIGURE_ARGS= --with-x \
--disable-glitz
FLAVORS= cairo libart xlib
FLAVOR?= xlib
.if ${FLAVOR:L} == "cairo"
CONFIGURE_ARGS+=--enable-graphics=cairo \
--with-name=cairo
LIB_DEPENDS+= cairo.>=8::graphics/cairo
WANTLIB+= Xau Xdmcp Xft Xrender expat fontconfig glitz pixman-1 \
png
.elif ${FLAVOR:L} == "libart"
CONFIGURE_ARGS+=--enable-graphics=art \
--with-name=art
LIB_DEPENDS+= art_lgpl_2.>=5::graphics/libart
.elif ${FLAVOR:L} == "xlib"
CONFIGURE_ARGS+=--enable-graphics=xlib \
--with-name=back
WANTLIB+= Xau Xdmcp Xft Xrender expat fontconfig
.else
BROKEN= choose one backend FLAVOR: cairo, libart or xlib
.endif
.include <bsd.port.mk>