1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

- Respect value of WITH_MOZILLA=(firefox|mozilla|mozilla-devel) [1]

- Apply a simple patch to fix a memory leak. [2]

Advised by:	adamw [1]
Submitted by:	Roman Shterenzon
This commit is contained in:
Hye-Shik Chang 2005-04-17 03:48:58 +00:00
parent 62a0c44229
commit 4c32157aea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133503
2 changed files with 31 additions and 11 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= liferea
PORTVERSION= 0.9.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= liferea
@ -15,11 +15,6 @@ MASTER_SITE_SUBDIR= liferea
MAINTAINER= perky@FreeBSD.org
COMMENT= Simple RSS/RDF feed reader
.ifdef WITH_MOZILLA
BUILD_DEPENDS= mozilla:${PORTSDIR}/www/mozilla
RUN_DEPENDS= mozilla:${PORTSDIR}/www/mozilla
.endif
USE_X_PREFIX= yes
USE_GNOME= gnomeprefix gnomehack libgtkhtml
USE_GMAKE= yes
@ -27,23 +22,39 @@ USE_REINPLACE= yes
USE_LIBTOOL_VER=15
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+=${MOZILLA_ARG}
MAN1= liferea.1
GCONF_SCHEMAS= liferea.schemas
.ifdef WITH_MOZILLA
.if ${WITH_MOZILLA}=="mozilla" || ${WITH_MOZILLA}=="yes"
MOZILLA= mozilla
MOZ_BUILD= mozilla
.elif ${WITH_MOZILLA}=="mozilla-devel"
MOZILLA= mozilla-devel
MOZ_BUILD= mozilla
.elif ${WITH_MOZILLA}=="firefox"
MOZILLA= firefox
MOZ_BUILD= firefox
.else
IGNORE= : Available options for WITH_MOZILLA are: mozilla mozilla-devel firefox
.endif
.endif # WITH_MOZILLA
.ifdef MOZILLA
BUILD_DEPENDS= ${X11BASE}/lib/${MOZILLA}/components/libwidget_gtk2.so:${PORTSDIR}/www/${MOZILLA}
RUN_DEPENDS= ${X11BASE}/lib/${MOZILLA}/components/libwidget_gtk2.so:${PORTSDIR}/www/${MOZILLA}
PLIST_SUB= MOZ=""
.else
PLIST_SUB= MOZ="@comment "
.endif
post-patch:
.ifdef WITH_MOZILLA
${REINPLACE_CMD} -e 's,/usr/lib/moz,${X11BASE}/lib/moz,g' \
${REINPLACE_CMD} -e 's,/usr/lib/mozilla,${X11BASE}/lib/${MOZ_BUILD},g' \
${WRKSRC}/src/liferea
.else
${REINPLACE_CMD} -e 's,gtkmozembed,donttrythis,g' \
${REINPLACE_CMD} -e 's,firefox-,$$gecko_provider-,g' \
-e 's,\(gecko_provider=\).*$$,\1${MOZ_BUILD},' \
${WRKSRC}/configure
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,9 @@
--- src/net/netio.c.orig 2005-04-10 17:43:21.000000000 +0300
+++ src/net/netio.c 2005-04-10 17:45:17.000000000 +0300
@@ -1065,5 +1065,6 @@
g_free(cur_ptr.authinfo);
g_free(cur_ptr.cookies);
debug4(DEBUG_UPDATE, "download result - HTTP status: %d, error: %d, netio error:%d, data: %d", request->httpstatus, cur_ptr.problem, cur_ptr.netio_error, request->data);
+ free(cur_ptr.content_type);
return;
}