aboutsummaryrefslogtreecommitdiffstats
path: root/www/kazehakase/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/kazehakase/Makefile')
-rw-r--r--www/kazehakase/Makefile66
1 files changed, 6 insertions, 60 deletions
diff --git a/www/kazehakase/Makefile b/www/kazehakase/Makefile
index 0db5da8e7628..0e1277c4e156 100644
--- a/www/kazehakase/Makefile
+++ b/www/kazehakase/Makefile
@@ -3,36 +3,31 @@
# 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.2
-PORTREVISION= 1
+PORTVERSION= 0.3.3
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
-MASTER_SITE_SUBDIR= ${PORTNAME}/17175
+MASTER_SITE_SUBDIR= ${PORTNAME}/17700
MAINTAINER= ahze@FreeBSD.org
COMMENT= Kazehakase is a browser with gecko engine like Epiphany or Galeon
-BUILD_DEPENDS= ${X11BASE}/libdata/pkgconfig/${MOZILLA}-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/${MOZILLA}${HEADERS_SUFX}
-RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/${MOZILLA}-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/${MOZILLA}${HEADERS_SUFX}
-
USE_AUTOTOOLS= libtool:15
USE_X_PREFIX= yes
USE_GNOME= gnomehack intlhack gnomeprefix gtk20
USE_GMAKE= yes
USE_REINPLACE= yes
-CONFIGURE_ARGS= --with-gecko-engine=${MOZILLA:S/-devel//} \
+USE_GECKO= firefox mozilla
+CONFIGURE_ARGS= --with-gecko_engine=${GECKO} \
--disable-ssl
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
-
MAN1= kazehakase.1
-FLASHPLAYER= ${LOCALBASE}/lib/libflashplayer.so.1
-
.if defined(WITH_MIGEMO)
USE_RUBY= yes
USE_PERL= yes
@@ -41,8 +36,7 @@ RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv
.endif
.include <bsd.port.pre.mk>
-
-WITH_MOZILLA?= firefox
+.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk"
# !!! gtk-webcore higly experimental right now and not very stable !!!
# See https://mail.gna.org/public/kazehakase-devel/2004-10/msg00001.html
@@ -57,28 +51,6 @@ CONFIGURE_ARGS+=--enable-gtk-webcore
USE_GHOSTSCRIPT=yes
.endif
-.if !defined(WITH_MOZILLA)
-MOZILLA= firefox
-HEADERS_SUFX=
-.else
-.if ${WITH_MOZILLA}=="mozilla"
-MOZILLA= mozilla
-HEADERS_SUFX=
-.else
-.if ${WITH_MOZILLA}=="mozilla-devel"
-MOZILLA= mozilla
-HEADERS_SUFX=
-#HEADERS_SUFX= -devel
-.if ${OSVERSION} < 500000
-USE_GCC= 3.4
-.endif
-.else
-MOZILLA= firefox
-HEADERS_SUFX=
-.endif
-.endif
-.endif
-
.if exists(${LOCALBASE}/bin/estxview)
WITH_ESTRAIER= yes
.endif
@@ -104,20 +76,8 @@ pre-everything::
@${ECHO_MSG} "Disable Estraier, A full-text search engine for searching your history"
@${ECHO_MSG} " by defining WITHOUT_ESTRAIER"
@${ECHO_MSG} ""
- @${ECHO_MSG} " By default ${PORTNAME} uses www/firefox for Gecko support, but you can"
- @${ECHO_MSG} " change this by defining WITH_MOZILLA to one of the following values:"
- @${ECHO_MSG} ""
- @${ECHO_MSG} " firefox "
- @${ECHO_MSG} " mozilla "
-# @${ECHO_MSG} " mozilla-devel "
- @${ECHO_MSG} ""
- @${ECHO_MSG} " Currently you are using ${WITH_MOZILLA}"
- @${ECHO_MSG} ""
post-patch:
- @${REINPLACE_CMD} -e 's|mozilla-gtkmozembed|mozilla-gtkmozembed${HEADERS_SUFX}|g; \
- s|%%MOZILLA%%|${MOZILLA}|; s|%%HEADERS_SUFX%%|${HEADERS_SUFX}|g' \
- ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/usr/share/migemo|${LOCALBASE}/share/migemo|; \
s|=beginner|=medium|' ${WRKSRC}/etc/kzrc
.if defined(WITH_MIGEMO)
@@ -127,18 +87,4 @@ post-patch:
@${ECHO_MSG} "create_thumbnail=true" >> ${WRKSRC}/etc/kzrc
.endif
-post-configure:
- @${CP} -f ${FILESDIR}/mkinstalldirs ${WRKSRC}
- @${CHMOD} +x ${WRKSRC}/mkinstalldirs
- @${SED} -e 's|%%PREFIX%%|${PREFIX}|g ; \
- s|%%LOCALBASE%%|${LOCALBASE}|g ; \
- s|%%X11BASE%%|${X11BASE}|g ; \
- s|%%MOZILLA%%|${MOZILLA}|g ; \
- s|%%FLASHPLAYER%%|${FLASHPLAYER}|g' < ${FILESDIR}/kazehakase \
- > ${WRKDIR}/kazehakase
-
-post-install:
- @${MV} -f ${PREFIX}/bin/kazehakase ${PREFIX}/bin/kazehakase-bin
- ${INSTALL_SCRIPT} ${WRKDIR}/kazehakase ${PREFIX}/bin
-
.include <bsd.port.post.mk>