# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD: head/games/aisleriot/Makefile 464068 2018-03-10 11:22:59Z cpm $

PORTNAME=	aisleriot
PORTVERSION=	3.22.2
PORTREVISION=	3
CATEGORIES=	games gnome
MASTER_SITES=	GNOME
DIST_SUBDIR=	gnome3

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Collection of patience games written in guile scheme

BUILD_DEPENDS=	itstool:textproc/itstool \
		appstream-builder:devel/appstream-glib \
		bash:shells/bash
LIB_DEPENDS=	libguile-2.0.so:lang/guile2 \
		libcanberra.so:audio/libcanberra \
		libcanberra-gtk3.so:audio/libcanberra-gtk3 \
		libgc-threaded.so:devel/boehm-gc-threaded

CONFLICTS_INSTALL=	sol-[0-9]*
PORTSCOUT=	limitw:1,even

USES=		desktop-file-utils gettext gmake gnome pathfix pkgconfig tar:xz
USE_GNOME=	cairo gconf2 gtk30 intlhack librsvg2 libxml2:build
USE_XORG=	x11

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-card-theme-formats=svg \
		--with-guile=2.0
# work around because configure needs bash
CONFIGURE_SHELL=${LOCALBASE}/bin/bash

GCONF_SCHEMAS=	aisleriot.schemas
GLIB_SCHEMAS=	org.gnome.Patience.WindowState.gschema.xml

INSTALLS_ICONS=	yes
.include <bsd.port.mk>
