aboutsummaryrefslogtreecommitdiff
path: root/ftp/gwget/Makefile
blob: 2a4cb75ab63641d6dc01ad1c3626a20ab7b9ebb8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# New ports collection makefile for:	gwget
# Date created:				1 November 2004
# Whom:					Radek Kozlowski <radek@raadradd.com>
#
# $FreeBSD$
#

PORTNAME=	gwget
PORTVERSION=	1.0.2
CATEGORIES=	ftp gnome
MASTER_SITES=	GNOME
DIST_SUBDIR=	gnome2

MAINTAINER=	avl@FreeBSD.org
COMMENT=	GNOME wget front-end

LIB_DEPENDS=	dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
RUN_DEPENDS=	wget:${PORTSDIR}/ftp/wget

OPTIONS=	LIBNOTIFY	"Enable libnotify support"	on \
		EPIPHANY	"Enable Epiphany extension"	on

USE_BZIP2=	yes
USE_GMAKE=	yes
USE_GETTEXT=	yes
USE_GNOME=	gnomeprefix gnomehack gtk20 gconf2 libgnomeui \
		libglade2 desktopfileutils
INSTALLS_ICONS=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

GCONF_SCHEMAS=	${PORTNAME}.schemas

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_LIBNOTIFY)
LIB_DEPENDS+=	notify.1:${PORTSDIR}/devel/libnotify
RUN_DEPENDS+=	${LOCALBASE}/libexec/notification-daemon:${PORTSDIR}/deskutils/notification-daemon
.else
CONFIGURE_ARGS+=	--disable-libnotify
.endif

.if defined(WITH_EPIPHANY)
BUILD_DEPENDS+=	epiphany:${PORTSDIR}/www/epiphany
RUN_DEPENDS+=	epiphany:${PORTSDIR}/www/epiphany
CONFIGURE_ARGS+=	--enable-epiphany-extension
PLIST_SUB+=	EPIPHANY="" EPHY_VERSION="2.26"
.else
CONFIGURE_ARGS+=	--disable-epiphany-extension
PLIST_SUB+=	EPIPHANY="@comment "
.endif

post-install:
	@-update-desktop-database

.include <bsd.port.post.mk>