[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / x11 / libunique

File: [cvs.NetBSD.org] / pkgsrc / x11 / libunique / Makefile (download)

Revision 1.39, Sun Oct 15 23:19:13 2017 UTC (7 months, 1 week ago) by prlw1
Branch: MAIN
CVS Tags: pkgsrc-2017Q4-base, pkgsrc-2017Q4
Changes since 1.38: +0 -1 lines

Revert buildtool.mk additions for glib-{mkenums,genmarshal} using packages
Add TOOL_DEPENDS+=glib2-tools to glib2/buildlink3.mk

# $NetBSD: Makefile,v 1.39 2017/10/15 23:19:13 prlw1 Exp $

DISTNAME=	libunique-1.1.6
PKGREVISION=	24
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GNOME:=sources/libunique/1.1/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://wiki.gnome.org/Attic/LibUnique
COMMENT=	Library for writing single instance applications (deprecated)
LICENSE=	gnu-lgpl-v2.1

GNU_CONFIGURE=		yes
USE_LIBTOOL=		yes
USE_TOOLS+=		pkg-config gmake

PKGCONFIG_OVERRIDE+=	unique.pc.in

BUILDLINK_TRANSFORM+=	rm:-Werror

# Workaround for Upstream Bug#562310.
# for more detail, see also PR#41475.
TOOLS_NOOP+=	gtkdoc-rebase

SUBST_CLASSES+=		g_const
SUBST_STAGE.g_const=	post-configure
SUBST_MESSAGE.g_const=	Replace deprecated G_CONST_RETURN with plain "const".
SUBST_FILES.g_const=	unique/uniqueapp.c
SUBST_FILES.g_const+=	unique/uniquebackend.c
SUBST_FILES.g_const+=	unique/uniquebackend.h
SUBST_FILES.g_const+=	unique/uniqueinternals.h
SUBST_FILES.g_const+=	unique/uniquemessage.c
SUBST_FILES.g_const+=	unique/uniquemessage.h
SUBST_SED.g_const=	-e 's/G_CONST_RETURN /const /g'

.include "../../mk/compiler.mk"

.if !empty(PKGSRC_COMPILER:Mclang)
CFLAGS+=	-Wno-tautological-compare
.endif

.include "options.mk"

.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"