summaryrefslogtreecommitdiffstats
path: root/x11/gnome-menus/Makefile
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-11-16 05:04:00 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-11-16 05:04:00 +0800
commitd3b8ef4b75da09ebc165292f904985788125a5a9 (patch)
tree752ace3d25f21a22bda4793e3a9fed92a84f035f /x11/gnome-menus/Makefile
parent92b4cc142bb619c1a358ac75ff3fdf50043582b3 (diff)
downloadmarcuscom-ports-d3b8ef4b75da09ebc165292f904985788125a5a9.tar
marcuscom-ports-d3b8ef4b75da09ebc165292f904985788125a5a9.tar.gz
marcuscom-ports-d3b8ef4b75da09ebc165292f904985788125a5a9.tar.bz2
marcuscom-ports-d3b8ef4b75da09ebc165292f904985788125a5a9.tar.lz
marcuscom-ports-d3b8ef4b75da09ebc165292f904985788125a5a9.tar.xz
marcuscom-ports-d3b8ef4b75da09ebc165292f904985788125a5a9.tar.zst
marcuscom-ports-d3b8ef4b75da09ebc165292f904985788125a5a9.zip
Update to 2.21.2.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9936 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/gnome-menus/Makefile')
-rw-r--r--x11/gnome-menus/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/x11/gnome-menus/Makefile b/x11/gnome-menus/Makefile
new file mode 100644
index 000000000..62760f736
--- /dev/null
+++ b/x11/gnome-menus/Makefile
@@ -0,0 +1,55 @@
+# New ports collection makefile for: gnome-menus
+# Date created: 30 November 2004
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom: ports/x11/gnome-menus/Makefile,v 1.64 2007/10/15 21:09:56 mezz Exp $
+#
+
+PORTNAME= gnome-menus
+PORTVERSION= 2.21.2
+CATEGORIES= x11 gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Implementation of the FreeDesktop Desktop Menu Spec
+
+USE_GETTEXT= yes
+USE_BZIP2= yes
+USE_XLIB= yes
+USE_GMAKE= yes
+USE_GNOME= gnomeprefix gnomehack intlhack gnomevfs2 ltverhack
+USE_AUTOTOOLS= libtool:15
+USE_PYTHON= yes
+USE_LDCONFIG= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/lib/libfam.so) || !defined(WITHOUT_FAM)
+USE_FAM= yes
+.endif
+
+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 \
+ ${WRKSRC}/layout/settings.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
+
+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.post.mk>