forked from Lainports/freebsd-ports
39 lines
1.4 KiB
Makefile
39 lines
1.4 KiB
Makefile
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= Glib-Object-Introspection
|
|
PORTVERSION= 0.028
|
|
CATEGORIES= devel perl5
|
|
MASTER_SITES= CPAN
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Dynamically create Perl language bindings
|
|
|
|
LICENSE= LGPL21
|
|
|
|
# t/vfunc-ref-counting.t requires gobject-introspection 1.35.5+
|
|
BUILD_DEPENDS= p5-ExtUtils-Depends>=0.300:${PORTSDIR}/devel/p5-ExtUtils-Depends \
|
|
p5-ExtUtils-PkgConfig>=1:${PORTSDIR}/devel/p5-ExtUtils-PkgConfig \
|
|
p5-Glib2>=1.270:${PORTSDIR}/devel/p5-Glib2
|
|
LIB_DEPENDS= libffi.so:${PORTSDIR}/devel/libffi
|
|
RUN_DEPENDS= p5-Glib2>=1.270:${PORTSDIR}/devel/p5-Glib2
|
|
TEST_DEPENDS= p5-Cairo-GObject>=0:${PORTSDIR}/devel/p5-Cairo-GObject
|
|
|
|
OPTIONS_DEFINE= TEST
|
|
|
|
USE_GNOME= introspection
|
|
USE_PERL5= configure
|
|
USES= perl5
|
|
|
|
# Glib::Object::Introspection requires cairo and glib20 to build
|
|
# test libraries during build phase, therefore we add them to BUILD_DEPENDS.
|
|
TEST_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/cairo.pc:${PORTSDIR}/graphics/cairo \
|
|
${LOCALBASE}/libdata/pkgconfig/glib-2.0.pc:${PORTSDIR}/devel/glib20
|
|
|
|
post-install:
|
|
${CHMOD} u+w ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Glib/Object/Introspection/Introspection.so
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Glib/Object/Introspection/Introspection.so
|
|
${CHMOD} u-w ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Glib/Object/Introspection/Introspection.so
|
|
|
|
.include <bsd.port.mk>
|