summaryrefslogtreecommitdiff
path: root/sysutils/gnome-menus/Makefile
blob: 1665fa6cd5acee3cb3b84fe1b23ec8d4639b2305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# $NetBSD: Makefile,v 1.32 2007/09/21 13:04:18 wiz Exp $
#

DISTNAME=	gnome-menus-2.18.3
PKGREVISION=	2
CATEGORIES=	sysutils gnome
MASTER_SITES=	${MASTER_SITE_GNOME:=sources/gnome-menus/2.18/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	jmmv@NetBSD.org
HOMEPAGE=	http://www.gnome.org/
COMMENT=	Implementation of the desktop menu specification for GNOME

GNU_CONFIGURE=		yes
USE_DIRS+=		xdg-1.2
USE_TOOLS+=		gmake intltool msgfmt pkg-config
USE_LIBTOOL=		yes
USE_PKGLOCALEDIR=	yes

CONFIGURE_ARGS+=	--disable-python

INSTALL_MAKE_FLAGS+=	${MAKE_FLAGS} menudir=${EXAMPLEDIR}

PKGCONFIG_OVERRIDE+=	${WRKSRC}/libmenu/libgnome-menu.pc.in

EXAMPLEDIR=		${PREFIX}/share/examples/gnome-menus/xdg/menus
OWN_DIRS=		${PKG_SYSCONFDIR}/xdg/menus
CONF_FILES=		${EXAMPLEDIR}/applications.menu \
			${PKG_SYSCONFDIR}/xdg/menus/applications.menu
CONF_FILES+=		${EXAMPLEDIR}/preferences.menu \
			${PKG_SYSCONFDIR}/xdg/menus/preferences.menu
CONF_FILES+=		${EXAMPLEDIR}/settings.menu \
			${PKG_SYSCONFDIR}/xdg/menus/settings.menu

SUBST_CLASSES+=		paths
SUBST_STAGE.paths=	pre-configure
SUBST_MESSAGE.paths=	Fixing paths to installation prefix.
SUBST_FILES.paths=	layout/*.menu
SUBST_SED.paths=	-e 's|/usr/|${PREFIX}/|g'
SUBST_SED.paths+=	-e 's|/etc/X11/applnk|${PREFIX}/share/kde/applnk/|g'

BUILDLINK_API_DEPENDS.glib2+=	glib2>=2.6.0
BUILDLINK_API_DEPENDS.gnome-vfs+=	gnome-vfs>=2.10.0

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../sysutils/gnome-vfs/buildlink3.mk"
.include "../../mk/fam.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"