2004-08-27 23:02:44 +02:00
|
|
|
# New ports collection makefile for: kazehakase
|
|
|
|
# Date created: 2004-04-06
|
|
|
|
# Whom: michael johnson <ahze@ahze.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2007-10-25 01:37:25 +02:00
|
|
|
# $MCom: ports/www/kazehakase/Makefile,v 1.9 2007/10/24 16:17:14 ahze Exp $
|
2004-08-27 23:02:44 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= kazehakase
|
2008-03-30 05:49:18 +02:00
|
|
|
PORTVERSION= 0.5.4
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 3
|
2004-08-27 23:02:44 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
|
2008-03-30 05:49:18 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/30219
|
2004-08-27 23:02:44 +02:00
|
|
|
|
2004-10-30 06:47:54 +02:00
|
|
|
MAINTAINER= ahze@FreeBSD.org
|
2004-08-27 23:02:44 +02:00
|
|
|
COMMENT= Kazehakase is a browser with gecko engine like Epiphany or Galeon
|
|
|
|
|
2008-03-03 12:57:08 +01:00
|
|
|
LIB_DEPENDS= gnutls.26:${PORTSDIR}/security/gnutls
|
2006-02-08 17:45:18 +01:00
|
|
|
|
2004-08-27 23:02:44 +02:00
|
|
|
USE_GNOME= gnomehack intlhack gnomeprefix gtk20
|
|
|
|
USE_GMAKE= yes
|
2006-03-18 18:34:41 +01:00
|
|
|
USE_GETTEXT= yes
|
2008-04-30 18:44:57 +02:00
|
|
|
USE_GECKO= firefox mozilla seamonkey xulrunner seamonkey
|
2006-08-30 02:19:43 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2006-02-08 17:45:18 +01:00
|
|
|
CONFIGURE_ARGS= --with-gecko_engine=${GECKO}
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
2004-08-27 23:02:44 +02:00
|
|
|
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
2005-04-07 23:21:07 +02:00
|
|
|
MAN1= kazehakase.1
|
2008-03-30 05:49:18 +02:00
|
|
|
OPTIONS= WEBKIT "Webkit Backend (along with Gecko)" On
|
2005-04-07 23:21:07 +02:00
|
|
|
|
2004-10-15 22:28:12 +02:00
|
|
|
.if defined(WITH_MIGEMO)
|
|
|
|
USE_RUBY= yes
|
2004-10-30 06:31:49 +02:00
|
|
|
BUILD_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv
|
2004-10-15 22:28:12 +02:00
|
|
|
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv
|
|
|
|
.endif
|
|
|
|
|
2004-08-27 23:02:44 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2007-10-25 01:37:25 +02:00
|
|
|
.include "${PORTSDIR}/www/mozilla/bsd.gecko.mk"
|
2005-04-02 18:40:28 +02:00
|
|
|
|
2008-03-30 05:49:18 +02:00
|
|
|
.if defined(WITH_WEBKIT)
|
|
|
|
LIB_DEPENDS+= WebKitGtk.1:${PORTSDIR}/www/webkit-gtk2
|
|
|
|
PLIST_SUB+= WEBKIT=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WEBKIT="@comment "
|
2004-12-09 06:19:48 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_THUMBNAIL) || exists(${LOCALBASE}/bin/gs)
|
|
|
|
USE_GHOSTSCRIPT=yes
|
|
|
|
.endif
|
|
|
|
|
2004-08-27 23:02:44 +02:00
|
|
|
.if defined(WITH_MIGEMO)
|
|
|
|
.if ${ARCH} == "i386" || ${ARCH} == "sparc64"
|
2004-10-15 22:28:12 +02:00
|
|
|
RUN_DEPENDS+= migemo:${PORTSDIR}/japanese/migemo
|
2004-08-27 23:02:44 +02:00
|
|
|
|
2005-02-14 19:27:52 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-migemo
|
2004-08-27 23:02:44 +02:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2006-03-28 18:55:29 +02:00
|
|
|
WITH_SEARCH?= hyperestraier
|
|
|
|
.if ${WITH_SEARCH:L}=="rast"
|
|
|
|
LIB_DEPENDS+= rast.1:${PORTSDIR}/textproc/rast
|
|
|
|
CONFIGURE_ARGS+= --with-search-engine=rast
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= estraier.8:${PORTSDIR}/textproc/hyperestraier
|
|
|
|
CONFIGURE_ARGS+= --with-search-engine=hyperestraier
|
2004-08-29 16:02:23 +02:00
|
|
|
.endif
|
|
|
|
|
2004-09-02 15:57:27 +02:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} ""
|
2005-06-29 01:46:56 +02:00
|
|
|
@${ECHO_MSG} "Enable Migemo (Japanese incremental search) by defining WITH_MIGEMO"
|
2004-12-09 06:19:48 +01:00
|
|
|
@${ECHO_MSG} ""
|
2004-12-19 22:11:01 +01:00
|
|
|
@${ECHO_MSG} "Enable Thumbnail support by defining WITH_THUMBNAIL"
|
2004-12-09 06:19:48 +01:00
|
|
|
@${ECHO_MSG} ""
|
2006-03-28 18:55:29 +02:00
|
|
|
@${ECHO_MSG} "By default the search uses hyperestraier but you can"
|
|
|
|
@${ECHO_MSG} "use rast by using WITH_SEARCH=rast"
|
2004-12-09 06:19:48 +01:00
|
|
|
@${ECHO_MSG} ""
|
2004-09-02 15:57:27 +02:00
|
|
|
|
2004-08-27 23:02:44 +02:00
|
|
|
post-patch:
|
2004-12-09 06:19:48 +01:00
|
|
|
@${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
|
2004-08-27 23:02:44 +02:00
|
|
|
|
2007-10-25 01:37:25 +02:00
|
|
|
pre-install:
|
|
|
|
@${REINPLACE_CMD} -e 's|localen|locale|' \
|
|
|
|
${WRKSRC}/po/Makefile
|
|
|
|
|
2004-08-27 23:02:44 +02:00
|
|
|
.include <bsd.port.post.mk>
|