1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/x11/avant-window-navigator/Makefile
Tijl Coosemans 366d3f6908 - New LIB_DEPENDS syntax
- Add USES=libtool
2014-07-01 22:16:23 +00:00

78 lines
2.3 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= avant-window-navigator
PORTVERSION= 0.3.2.1
PORTREVISION?= 10
CATEGORIES= x11
MASTER_SITES= http://launchpadlibrarian.net/26374006/ \
http://mirror.amdmi3.ru/distfiles/
MAINTAINER= ports@FreeBSD.org
COMMENT= Dock-like navigation bar
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg
LIB_DEPENDS= libwnck-1.so:${PORTSDIR}/x11-toolkits/libwnck \
libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
GNU_CONFIGURE= yes
USES= gettext gmake libtool pathfix pkgconfig
USE_GNOME= glib20 gtk20 pygtk2
USE_PYTHON= yes
USE_LDCONFIG= yes
INSTALLS_ICONS= yes
USE_XORG= x11 xproto xcomposite xrender
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
AWN_DESKTOP?= agnostic
.if ${AWN_DESKTOP} == "gnome"
USE_GNOME+= gnomedesktop libgnomeui
CONFIGURE_ARGS+= --with-desktop=gnome
CONFLICTS= ${PORTNAME}-xfce4-[0-9]* ${PORTNAME}-[0-9]*
WITH_GCONF= yes
PKGNAMESUFFIX= -gnome
.elif ${AWN_DESKTOP} == "xfce4"
OPTIONS_DEFINE= GCONF
USE_XFCE+= thunar
CONFIGURE_ARGS+= --with-desktop=xfce4
CONFLICTS= ${PORTNAME}-gnome-[0-9]* ${PORTNAME}-[0-9]*
PKGNAMESUFFIX= -xfce4
.else
# agnostic desktop
OPTIONS_DEFINE= GCONF
CONFIGURE_ARGS+= --with-desktop=agnostic
CONFLICTS= ${PORTNAME}-gnome-[0-9]* ${PORTNAME}-xfce4-[0-9]*
.endif
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGCONF}
USE_GNOME+= gconf2
GCONF_SCHEMAS= awn.schemas awn-applets-shared.schemas
CONFIGURE_ARGS+= --with-gconf
.else
CONFIGURE_ARGS+= --without-gconf
.endif
post-patch:
@${REINPLACE_CMD} '/^awn_applet_activation_LDADD =/s/=/= -lgmodule-2.0/' \
${WRKSRC}/awn-applet-activation/Makefile.in
@${REINPLACE_CMD} -e 's|#!/usr/bin/python|#!/usr/bin/env python|' \
${WRKSRC}/awn-manager/awnManager.py.in \
${WRKSRC}/awn-manager/awnManager.py
@${REINPLACE_CMD} -e '1 s|bash|sh|' \
${WRKSRC}/awn-manager/awn-launcher-editor.in
@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
${WRKSRC}/libawn/egg/eggchecksum.h \
${WRKSRC}/libawn/awn-config-client-shared.c \
${WRKSRC}/libawn/awn-config-client-gconf.c
@${REINPLACE_CMD} -e 's|glib/gutils.h>|glib.h>|g' \
${WRKSRC}/libawn/awn-config-client-gkeyfile.c
@${REINPLACE_CMD} '/^avant_window_navigator_LDADD =/s/=/= -ldbus-glib-1/' \
${WRKSRC}/src/Makefile.in
.include <bsd.port.mk>