# $OpenBSD: Makefile,v 1.22 2017/04/10 11:45:24 sthen Exp $

COMMENT =		suite of tools for electronic design automation
DISTNAME =		geda-gaf-1.6.0
CATEGORIES =		cad
HOMEPAGE =		http://geda.seul.org
MAINTAINER =		Edd Barrett <edd@openbsd.org>

REVISION =		9

SHARED_LIBS = 		geda	0.0	# 38.0

# GPLv2+
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB += GL X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes Xi
WANTLIB += Xinerama Xrandr Xrender Xxf86vm atk-1.0 c cairo drm expat ffi
WANTLIB += fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0
WANTLIB += glib-2.0 gmodule-2.0 gmp gobject-2.0 graphite2 gthread-2.0
WANTLIB += gtk-x11-2.0 guile harfbuzz ltdl m pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 pcre pixman-1 png pthread pthread-stubs ${LIBCXX}
WANTLIB += xcb xcb-render xcb-shm z

MASTER_SITES =		http://geda.seul.org/release/v1.6/1.6.0/

MODULES =		devel/gettext

LIB_DEPENDS =		devel/glib2 \
			x11/gtk+2 \
			lang/guile \
			devel/gmp

# these are checked by configure
BUILD_DEPENDS =		misc/shared-mime-info \
			devel/desktop-file-utils

RUN_DEPENDS = 		misc/shared-mime-info \
			devel/desktop-file-utils \
			x11/gtk+3,-guic

USE_GMAKE =		Yes
CONFIGURE_STYLE =	gnu
CONFIGURE_ARGS =	--disable-update-xdg-database
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/build-tools

# This confuses update-patches.
post-extract:
	rm ${WRKSRC}/gnetlist/examples/vams/gschemrc.orig

# MAKE_ENV hoses the regression test, so we do this manually
do-test:
	cd ${WRKSRC} && ${MAKE_PROGRAM} ${ALL_TEST_FLAGS} \
		-f ${MAKE_FILE} ${TEST_TARGET} ${TEST_LOG}

.include <bsd.port.mk>
