2003-08-28 07:44:59 +02:00
|
|
|
# Ports collection Makefile for: liferea
|
|
|
|
# Date created: 28 August 2003
|
|
|
|
# Whom: Hye-Shik Chang <perky@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= liferea
|
2007-06-06 14:59:05 +02:00
|
|
|
PORTVERSION= 1.2.16b
|
2003-08-28 07:44:59 +02:00
|
|
|
CATEGORIES= net gnome
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= liferea
|
|
|
|
|
2006-03-20 11:50:27 +01:00
|
|
|
MAINTAINER= pav@FreeBSD.org
|
2003-08-28 07:44:59 +02:00
|
|
|
COMMENT= Simple RSS/RDF feed reader
|
|
|
|
|
2006-10-14 10:54:54 +02:00
|
|
|
USE_XLIB= yes
|
2006-03-22 01:09:22 +01:00
|
|
|
USE_GECKO= mozilla firefox
|
2004-11-06 15:52:40 +01:00
|
|
|
USE_GNOME= gnomeprefix gnomehack libgtkhtml
|
2003-08-28 07:44:59 +02:00
|
|
|
USE_GMAKE= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2006-05-18 13:31:19 +02:00
|
|
|
CONFIGURE_ARGS= --mandir=${PREFIX}/man
|
2004-01-14 07:16:57 +01:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2004-11-15 07:17:14 +01:00
|
|
|
|
2004-06-21 08:45:58 +02:00
|
|
|
MAN1= liferea.1
|
2004-11-15 07:17:14 +01:00
|
|
|
GCONF_SCHEMAS= liferea.schemas
|
2006-12-19 19:12:38 +01:00
|
|
|
INSTALLS_ICONS= yes
|
2004-11-15 07:17:14 +01:00
|
|
|
|
2006-12-19 19:12:38 +01:00
|
|
|
OPTIONS= LIBNOTIFY "Enable libnotify support" on \
|
|
|
|
DBUS "Enable dbus support" on \
|
|
|
|
GNUTLS "Enable SSL/HTTPS support" on \
|
2006-05-08 22:02:48 +02:00
|
|
|
XPI "Firefox extension to subscribe feeds (req. dbus)" off \
|
|
|
|
MOZILLA "Use Mozilla for rendering" off \
|
|
|
|
XULRUNNER "Use Xulrunner for rendering" off
|
2005-05-25 02:43:06 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-12-19 19:12:38 +01:00
|
|
|
.ifdef WITHOUT_LIBNOTIFY
|
|
|
|
CONFIGURE_ARGS+=--disable-libnotify
|
|
|
|
PLIST_SUB+= NOTIFY="@comment "
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= notify.1:${PORTSDIR}/devel/libnotify
|
|
|
|
PLIST_SUB+= NOTIFY=""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef WITHOUT_GNUTLS
|
|
|
|
CONFIGURE_ARGS+=--disable-gnutls
|
|
|
|
.else
|
2007-01-02 09:54:13 +01:00
|
|
|
LIB_DEPENDS+= gnutls.15:${PORTSDIR}/security/gnutls
|
2006-12-19 19:12:38 +01:00
|
|
|
.endif
|
|
|
|
|
2004-04-21 23:35:40 +02:00
|
|
|
.ifdef WITH_MOZILLA
|
2006-03-22 01:09:22 +01:00
|
|
|
.include "${PORTSDIR}/www/mozilla/bsd.gecko.mk"
|
|
|
|
CONFIGURE_ARGS+=--enable-gecko=${GECKO}
|
2006-12-19 19:12:38 +01:00
|
|
|
PLIST_SUB+= MOZ=""
|
2004-04-21 23:35:40 +02:00
|
|
|
.else
|
2006-03-22 01:09:22 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-gecko
|
2006-12-19 19:12:38 +01:00
|
|
|
PLIST_SUB+= MOZ="@comment "
|
2004-04-21 23:35:40 +02:00
|
|
|
.endif
|
2003-08-28 07:44:59 +02:00
|
|
|
|
2006-05-08 22:02:48 +02:00
|
|
|
.ifdef WITH_XPI
|
|
|
|
PATCH_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
|
|
|
|
RUN_DEPENDS+= firefox:${PORTSDIR}/www/firefox
|
|
|
|
PLIST_SUB+= XPI=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= XPI="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef WITH_XULRUNNER
|
|
|
|
BUILD_DEPENDS+= xulrunner:${PORTSDIR}/www/xulrunner
|
|
|
|
RUN_DEPENDS+= xulrunner:${PORTSDIR}/www/xulrunner
|
|
|
|
PLIST_SUB+= XUL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-xulrunner
|
|
|
|
PLIST_SUB+= XUL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-05-25 02:43:06 +02:00
|
|
|
.ifdef WITHOUT_DBUS
|
|
|
|
CONFIGURE_ARGS+=--disable-dbus
|
|
|
|
.else
|
2006-10-14 10:54:54 +02:00
|
|
|
LIB_DEPENDS+= dbus-1.3:${PORTSDIR}/devel/dbus
|
2005-05-25 02:43:06 +02:00
|
|
|
.endif
|
|
|
|
|
2004-04-20 07:10:25 +02:00
|
|
|
post-patch:
|
2006-03-22 01:09:22 +01:00
|
|
|
.ifdef WITH_MOZILLA
|
2007-02-11 12:43:44 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,firefox-,$$gecko_provider-,g' \
|
2006-03-22 01:09:22 +01:00
|
|
|
-e 's,\(gecko_provider=\).*$$,\1${GECKO},' \
|
2007-02-11 12:43:44 +01:00
|
|
|
-e '/INCLUDE/s,{print $$1},{print $$2},g' \
|
2004-04-21 23:35:40 +02:00
|
|
|
${WRKSRC}/configure
|
2006-05-08 22:02:48 +02:00
|
|
|
.endif
|
|
|
|
.ifdef WITH_XPI
|
|
|
|
@${MKDIR} ${WRKDIR}/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}
|
|
|
|
@${UNZIP_CMD} -q -d ${WRKDIR}/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab} ${WRKSRC}/feedbag.xpi
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.ifdef WITH_XPI
|
|
|
|
${MKDIR} ${PREFIX}/lib/firefox/extensions/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}/chrome
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}/chrome/feedbag.jar ${PREFIX}/lib/firefox/extensions/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}/chrome
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}/chrome.manifest ${PREFIX}/lib/firefox/extensions/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}/install.rdf ${PREFIX}/lib/firefox/extensions/{79ea0ec1-3fc3-4ade-8220-262d4c4825ab}
|
2006-03-22 01:09:22 +01:00
|
|
|
.endif
|
2004-04-20 07:10:25 +02:00
|
|
|
|
2005-05-25 02:43:06 +02:00
|
|
|
.include <bsd.port.post.mk>
|