# New ports collection makefile for: cairo-dock-plugins # Date created: 2010-03-19 # Whom: Ivan Klymenko # # $FreeBSD$ # PORTNAME= cairo-dock-plugins DISTVERSION= 2.3.0~3 PORTREVISION= 4 CATEGORIES= deskutils MASTER_SITES= http://launchpadlibrarian.net/73753265/ \ http://pazzle.otdux.com.ua/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${ICONS_PACKAGE}${EXTRACT_SUFX} MAINTAINER= fidaj@ukr.net COMMENT= Cairo-Dock-Plugins for Cairo-Dock RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget LIB_DEPENDS= etpan:${PORTSDIR}/mail/libetpan \ gldi.2:${PORTSDIR}/deskutils/cairo-dock DATADIR= ${PREFIX}/share/cairo-dock ICONS_PACKAGE= cairo-dock-plugins-png-icons GNU_CONFIGURE= yes USE_GETTEXT= yes USE_GMAKE= yes USE_GNOME= gnomehack pkgconfig glib20 gtk20 librsvg2 libxml2 USE_LDCONFIG= yes USE_PYTHON= yes USE_XORG= xrender USE_DOS2UNIX= YES USE_CMAKE= yes USE_GCC= 4.6+ MAKE_JOBS_SAFE= YES PLIST_SUB+= PYVER="${PYTHON_VERSION:S/thon//}" OPTIONS= GMENU "Common Applications menu" On \ KEYBOARD_INDICATOR "Control the keyboard layout" Off \ TERMINAL "Add a terminal to your dock" On \ WEBLETS "To show an interactive web page" On \ XFCE_INTEGRATION "For XFCE environnement" Off \ ALSA_MIXER "For ALSA compatibility utils" Off .include post-patch: @${CP} -R ${WRKDIR}/${ICONS_PACKAGE}/* ${WRKSRC} .if defined(WITH_GMENU) LIB_DEPENDS+= gnome-menu.2:${PORTSDIR}/x11/gnome-menus CMAKE_ARGS+= -Denable_gmenu:STRING=yes PLIST_SUB+= GMENU="" .else CMAKE_ARGS+= -Denable_gmenu:STRING=no PLIST_SUB+= GMENU="@comment " .endif .if defined(WITH_KEYBOARD_INDICATOR) LIB_DEPENDS+= exif.12:${PORTSDIR}/graphics/libexif \ xklavier.12:${PORTSDIR}/x11/libxklavier CMAKE_ARGS+= -Denable_keyboard_indicator:STRING=yes PLIST_SUB+= KEYBOARD_INDICATOR="" .else CMAKE_ARGS+= -Denable_keyboard_indicator:STRING=no PLIST_SUB+= KEYBOARD_INDICATOR="@comment " .endif .if defined(WITH_TERMINAL) LIB_DEPENDS+= vte.9:${PORTSDIR}/x11-toolkits/vte CMAKE_ARGS+= -Denable_terminal:STRING=yes PLIST_SUB+= TERMINAL="" .else CMAKE_ARGS+= -Denable_terminal:STRING=no PLIST_SUB+= TERMINAL="@comment " .endif .if defined(WITH_WEBLETS) LIB_DEPENDS+= webkitgtk-1.0.0:${PORTSDIR}/www/webkit-gtk2 CMAKE_ARGS+= -Denable_weblets:STRING=yes PLIST_SUB+= WEBLETS="" .else CMAKE_ARGS+= -Denable_weblets:STRING=no PLIST_SUB+= WEBLETS="@comment " .endif .if defined(WITH_XFCE_INTEGRATION) LIB_DEPENDS+= thunar-vfs-1.5:${PORTSDIR}/x11-fm/thunar \ exif.12:${PORTSDIR}/graphics/libexif CMAKE_ARGS+= -Denable_xfce_integration:STRING=yes PLIST_SUB+= XFCE_INTEGRATION="" .else CMAKE_ARGS+= -Denable_xfce_integration:STRING=no PLIST_SUB+= XFCE_INTEGRATION="@comment " .endif .if defined(WITH_ALSA_MIXER) LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib RUN_DEPENDS+= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins CMAKE_ARGS+= -Denable_alsa_mixer:STRING=yes PLIST_SUB+= ALSA_MIXER="" .else CMAKE_ARGS+= -Denable_alsa_mixer:STRING=no PLIST_SUB+= ALSA_MIXER="@comment " .endif .include