summaryrefslogtreecommitdiffstats
path: root/net/liferea/Makefile
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-19 13:18:11 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-19 13:18:11 +0800
commit92cf218b8ab2bf5e4d03a4d5d9d6416db9febc08 (patch)
tree7f3ff2eef125b7c6e4064e7840f597d78d04d158 /net/liferea/Makefile
parent53e115cdd281eb5d07e1b72242a6ba8de3849eda (diff)
downloadmarcuscom-ports-92cf218b8ab2bf5e4d03a4d5d9d6416db9febc08.tar
marcuscom-ports-92cf218b8ab2bf5e4d03a4d5d9d6416db9febc08.tar.gz
marcuscom-ports-92cf218b8ab2bf5e4d03a4d5d9d6416db9febc08.tar.bz2
marcuscom-ports-92cf218b8ab2bf5e4d03a4d5d9d6416db9febc08.tar.lz
marcuscom-ports-92cf218b8ab2bf5e4d03a4d5d9d6416db9febc08.tar.xz
marcuscom-ports-92cf218b8ab2bf5e4d03a4d5d9d6416db9febc08.tar.zst
marcuscom-ports-92cf218b8ab2bf5e4d03a4d5d9d6416db9febc08.zip
- Chase LOCALBASE move
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6657 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'net/liferea/Makefile')
-rw-r--r--net/liferea/Makefile94
1 files changed, 94 insertions, 0 deletions
diff --git a/net/liferea/Makefile b/net/liferea/Makefile
new file mode 100644
index 000000000..0f6fd38b8
--- /dev/null
+++ b/net/liferea/Makefile
@@ -0,0 +1,94 @@
+# Ports collection Makefile for: liferea
+# Date created: 28 August 2003
+# Whom: Hye-Shik Chang <perky@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= liferea
+PORTVERSION= 1.0.16
+PORTREVISION= 1
+CATEGORIES= net gnome
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= liferea
+
+MAINTAINER= pav@FreeBSD.org
+COMMENT= Simple RSS/RDF feed reader
+
+USE_X_PREFIX= yes
+USE_GECKO= mozilla firefox
+USE_GNOME= gnomeprefix gnomehack libgtkhtml
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --mandir=${PREFIX}/man
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+MAN1= liferea.1
+GCONF_SCHEMAS= liferea.schemas
+
+OPTIONS= DBUS "Enable dbus support" on \
+ XPI "Firefox extension to subscribe feeds (req. dbus)" off \
+ MOZILLA "Use Mozilla for rendering" off \
+ XULRUNNER "Use Xulrunner for rendering" off
+
+.include <bsd.port.pre.mk>
+
+.ifdef WITH_MOZILLA
+.include "${PORTSDIR}/www/mozilla/bsd.gecko.mk"
+CONFIGURE_ARGS+=--enable-gecko=${GECKO}
+PLIST_SUB= MOZ=""
+.else
+CONFIGURE_ARGS+=--disable-gecko
+PLIST_SUB= MOZ="@comment "
+.endif
+
+.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
+
+.ifdef WITHOUT_DBUS
+CONFIGURE_ARGS+=--disable-dbus
+.else
+LIB_DEPENDS+= dbus-1.2:${PORTSDIR}/devel/dbus
+.endif
+
+post-patch:
+.ifdef WITH_MOZILLA
+ ${REINPLACE_CMD} -e 's,/usr/lib/mozilla,${LOCALBASE}/lib/${GECKO},g ; \
+ s,%FREEBSD_MOZILLA_HOME%,${LOCALBASE}/lib/${GECKO},' \
+ ${WRKSRC}/src/liferea.in
+ ${REINPLACE_CMD} -e 's,firefox-,$$gecko_provider-,g' \
+ -e 's,\(gecko_provider=\).*$$,\1${GECKO},' \
+ -e 's,{print $$1},{print $$2},g' \
+ ${WRKSRC}/configure
+ ${REINPLACE_CMD} -e 's|gtk_moz_embed_set_comp_path(NULL)|gtk_moz_embed_set_comp_path("${X11BASE}/lib/${GECKO}")|' \
+ ${WRKSRC}/src/mozilla/mozilla.c
+.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}
+.endif
+
+.include <bsd.port.post.mk>