diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-03-10 10:09:53 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-03-10 10:09:53 +0800 |
commit | 810154c919544a1060ab99301d6156cfe690ce38 (patch) | |
tree | 246df846575d3b4054486d4858eb424a7be8262a /www/kazehakase/Makefile | |
parent | 0118ece15dc57ecf09364388acc334c582701485 (diff) | |
download | marcuscom-ports-810154c919544a1060ab99301d6156cfe690ce38.tar marcuscom-ports-810154c919544a1060ab99301d6156cfe690ce38.tar.gz marcuscom-ports-810154c919544a1060ab99301d6156cfe690ce38.tar.bz2 marcuscom-ports-810154c919544a1060ab99301d6156cfe690ce38.tar.lz marcuscom-ports-810154c919544a1060ab99301d6156cfe690ce38.tar.xz marcuscom-ports-810154c919544a1060ab99301d6156cfe690ce38.tar.zst marcuscom-ports-810154c919544a1060ab99301d6156cfe690ce38.zip |
- Add kazehakase with xulrunner support
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5864 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'www/kazehakase/Makefile')
-rw-r--r-- | www/kazehakase/Makefile | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/www/kazehakase/Makefile b/www/kazehakase/Makefile new file mode 100644 index 000000000..d079ecff2 --- /dev/null +++ b/www/kazehakase/Makefile @@ -0,0 +1,97 @@ +# New ports collection makefile for: kazehakase +# Date created: 2004-04-06 +# Whom: michael johnson <ahze@ahze.net> +# +# $FreeBSD$ +# $MCom: ports/www/kazehakase/Makefile,v 1.2 2005/11/29 02:39:04 ahze Exp $ +# + +PORTNAME= kazehakase +PORTVERSION= 0.3.5 +PORTREVISION= 1 +CATEGORIES= www +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP} +MASTER_SITE_SUBDIR= ${PORTNAME}/18847 + +MAINTAINER= ahze@FreeBSD.org +COMMENT= Kazehakase is a browser with gecko engine like Epiphany or Galeon + +LIB_DEPENDS= gnutls.15:${PORTSDIR}/security/gnutls + +USE_X_PREFIX= yes +USE_GNOME= gnomehack intlhack gnomeprefix gtk20 +USE_GMAKE= yes +USE_GETTEXT= yes +USE_GECKO= firefox mozilla seamonkey xulrunner +INSTALLS_SHLIB= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-gecko_engine=${GECKO} +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \ + LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" +MAN1= kazehakase.1 + +.if defined(WITH_MIGEMO) +USE_RUBY= yes +USE_PERL= yes +BUILD_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv +RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv +.endif + +.include <bsd.port.pre.mk> +.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk" + +.if ${OSVERSION} < 500000 +BROKEN="Does not build" +.endif + +# !!! gtk-webcore higly experimental right now and not very stable !!! +# See https://mail.gna.org/public/kazehakase-devel/2004-10/msg00001.html +# on how to use gtk-webcore with kazehakase. and yes you still have to +# have mozilla even if you don't use it in kazehakase. +.if defined(WITH_GTKWEBCORE) +LIB_DEPENDS+= nrcit.0:${PORTSDIR}/www/osb-nrcit +CONFIGURE_ARGS+=--enable-gtk-webcore +.endif + +.if defined(WITH_THUMBNAIL) || exists(${LOCALBASE}/bin/gs) +USE_GHOSTSCRIPT=yes +.endif + +.if exists(${LOCALBASE}/bin/estxview) +WITH_ESTRAIER= yes +.endif + +.if defined(WITH_MIGEMO) +.if ${ARCH} == "i386" || ${ARCH} == "sparc64" +RUN_DEPENDS+= migemo:${PORTSDIR}/japanese/migemo + +CONFIGURE_ARGS+= --enable-migemo +.endif +.endif + +.if !defined(WITHOUT_ESTRAIER) +RUN_DEPENDS+= estxview:${PORTSDIR}/textproc/estraier +.endif + +pre-everything:: + @${ECHO_MSG} "" + @${ECHO_MSG} "Enable Migemo (Japanese incremental search) by defining WITH_MIGEMO" + @${ECHO_MSG} "" + @${ECHO_MSG} "Enable Thumbnail support by defining WITH_THUMBNAIL" + @${ECHO_MSG} "" + @${ECHO_MSG} "Disable Estraier, A full-text search engine for searching your history" + @${ECHO_MSG} " by defining WITHOUT_ESTRAIER" + @${ECHO_MSG} "" + +post-patch: + @${REINPLACE_CMD} -e 's|thunderbird|xulrunner|' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|/usr/share/migemo|${LOCALBASE}/share/migemo|; \ + s|=beginner|=medium|' ${WRKSRC}/etc/kzrc +.if defined(WITH_MIGEMO) + @${REINPLACE_CMD} -e 's|migemo=fals|migemo=tru|' ${WRKSRC}/etc/kzrc +.endif +.if defined(WITH_THUMBNAIL) + @${ECHO_MSG} "create_thumbnail=true" >> ${WRKSRC}/etc/kzrc +.endif + +.include <bsd.port.post.mk> |