blob: b86cce309c10612fe402bee2c41d36a99cd5dbb3 (
plain) (
blame)
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
50
51
52
53
54
|
# New ports collection makefile for: gnome-menus
# Date created: 30 November 2004
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
# $MCom: ports/x11/gnome-menus3/Makefile,v 1.4 2011/10/04 20:57:45 kwm Exp $
#
PORTNAME= gnome-menus
PORTVERSION= 3.2.0.1
PORTREVISION= 0
CATEGORIES= x11 gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome3
MAINTAINER= gnome@FreeBSD.org
COMMENT= Implementation of the FreeDesktop Desktop Menu Spec
BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
CONFLICTS= gnome-menus-2.[0-9]*
LATEST_LINK= gnome-menus3
USE_GETTEXT= yes
USE_XZ= yes
USE_GMAKE= yes
USE_GNOME= gnomehier gnomeprefix gnomehack intlhack glib20 ltverhack
USE_AUTOTOOLS= libtool
USE_PYTHON= yes
USE_LDCONFIG= yes
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
post-patch:
@${REINPLACE_CMD} -e 's|applications.menu||' \
${WRKSRC}/layout/Makefile.in
@${REINPLACE_CMD} -e 's|applications.menu|gnome-applications.menu|' \
${WRKSRC}/util/test-menu-spec.c
@${REINPLACE_CMD} -e 's|/usr/share/gnome|${LOCALBASE}/share/gnome|g' \
${WRKSRC}/layout/applications.menu
@${SED} -e 's|/usr/local|${LOCALBASE}|g' \
< ${FILESDIR}/KDE.directory > ${WRKSRC}/KDE.directory
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/simple-editor/GMenuSimpleEditor/menutreemodel.py
@${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \
${WRKSRC}/util/Makefile.in
post-install:
@${INSTALL_DATA} ${WRKSRC}/layout/applications.menu \
${PREFIX}/etc/xdg/menus/gnome-applications.menu
@${INSTALL_DATA} ${WRKSRC}/KDE.directory \
${PREFIX}/share/desktop-directories
.include <bsd.port.mk>
|