# New Ports collection makefile for: XDG-Menu # Date created: 2012-05-07 # Whom: nemysis@gmx.ch # # $FreeBSD$ # PORTNAME= xdg-menu PORTVERSION= 1.5 PORTREVISION= 1 CATEGORIES= misc MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} DISTNAME= XDG-Menu-${DISTVERSION} EXTRACT_SUFX= .tgz MAINTAINER= nemysis@gmx.ch COMMENT= A ROX panel applet that displays an applications menu button LICENSE= GPLv2 RUN_DEPENDS= ${LOCALBASE}/bin/rox:${PORTSDIR}/x11-fm/rox-filer \ ${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg \ ${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus WRKSRC= ${WRKDIR}/XDG-Menu DATADIR= ${PREFIX}/apps/XDG-Menu FETCH_ARGS?= -Fpr USE_PYTHON= yes ALL_TARGET= NO_BUILD= yes OPTIONS_DEFINE= ROX ROX_DESC= Enable ROX panel applet support SUB_FILES= ${PORTNAME} .include .if !${PORT_OPTIONS:MROX} post-patch: @${REINPLACE_CMD} -i '' '/if not rox.confirm/,/sys.exit/s/^/#/' ${WRKSRC}/AppRun @${ECHO_MSG} @${ECHO_MSG} "You have not enabled ROX panel applet support" @${ECHO_MSG} @${FIND} ${WRKSRC} -name "*.bak" -delete .endif do-install: # Scripts ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin # Executable and Data ${MKDIR} ${DATADIR} @cd ${WRKSRC} && ${FIND} . | ${CPIO} -pdmu ${DATADIR} .include