freebsd-ports/misc/kde4-xdg-env/Makefile
Joe Marcus Clarke 6781af104d Fix a bug that would duplicate a path element in XDG_DATA_DIRS when
KDE_PREFIX == LOCALBASE.  This triggered memory corruption in the xdgmime
code used by GTK+ and gnome-vfs which led to strange crashes in GTK+
applications such as Firefox and Thunderbird.  While here, add a missing
XDG_DATA_DIRS entry for LOCALBASE/share/gnome.

Approved by:	kde (lofi)
2006-12-13 16:47:28 +00:00

40 lines
767 B
Makefile

# New ports collection makefile for: kde-xdg-env
# Date created: April 03 2005
# Whom: Michael Nottebrock <lofi@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= xdg
PORTVERSION= 1.0
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= misc kde
MASTER_SITES= # none
PKGNAMEPREFIX= kde-
PKGNAMESUFFIX= -env
DISTNAME= # none
EXTRACT_SUFX= # none
MAINTAINER= kde@FreeBSD.org
COMMENT= Script which hooks into startkde and helps KDE pick up XDG apps/menus
.if defined(KDE_PREFIX)
PREFIX= ${KDE_PREFIX}
SUB_LIST+= KDE_PREFIX=${KDE_PREFIX}
.else
SUB_LIST+= KDE_PREFIX=${LOCALBASE}
.endif
NO_BUILD= yes
SUB_FILES= xdg-env.sh
PLIST_FILES= env/xdg-env.sh
PLIST_DIRS= env
do-install:
${MKDIR} ${PREFIX}/env
${INSTALL_SCRIPT} ${WRKDIR}/xdg-env.sh ${PREFIX}/env
.include <bsd.port.mk>