# New ports collection makefile for:	e17-modules
# Date created:				12 November 2010
# Whom:					Grzegorz Blach <magik@roorback.net>
#
# $FreeBSD: ports/x11-wm/e17-modules/Makefile,v 1.3 2010/12/20 00:19:31 stas Exp $
#

PORTNAME=	e17-modules
PORTVERSION=	20101003
PORTREVISION=	1
CATEGORIES=	x11-wm enlightenment
MASTER_SITES=	# Empty
DISTFILES=	# Empty

MAINTAINER=	magik@roorback.net
COMMENT=	Meta-port for e17 modules

NO_BUILD=	yes
WANT_EFL=	yes
E17_ARCH=	freebsd${OSREL}-${ARCH}

MODULES=	alarm calendar cpu deskshow diskio \
		drawer efm_nav efm_path efm_pathbar eooorg \
		everything-mpris everything-pidgin \
		everything-places everything-wallpaper \
		everything-websearch exebuf execwatch \
		flame forecasts iiirk itask-ng language \
		mail mem moon mpdule net notification penguins \
		photo places quickaccess rain screenshot slideshow \
		snow taskbar tclock tiling uptime winselector wlan

EVERYTHING_MPRIS_PATH=	evry-mpris
EVERYTHING_PIDGIN_PATH=	evry-pidgin
EVERYTHING_WEBSEARCH_PATH=	evry-websearch

.for M in ${MODULES}
OPTIONS+=	${M:U:S,-,_,g} "Install ${M} module"
. if !defined(${M:U:S,-,_,g}_OFF)
OPTIONS+=	on
. else
OPTIONS+=	off
. endif
.endfor

.include <bsd.port.options.mk>

.for M in ${MODULES}
. if !defined(${M:U:S,-,_,g}_PATH)
${M:U:S,-,_,g}_PATH=	${M}
. endif
. if defined(WITH_${M:U:S,-,_,g})
RUN_DEPENDS+=	${LOCALBASE}/lib/enlightenment/modules/${${M:U:S,-,_,g}_PATH}/${E17_ARCH}/module.so:${PORTSDIR}/x11-wm/e17-module-${M}
. endif
.endfor

do-install:	# empty

.include <bsd.port.mk>
