openbsd-ports/devel/gobject-introspection/Makefile
2010-10-24 15:33:14 +00:00

69 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.18 2010/10/24 15:33:14 jasper Exp $
# Look at cairo-related regression failure.
# and cairo/cairo.h: No such file or directory during build.
#
# Look at re-entering tests/.
COMMENT= GObject Introspection
GNOME_VERSION= 0.9.12
GNOME_PROJECT= gobject-introspection
REVISION= 0
CATEGORIES= devel
SHARED_LIBS += girepository-1.0 1.0 # 1.0
#SHARED_LIBS += everything-1.0 0.0 # .0.0
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>, \
Antoine Jacoutot <ajacoutot@openbsd.org>
HOMEPAGE= http://live.gnome.org/GObjectIntrospection
# Library: LGPLv2+
# Tools: GPLv2+
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= devel/gettext \
lang/python \
x11/gnome
WANTLIB += X11 Xau Xdmcp Xrender c expat fontconfig freetype
WANTLIB += m pcre pixman-1 png pthread pthread-stubs xcb xcb-render
WANTLIB += xcb-render-util z gio-2.0 glib-2.0 gmodule-2.0 ffi
WANTLIB += gobject-2.0 gthread-2.0 cairo
LIB_DEPENDS= ::devel/glib2 \
::devel/libffi \
::graphics/cairo
BUILD_DEPENDS= ::devel/bison
USE_LIBTOOL= gnu
USE_GROFF = Yes
YACC= bison
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--disable-gtk-doc
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CFLAGS+= -pthread
SUBST_VARS+= MODPY_SITEPKG LIBTOOL
pre-configure:
${SUBST_CMD} ${WRKSRC}/Makefile.introspection \
${WRKSRC}/gir/Makefile.in \
${WRKSRC}/giscanner/utils.py \
${WRKSRC}/tests/scanner/Makefile.in \
${WRKSRC}/tests/offsets/Makefile.in \
${WRKSRC}/tools/g-ir-scanner.in
perl -pi -e "s,'cc','${CC}'," ${WRKSRC}/giscanner/sourcescanner.py
.include <bsd.port.mk>