# Created by: Pawel Worach <pawel.worach@gmail.com>
# $FreeBSD: head/lang/gjs/Makefile 449591 2017-09-10 20:55:38Z gerald $

PORTNAME=	gjs
PORTVERSION=	1.44.0
PORTREVISION=	2
CATEGORIES=	lang gnome
MASTER_SITES=	GNOME
DIST_SUBDIR=	gnome3

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	GNOME Javascript binding

LIB_DEPENDS=	libdbus-glib-1.so:devel/dbus-glib \
		libmozjs-24.so:lang/spidermonkey24

USES=		compiler:c++11-lib gettext gmake gnome libtool \
		pathfix pkgconfig python:build tar:xz
USE_GNOME=	cairo glib20 gnomeprefix introspection:build \
		intlhack
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib
INSTALL_TARGET=	install-strip

post-install:
	@${RM} -r ${STAGEDIR}${PREFIX}/libexec/gjs

.include <bsd.port.mk>
