summaryrefslogtreecommitdiffstats
path: root/ftp/urlgfe/Makefile
blob: aa6e310218457f8418ce26bb79d2e11d9fd3256d (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
# Created by: Nosov Artem <chip-set@mail.ru>
# $FreeBSD$

PORTNAME=	urlgfe
PORTVERSION=	0.7.1
PORTREVISION?=	15
CATEGORIES=	ftp www
MASTER_SITES=	SF/urlget/Urlgfe%20%28legacy%29/${PORTVERSION}

MAINTAINER=	chip-set@mail.ru
COMMENT=	A download manager

LIB_DEPENDS=	curl:${PORTSDIR}/ftp/curl

USE_GNOME=	gtk20 lthack
USES=		pkgconfig
WANT_GNOME=	yes
USE_OPENSSL=	yes
USE_AUTOTOOLS=	libtool
USE_DOS2UNIX=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

NO_STAGE=	yes
.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mgnomehier}!=""
WITH_GNOME=	yes
PLIST_SUB+=	GNOME:=""
.else
PLIST_SUB+=	GNOME:="@comment "
.endif

post-patch:
	@${FIND} ${WRKSRC} -type f | ${XARGS} ${TOUCH} -f
	@${REINPLACE_CMD} -e 's|[$$]{prefix}/doc/urlgfe|${DOCSDIR}|g' \
		${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -e 's|urlgfe_icon|urlgfe-icon|g ; \
		s|/usr/share/pixmaps/urlgfe/||g' ${WRKSRC}/${PORTNAME}.desktop
	@${REINPLACE_CMD} -e 's|	 -g|	 ${CFLAGS}|g' \
		${WRKSRC}/src/Makefile.in
	@${REINPLACE_CMD} -e 's|@MKINSTALLDIRS@|$$(top_srcdir)/@MKINSTALLDIRS@|g ; \
		s|[$$][(]top_builddir[)]/[$$][(]MKINSTALLDIRS[)]|$$(top_srcdir)/mkinstalldirs|g' \
			${WRKSRC}/po/Makefile.in.in

.if defined(WITH_GNOME)
post-install:
	@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${PREFIX}/share/gnome/apps/Internet/
	@${INSTALL_DATA} ${WRKSRC}/pixmaps/${PORTNAME}-icon.png ${PREFIX}/share/pixmaps/
.endif

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