freebsd-ports/devel/libpeas/Makefile
Koop Mast 5080ebdd42 Update libpeas to 0.20.0.
* add license
* tweak python version restrictions
* review dependancies

Obtained from:	gnome devel repo (based on)
2017-06-05 15:28:12 +00:00

56 lines
1.2 KiB
Makefile

# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$
PORTNAME= libpeas
PORTVERSION= 1.20.0
PORTREVISION?= 0
CATEGORIES= devel gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome3
MAINTAINER= gnome@FreeBSD.org
COMMENT?= Next evolution of the Gedit plugins engine
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= valac:lang/vala
LIBPEAS_SLAVE?= no
.if ${LIBPEAS_SLAVE} == no
PORTSCOUT= limitw:1,even
.else
LIB_DEPENDS+= libpeas-1.0.so:devel/libpeas
PORTSCOUT= ignore:1
.endif
USES= gettext gmake gnome libtool pathfix pkgconfig tar:xz
USE_GNOME= cairo gtk30 intlhack introspection
USE_LDCONFIG= yes
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
CONFIGURE_ARGS+=--disable-glade-catalog
PLIST= ${.CURDIR}/pkg-plist
.if ${LIBPEAS_SLAVE} == python2
USES+= python:-2.7
USE_GNOME+= pygobject3
.else
CONFIGURE_ARGS+= --disable-python2
.endif
.if ${LIBPEAS_SLAVE} == python3
USES+= python:3.3+
USE_GNOME+= py3gobject3
.else
CONFIGURE_ARGS+= --disable-python3
.endif
# lua needs lua 5.1 and devel/lua-lgi. The latter is build for lua 5.2 however..
CONFIGURE_ARGS+= --disable-lua5.1 --disable-luajit
.include <bsd.port.mk>