blob: e0fd5e95873d66ea8fb0b41f8ae11d8e6384a50a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# 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.17 2009/05/10 12:04:20 kwm Exp $
#
PORTNAME= kazehakase
PORTVERSION= 0.5.4
PORTREVISION= 6
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
MASTER_SITE_SUBDIR= ${PORTNAME}/30219
MAINTAINER= ahze@FreeBSD.org
COMMENT= Kazehakase is a browser with gecko engine like Epiphany or Galeon
LIB_DEPENDS= gnutls.26:${PORTSDIR}/security/gnutls
USE_GNOME= gnomehack intlhack gnomeprefix gtk20
USE_GMAKE= yes
USE_GETTEXT= yes
USE_GECKO= firefox mozilla seamonkey xulrunner
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-gecko_engine=${GECKO}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
MAN1= kazehakase.1
OPTIONS= WEBKIT "Webkit Backend (along with Gecko)" On
.if defined(WITH_MIGEMO)
USE_RUBY= 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 "${PORTSDIR}/www/mozilla/bsd.gecko.mk"
.if defined(WITH_WEBKIT)
LIB_DEPENDS+= webkit-1.0.7:${PORTSDIR}/www/webkit-gtk2
PLIST_SUB+= WEBKIT=""
.else
PLIST_SUB+= WEBKIT="@comment "
.endif
.if defined(WITH_THUMBNAIL) || exists(${LOCALBASE}/bin/gs)
USE_GHOSTSCRIPT=yes
.endif
.if defined(WITH_MIGEMO)
.if ${ARCH} == "i386" || ${ARCH} == "sparc64"
RUN_DEPENDS+= migemo:${PORTSDIR}/japanese/migemo
CONFIGURE_ARGS+= --enable-migemo
.endif
.endif
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
.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} "By default the search uses hyperestraier but you can"
@${ECHO_MSG} "use rast by using WITH_SEARCH=rast"
@${ECHO_MSG} ""
post-patch:
@${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
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|-D.*_DISABLE_DEPRECATED=1||g'
pre-install:
@${REINPLACE_CMD} -e 's|localen|locale|' \
${WRKSRC}/po/Makefile
.include <bsd.port.post.mk>
|