summaryrefslogtreecommitdiffstats
path: root/www/webkit-gtk3/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/webkit-gtk3/Makefile')
-rw-r--r--www/webkit-gtk3/Makefile91
1 files changed, 91 insertions, 0 deletions
diff --git a/www/webkit-gtk3/Makefile b/www/webkit-gtk3/Makefile
new file mode 100644
index 000000000..0731eb907
--- /dev/null
+++ b/www/webkit-gtk3/Makefile
@@ -0,0 +1,91 @@
+# New ports collection makefile for: webkit
+# Date created: 2007-10-21
+# Whom: Michael Johnson <ahze@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom$
+#
+
+PORTNAME= webkit
+PORTVERSION= 1.3.7
+CATEGORIES= www
+MASTER_SITES= http://webkitgtk.org/
+PKGNAMESUFFIX= -gtk3
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= An opensource browser engine
+
+BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex \
+ gperf:${PORTSDIR}/devel/gperf \
+ g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
+LIB_DEPENDS= enchant.1:${PORTSDIR}/textproc/enchant \
+ icutu.46:${PORTSDIR}/devel/icu \
+ curl.6:${PORTSDIR}/ftp/curl \
+ sqlite3.8:${PORTSDIR}/databases/sqlite3 \
+ soup-2.4.1:${PORTSDIR}/devel/libsoup
+
+USE_GETTEXT= yes
+WANT_GSTREAMER= yes
+MAKE_JOBS_SAFE= yes
+USE_XORG= xt
+USE_BISON= build
+USE_GMAKE= yes
+USE_AUTOTOOLS= libtool
+USE_GNOME= gtk30 libxslt ltverhack
+USE_PERL5= yes
+USE_LDCONFIG= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib" \
+ ac_cv_path_FLEX="${LOCALBASE}/bin/flex" \
+ ac_cv_path_DOLT_BASH=""
+CONFIGURE_ARGS= --enable-icon-database \
+ --with-gtk=3.0 \
+ --enable-svg \
+ --enable-svg-fonts \
+ --enable-introspection
+MAKEFILE= GNUmakefile
+
+BROWSER_PLUGINS_DIR?= ${LOCALBASE}/lib/browser_plugins/symlinks/webkit-gtk3
+#_BROWSER_PLUGINS_DIR= ${BROWSER_PLUGINS_DIR:S|^/|"|:S|/|", "|g}",
+
+OPTIONS= VIDEO "Enable video support" on \
+ DEBUG "Build with debug support" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_VIDEO)
+USE_GSTREAMER+= yes
+CONFIGURE_ARGS+=--enable-video
+.else
+CONFIGURE_ARGS+=--disable-video
+.endif
+
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+=--enable-debug
+.else
+CONFIGURE_ARGS+=--disable-debug
+.endif
+
+.if ${ARCH} == powerpc64
+CFLAGS+= -mminimal-toc
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%BROWSER_PLUGINS_DIR%%|${BROWSER_PLUGINS_DIR}|' \
+ ${WRKSRC}/WebCore/plugins/PluginDatabase.cpp
+ @${FIND} ${WRKSRC} -name GNUmakefile.* | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g'
+# disable static library.
+ @${REINPLACE_CMD} -e 's|^build_old_libs=yes|build_old_libs=no|' \
+ ${WRKDIR}/gnome-libtool
+ @${REINPLACE_CMD} -e 's|/usr/bin/gcc|${CC}|' \
+ ${WRKSRC}/WebCore/dom/make_names.pl \
+ ${WRKSRC}/WebCore/css/make-css-file-arrays.pl \
+ ${WRKSRC}/WebCore/bindings/scripts/IDLParser.pm
+ @${REINPLACE_CMD} -e 's|"gperf|"${LOCALBASE}/bin/gperf|g' \
+ ${WRKSRC}/WebCore/css/makevalues.pl \
+ ${WRKSRC}/WebCore/css/makeprop.pl \
+ ${WRKSRC}/WebCore/make-hash-tools.pl
+
+.include <bsd.port.post.mk>