freebsd-ports/devel/desktop-file-utils/Makefile
Jeremy Messenger cdfa2443b1 Complete disable emac to avoid the configure failure if emac exists in the
system.

PR:		ports/108218
Reported by:	Kyryll A Mirnenko <mirya@zoc.com.ua>
Discussed with:	pav
2007-02-26 05:40:08 +00:00

56 lines
1.6 KiB
Makefile

# New ports collection makefile for: desktop-file-utils
# Date created: 11 Jun 2004
# Whom: Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#
PORTNAME= desktop-file-utils
PORTVERSION= 0.12
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
LIB_DEPENDS= popt:${PORTSDIR}/devel/popt
USE_GNOME= glib20
WANT_GNOME= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-lispdir
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" EMACS="no"
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
PORT_MIMEDIRS= ${X11BASE}/share/applications \
${LOCALBASE}/share/applications \
${X11BASE}/share/gnome/applications \
${LOCALBASE}/share/gnome/applications
MIMEDIRS= ${PORT_MIMEDIRS} \
/usr/share/applications \
/usr/share/gnome/applications
RMDIRS= ${PORT_MIMEDIRS} \
${LOCALBASE}/share/gnome \
${X11BASE}/share/gnome
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>