openbsd-ports/devel/vte/Makefile

94 lines
2.4 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.74 2011/05/13 23:07:16 jasper Exp $
COMMENT-main= terminal emulation library (gtk+2)
COMMENT-python= python bindings for vte
COMMENT-pty-helper= setuid helper for opening ptys
COMMENT-gtk3= terminal emulation library (gtk+3)
GNOME_PROJECT= vte
GNOME_VERSION= 0.28.0
PKGNAME-main= ${DISTNAME}
2010-04-20 07:43:25 -04:00
PKGNAME-python= py-${DISTNAME}
PKGNAME-pty-helper= vte-ptyhelper-${GNOME_VERSION}
REVISION-main= 1
2009-06-01 18:16:57 -04:00
CATEGORIES= devel
2009-06-01 18:16:57 -04:00
HOMEPAGE= http://www.gnome.org/
2009-09-25 11:56:29 -04:00
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>, \
Antoine Jacoutot <ajacoutot@openbsd.org>
# LGPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= devel/gettext \
2007-12-15 07:07:48 -05:00
lang/python \
x11/gnome
2007-12-15 07:07:48 -05:00
MODPY_RUNDEP= No
MULTI_PACKAGES= -main -pty-helper
# Don't pull in x11/py-gtk2 on these archs; build fails with binutils 2.15
NOT_FOR_ARCHS-python= mips64 mips64el
2010-04-20 07:43:25 -04:00
WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 cairo expat fontconfig
2010-10-11 04:11:24 -04:00
WANTLIB += freetype gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
2010-04-20 07:43:25 -04:00
WANTLIB += m ncurses pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre
2010-11-13 13:46:55 -05:00
WANTLIB += pixman-1 png pthread-stubs xcb xcb-render drm xcb-shm
WANTLIB += z gthread-2.0 gdk_pixbuf-2.0 GL Xxf86vm
WANTLIB-main= ${WANTLIB} c pthread
WANTLIB-pty-helper= util c
RUN_DEPENDS-main= ${BASE_PKGPATH},-pty-helper
2010-11-15 14:45:56 -05:00
WANTLIB-python= ${WANTLIB} ffi vte>=14 gtk-x11-2.0
BUILD_DEPENDS= devel/gobject-introspection
.if ! ${MACHINE_ARCH:Mmips64*}
BUILD_DEPENDS+= x11/py-gtk2
.endif
LIB_DEPENDS-python= ${LIB_DEPENDS-main} \
2010-11-15 14:45:56 -05:00
${BASE_PKGPATH} \
devel/libffi
RUN_DEPENDS-python= ${MODPY_RUN_DEPENDS} \
2010-11-15 14:45:56 -05:00
x11/py-gtk2
2006-01-17 01:58:59 -05:00
PSEUDO_FLAVORS= gtk3
FLAVOR?=
.if ${FLAVOR:L:Mgtk3}
LIB_DEPENDS-main+= ${LIB_DEPENDS} \
x11/gtk+3
WANTLIB-main+= cairo-gobject gdk-3 gtk-3
CONFIGURE_ARGS+= --with-gtk=3.0
PKGNAME-main= vte3-${GNOME_VERSION}
SHARED_LIBS += vte2_90 0.0 # 2809.0
.else
LIB_DEPENDS-main= ${LIB_DEPENDS} \
x11/gtk+2
WANTLIB-main+= gdk-x11-2.0 gtk-x11-2.0
CONFIGURE_ARGS+= --with-gtk=2.0
MULTI_PACKAGES+= -python
PKGNAME-main= vte-${GNOME_VERSION}
SHARED_LIBS+= vte 14.1 # 2609.0
.endif
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--enable-introspection \
--disable-Bsymbolic
.if ! ${MACHINE_ARCH:Mmips64*}
CONFIGURE_ARGS+= --enable-python
.endif
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.mk>