2008-03-24 04:52:36 +01:00
|
|
|
# New ports collection makefile for: webkit
|
|
|
|
# Date created: 2007-10-21
|
|
|
|
# Whom: Michael Johnson <ahze@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2009-01-10 06:22:13 +01:00
|
|
|
# $MCom: ports/www/webkit-gtk2/Makefile,v 1.23 2008/10/23 02:41:54 mezz Exp $
|
2008-03-24 04:52:36 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= webkit
|
2009-01-10 06:22:13 +01:00
|
|
|
PORTVERSION= 1.0.1
|
2009-02-01 17:46:09 +01:00
|
|
|
PORTREVISION= 6
|
2008-03-24 04:52:36 +01:00
|
|
|
CATEGORIES= www
|
2009-01-10 06:22:13 +01:00
|
|
|
MASTER_SITES= http://people.freedesktop.org/~alp/webkit/gtk/
|
2008-03-24 04:52:36 +01:00
|
|
|
PKGNAMESUFFIX= -gtk2
|
|
|
|
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
|
|
COMMENT= An opensource browser engine
|
|
|
|
|
|
|
|
LIB_DEPENDS= icutu.38:${PORTSDIR}/devel/icu \
|
2009-01-23 16:43:14 +01:00
|
|
|
curl.5:${PORTSDIR}/ftp/curl \
|
2008-03-24 04:52:36 +01:00
|
|
|
sqlite3.8:${PORTSDIR}/databases/sqlite3
|
|
|
|
|
2009-01-10 06:22:13 +01:00
|
|
|
WANT_GSTREAMER= yes
|
|
|
|
USE_XORG= xt
|
2008-03-24 04:52:36 +01:00
|
|
|
USE_BISON= build
|
|
|
|
USE_GMAKE= yes
|
2009-01-10 06:22:13 +01:00
|
|
|
USE_GNOME= gtk20 libxslt
|
2008-03-24 04:52:36 +01:00
|
|
|
USE_PERL5= yes
|
|
|
|
USE_LDCONFIG= yes
|
2008-08-20 02:57:32 +02:00
|
|
|
USE_AUTOTOOLS= autoconf:262 automake:110 libtool:15
|
2008-03-24 04:52:36 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2009-02-01 17:46:09 +01:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
ac_cv_path_DOLT_BASH=""
|
2008-03-24 04:52:36 +01:00
|
|
|
CONFIGURE_ARGS= --with-webkit-target=x11 \
|
|
|
|
--enable-icon-database \
|
|
|
|
--enable-svg \
|
2009-01-10 06:22:13 +01:00
|
|
|
--enable-svg-fonts \
|
|
|
|
--enable-svg-experimental
|
2008-03-24 04:52:36 +01:00
|
|
|
MAKEFILE= GNUmakefile
|
|
|
|
|
2009-01-10 06:22:13 +01:00
|
|
|
BROWSER_PLUGINS_DIR?= ${LOCALBASE}/lib/browser_plugins/symlinks/webkit-gtk2
|
|
|
|
#_BROWSER_PLUGINS_DIR= ${BROWSER_PLUGINS_DIR:S|^/|"|:S|/|", "|g}",
|
|
|
|
|
|
|
|
OPTIONS= VIDEO "Enable video support" on
|
|
|
|
|
2008-03-31 12:33:05 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-01-10 06:22:13 +01:00
|
|
|
.if defined(WITH_VIDEO)
|
|
|
|
USE_GSTREAMER+= gnomevfs
|
|
|
|
CONFIGURE_ARGS+=--enable-video
|
2008-12-10 08:35:19 +01:00
|
|
|
.endif
|
|
|
|
|
2008-03-24 04:52:36 +01:00
|
|
|
post-patch:
|
2009-01-10 06:22:13 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|%%BROWSER_PLUGINS_DIR%%|${BROWSER_PLUGINS_DIR}|' \
|
|
|
|
${WRKSRC}/WebCore/plugins/PluginDatabase.cpp
|
2008-03-24 04:52:36 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|autoconf|${AUTOCONF}|g ; \
|
|
|
|
s|automake|${AUTOMAKE}|g ; s|aclocal|${ACLOCAL}|g ; \
|
|
|
|
s|autoheader|${AUTOHEADER}|g ; \
|
|
|
|
s|LIBTOOLIZE=libtoolize|LIBTOOLIZE=${LIBTOOLIZE}|g ; \
|
|
|
|
s|$$srcdir/configure|#$$srcdir/configure|g' \
|
|
|
|
${WRKSRC}/autogen.sh
|
|
|
|
@${FIND} ${WRKSRC} -name GNUmakefile.am | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g'
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@(cd ${WRKSRC} && ${SH} autogen.sh)
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
# Install compat pkg-config file so we don't have to patch ports
|
|
|
|
${CP} ${PREFIX}/libdata/pkgconfig/webkit-1.0.pc \
|
|
|
|
${PREFIX}/libdata/pkgconfig/WebKitGtk.pc
|
|
|
|
|
2008-03-31 12:33:05 +02:00
|
|
|
.include <bsd.port.post.mk>
|