4 DISTNAME= libunique-1.1.6
7 MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libunique/1.1/}
9 MAINTAINER= pkgsrc-users@NetBSD.org
10 HOMEPAGE= http://live.gnome.org/LibUnique
11 COMMENT= Library for writing single instance applications
12 LICENSE= gnu-lgpl-v2.1
14 PKG_DESTDIR_SUPPORT= user-destdir
18 USE_TOOLS+= pkg-config gmake
20 PKGCONFIG_OVERRIDE+= unique.pc.in
22 # Workaround for Upstream Bug#562310.
23 # for more detail, see also PR#41475.
24 TOOLS_NOOP+= gtkdoc-rebase
26 SUBST_CLASSES+= g_const
27 SUBST_STAGE.g_const= post-configure
28 SUBST_MESSAGE.g_const= Replace deprecated G_CONST_RETURN with plain "const".
29 SUBST_FILES.g_const= unique/uniqueapp.c
30 SUBST_FILES.g_const+= unique/uniquebackend.c
31 SUBST_FILES.g_const+= unique/uniquebackend.h
32 SUBST_FILES.g_const+= unique/uniqueinternals.h
33 SUBST_FILES.g_const+= unique/uniquemessage.c
34 SUBST_FILES.g_const+= unique/uniquemessage.h
35 SUBST_SED.g_const= -e 's/G_CONST_RETURN /const /g'
37 .include "../../mk/compiler.mk"
39 .if !empty(PKGSRC_COMPILER:Mclang)
40 CFLAGS+= -Wno-tautological-compare
45 .include "../../x11/gtk2/buildlink3.mk"
46 .include "../../mk/bsd.pkg.mk"