| @@ -1,35 +1,46 @@ | | | @@ -1,35 +1,46 @@ |
1 | # $NetBSD: Makefile,v 1.16 2012/02/06 12:42:18 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.17 2012/02/14 06:03:11 obache Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= libunique-1.1.6 | | 4 | DISTNAME= libunique-1.1.6 |
5 | PKGREVISION= 7 | | 5 | PKGREVISION= 8 |
6 | CATEGORIES= devel | | 6 | CATEGORIES= devel |
7 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libunique/1.1/} | | 7 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libunique/1.1/} |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://live.gnome.org/LibUnique | | 10 | HOMEPAGE= http://live.gnome.org/LibUnique |
11 | COMMENT= Library for writing single instance applications | | 11 | COMMENT= Library for writing single instance applications |
12 | LICENSE= gnu-lgpl-v2.1 | | 12 | LICENSE= gnu-lgpl-v2.1 |
13 | | | 13 | |
14 | PKG_DESTDIR_SUPPORT= user-destdir | | 14 | PKG_DESTDIR_SUPPORT= user-destdir |
15 | | | 15 | |
16 | GNU_CONFIGURE= yes | | 16 | GNU_CONFIGURE= yes |
17 | USE_LIBTOOL= yes | | 17 | USE_LIBTOOL= yes |
18 | USE_TOOLS+= pkg-config gmake | | 18 | USE_TOOLS+= pkg-config gmake |
19 | | | 19 | |
20 | PKGCONFIG_OVERRIDE+= unique.pc.in | | 20 | PKGCONFIG_OVERRIDE+= unique.pc.in |
21 | | | 21 | |
22 | # Workaround for Upstream Bug#562310. | | 22 | # Workaround for Upstream Bug#562310. |
23 | # for more detail, see also PR#41475. | | 23 | # for more detail, see also PR#41475. |
24 | TOOLS_NOOP+= gtkdoc-rebase | | 24 | TOOLS_NOOP+= gtkdoc-rebase |
25 | | | 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 | |
26 | .include "../../mk/compiler.mk" | | 37 | .include "../../mk/compiler.mk" |
27 | | | 38 | |
28 | .if !empty(PKGSRC_COMPILER:Mclang) | | 39 | .if !empty(PKGSRC_COMPILER:Mclang) |
29 | CFLAGS+= -Wno-tautological-compare | | 40 | CFLAGS+= -Wno-tautological-compare |
30 | .endif | | 41 | .endif |
31 | | | 42 | |
32 | .include "options.mk" | | 43 | .include "options.mk" |
33 | | | 44 | |
34 | .include "../../x11/gtk2/buildlink3.mk" | | 45 | .include "../../x11/gtk2/buildlink3.mk" |
35 | .include "../../mk/bsd.pkg.mk" | | 46 | .include "../../mk/bsd.pkg.mk" |