Fixup fromcvs/togit conversion
[pkgsrcv2.git] / x11 / libunique / Makefile
1 # $NetBSD$
2 #
3
4 DISTNAME=       libunique-1.1.6
5 PKGREVISION=    12
6 CATEGORIES=     devel
7 MASTER_SITES=   ${MASTER_SITE_GNOME:=sources/libunique/1.1/}
8
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
13
14 PKG_DESTDIR_SUPPORT=    user-destdir
15
16 GNU_CONFIGURE=          yes
17 USE_LIBTOOL=            yes
18 USE_TOOLS+=             pkg-config gmake
19
20 PKGCONFIG_OVERRIDE+=    unique.pc.in
21
22 # Workaround for Upstream Bug#562310.
23 # for more detail, see also PR#41475.
24 TOOLS_NOOP+=    gtkdoc-rebase
25
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'
36
37 .include "../../mk/compiler.mk"
38
39 .if !empty(PKGSRC_COMPILER:Mclang)
40 CFLAGS+=        -Wno-tautological-compare
41 .endif
42
43 .include "options.mk"
44
45 .include "../../x11/gtk2/buildlink3.mk"
46 .include "../../mk/bsd.pkg.mk"