openbsd-ports/x11/gnustep/back/Makefile

54 lines
1.2 KiB
Makefile
Raw Normal View History

2010-10-11 04:11:24 -04:00
# $OpenBSD: Makefile,v 1.18 2010/10/11 08:19:58 jasper Exp $
COMMENT= GNUstep gui backend
V= 0.18.0
2008-12-23 10:25:51 -05:00
DISTNAME= gnustep-back-${V}
2010-10-11 04:11:24 -04:00
REVISION= 2
CATEGORIES= devel
2008-12-23 10:25:51 -05:00
BACKENDV= ${V:C/([0-9])*[.]([0-9]*).*/\1\2/1}
SUBST_VARS= BACKENDV
HOMEPAGE= http://www.gnustep.org/
WANTLIB= GL X11 Xt Xext Xmu c freetype m objc pthread z \
2010-07-30 07:29:44 -04:00
pthread-stubs xcb gnustep-base gnustep-gui
2008-10-03 03:21:56 -04:00
MASTER_SITES= ${MASTER_SITE_GNUSTEP:=core/}
USE_X11= Yes
MODULES= x11/gnustep
2010-07-30 07:29:44 -04:00
LIB_DEPENDS= ::x11/gnustep/base \
::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
2010-07-30 07:29:44 -04:00
LIB_DEPENDS+= ::graphics/cairo
2010-10-11 04:11:24 -04:00
WANTLIB+= Xau Xdmcp Xft Xrender expat fontconfig pixman-1 \
2010-07-30 07:29:44 -04:00
png cairo
.elif ${FLAVOR:L} == "libart"
CONFIGURE_ARGS+=--enable-graphics=art \
--with-name=art
2010-07-30 07:29:44 -04:00
LIB_DEPENDS+= ::graphics/libart
WANTLIB += art_lgpl_2
.elif ${FLAVOR:L} == "xlib"
CONFIGURE_ARGS+=--enable-graphics=xlib \
--with-name=back
WANTLIB+= Xau Xdmcp Xft Xrender expat fontconfig
.else
ERRORS+= choose one backend FLAVOR: cairo, libart or xlib
.endif
.include <bsd.port.mk>