summaryrefslogtreecommitdiffstats
path: root/devel/desktop-file-utils/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/desktop-file-utils/Makefile')
-rw-r--r--devel/desktop-file-utils/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/devel/desktop-file-utils/Makefile b/devel/desktop-file-utils/Makefile
new file mode 100644
index 000000000..56f969261
--- /dev/null
+++ b/devel/desktop-file-utils/Makefile
@@ -0,0 +1,55 @@
+# New ports collection makefile for: desktop-file-utils
+# Date created: 11 Jun 2004
+# Whom: Jean-Yves Lefort <jylefort@brutele.be>
+#
+# $FreeBSD$
+# $MCom$
+#
+
+PORTNAME= desktop-file-utils
+PORTVERSION= 0.19
+CATEGORIES= devel
+MASTER_SITES= http://freedesktop.org/software/${PORTNAME}/releases/
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= A couple of command line utilities for working with desktop entries
+
+USE_GNOME= glib20 pkgconfig
+USE_XZ= yes
+USE_GETTEXT= yes
+USE_GMAKE= yes
+WANT_GNOME= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --without-lispdir
+CONFIGURE_ENV= EMACS="no"
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+MAN1= desktop-file-install.1 desktop-file-validate.1 \
+ update-desktop-database.1
+
+PKGINSTALL= ${WRKDIR}/pkg-install
+PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
+
+PORT_MIMEDIRS= ${LOCALBASE}/share/applications
+
+MIMEDIRS= ${PORT_MIMEDIRS}
+
+RMDIRS= ${PORT_MIMEDIRS}
+
+post-patch:
+ @${SED} -e 's|%%MIMEDIRS%%|${MIMEDIRS}| ;\
+ s|%%RMDIRS%%|${RMDIRS}| ; \
+ s|%%PORT_MIMEDIRS%%|${PORT_MIMEDIRS}|' \
+ < ${FILESDIR}/pkg-deinstall.in > ${PKGDEINSTALL}
+ @${SED} -e 's|%%PORT_MIMEDIRS%%|${PORT_MIMEDIRS}|' \
+ < ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/misc/desktop-entry-mode.el \
+ ${PREFIX}/share/emacs/site-lisp/desktop-entry-mode.el
+.if !defined(PACKAGE_BUILDING)
+ @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.endif
+
+.include <bsd.port.mk>