summaryrefslogtreecommitdiffstats
path: root/ftp/gwget/Makefile
blob: 8f7e699b949c25c6600ace38a30d0f6df9e08fb9 (plain)
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
58
# New ports collection makefile for:	gwget
# Date created:				1 November 2004
# Whom:					Radek Kozlowski <radek@raadradd.com>
#
# $FreeBSD$
#

PORTNAME=	gwget
PORTVERSION=	0.98.1
CATEGORIES=	ftp www gnome
MASTER_SITES=	${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR=	sources/${PORTNAME}/${PORTVERSION:R}
DIST_SUBDIR=	gnome2

MAINTAINER=	radek@raadradd.com
COMMENT=	A download manager for GNOME, based on wget

BROKEN=		fails to install
DEPRECATED=	${BROKEN}
EXPIRATION_DATE=2006-12-01

RUN_DEPENDS=	wget:${PORTSDIR}/ftp/wget

USE_BZIP2=	yes
USE_GMAKE=	yes
USE_GNOME=	gnomehack gnomeprefix intlhack libgnomeui libbonobo gconf2
GNU_CONFIGURE=	yes
USE_X_PREFIX=	yes
USE_GETTEXT=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LIBBONOBO_IDL="-I${LOCALBASE}/idl/bonobo-2.0" \
		LDFLAGS="-Wl,-export-dynamic -L${LOCALBASE}/lib"

GCONF_SCHEMAS=	gwget.schemas
EPHY_VER?=	2.14

.include <bsd.port.pre.mk>

.if exists(${X11BASE}/bin/epiphany) && !defined(WITHOUT_EPIPHANY)
WITH_EPIPHANY=	yes
.endif

.if defined(WITH_EPIPHANY)
BUILD_DEPENDS+=		epiphany:${PORTSDIR}/www/epiphany
CONFIGURE_ARGS+=	--enable-epiphany-extension \
			--with-epiphany-version=${EPHY_VER}
PLIST_SUB+=		EPIPHANY="" \
			VERSION="${EPHY_VER}"
.else
CONFIGURE_ARGS+=	--disable-epiphany-extension
PLIST_SUB+=		EPIPHANY="@comment "
.endif # defined(WITH_EPIPHANY)

post-patch:
	@${REINPLACE_CMD} -e 's|epiphany/extensions|epiphany-${EPHY_VER}/extensions|' \
		${WRKSRC}/epiphany-extension/Makefile.in

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud