2015-11-20 11:24:04 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.143 2015/11/20 11:24:04 sthen Exp $
|
2014-09-02 14:28:20 +00:00
|
|
|
|
2014-09-29 11:57:54 +00:00
|
|
|
PORTROACH = limit:^2\.4
|
2008-07-25 12:51:10 +00:00
|
|
|
|
2011-05-30 20:29:05 +00:00
|
|
|
COMMENT = open source web browser engine for Gtk+
|
2014-12-30 21:50:24 +00:00
|
|
|
BROKEN-alpha = error: Compiler GCC >= 4.7 or Clang >= 3.3 is required for C compilation
|
|
|
|
BROKEN-hppa = error: Compiler GCC >= 4.7 or Clang >= 3.3 is required for C compilation
|
2008-07-25 12:51:10 +00:00
|
|
|
|
2015-05-20 15:32:54 +00:00
|
|
|
V = 2.4.9
|
Major update to webkit 2.0.0.
- add ruby to BDEPS. Webkit build system now uses autohell, python, ruby and perl \o/
- set MODRUBY_REV = 1.8 on sparc64 since 1.9 is broken there
- disable WebKit2 support, it needs shm_open()/shm_unlink()
- switch from gstreamer-0.10 to gstreamer1
- force-disable JIT/ASSEMBLER on non-jit archs, builds fails otherwise (bug #113638)
- only build NumberPrototype.cpp with -O0 on sparc64, not the damn whole thing
- use -Wl,--relax on ppc otherwise linking fails
- move some patches around since JavaScriptCore/wtf moved to WTF/wtf
- dont uselessly rerun make within make during install, gmake blows
- blindly backport upstream r144077 to fix mips64 build
- backport bits of #103128 & r145551 to fix powerpc build
- backport r147967 & more to fix bashisms in configure
- bug #109932 forced the use of gcc >= 4.7 or clang >= 3.0, but this is
only for WebKit2 so loosen the check atm
Tested working fine on amd64 & i386, went in bulk builds, known broken
at runtime on ppc (being worked on. or not.) should build on mips64el
(and maybe even run!) and sparc64 (wont run! ever! nothing new here..),
but 'someone' will care about the poor exotic archs and fix'em, right ?
After too much prodding from the gnome maintainers who desperately need it
2013-04-13 09:11:02 +00:00
|
|
|
DISTNAME = webkitgtk-${V}
|
|
|
|
PKGNAME = webkit-${V}
|
2014-01-28 23:24:42 +00:00
|
|
|
EPOCH = 1
|
2008-07-25 12:51:10 +00:00
|
|
|
CATEGORIES = www
|
2012-10-01 17:49:26 +00:00
|
|
|
DPB_PROPERTIES =parallel
|
2013-10-06 19:56:42 +00:00
|
|
|
EXTRACT_SUFX = .tar.xz
|
2015-11-15 12:45:48 +00:00
|
|
|
REVISION = 3
|
2011-10-17 06:16:58 +00:00
|
|
|
|
2009-04-27 19:25:08 +00:00
|
|
|
HOMEPAGE = http://webkitgtk.org/
|
2012-04-03 15:39:35 +00:00
|
|
|
MASTER_SITES = ${HOMEPAGE}/releases/
|
2008-07-25 12:51:10 +00:00
|
|
|
|
2013-10-06 14:18:22 +00:00
|
|
|
MAINTAINER = Landry Breuil <landry@openbsd.org> \
|
|
|
|
Antoine Jacoutot <ajacoutot@openbsd.org>
|
2008-07-25 12:51:10 +00:00
|
|
|
|
2014-09-28 06:52:14 +00:00
|
|
|
SHARED_LIBS += javascriptcoregtk-${WEBKIT_API_VERSION} 5.0 # 16.3
|
|
|
|
SHARED_LIBS += webkitgtk-${WEBKIT_API_VERSION} 7.0 # 22.11
|
|
|
|
|
2011-05-30 20:29:05 +00:00
|
|
|
# LGPLv2 and BSD
|
2008-07-25 12:51:10 +00:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
|
2010-12-17 16:17:54 +00:00
|
|
|
MODULES = devel/gettext \
|
2011-05-11 06:00:08 +00:00
|
|
|
lang/python \
|
2013-10-06 16:27:26 +00:00
|
|
|
lang/ruby \
|
|
|
|
x11/gnome
|
2011-05-11 06:00:08 +00:00
|
|
|
|
2013-10-06 16:27:26 +00:00
|
|
|
MODULES += gcc4
|
|
|
|
MODGCC4_ARCHS = *
|
|
|
|
MODGCC4_LANGS = c++
|
2014-03-25 06:25:45 +00:00
|
|
|
# cant use clang = needs <chrono> header in StdLib ?
|
|
|
|
#MODULES += lang/clang
|
|
|
|
#MODCLANG_ARCHS = amd64
|
|
|
|
#MODCLANG_LANGS = c c++
|
|
|
|
|
2013-10-06 16:27:26 +00:00
|
|
|
MAKE_FILE = GNUmakefile
|
|
|
|
PORTHOME = ${WRKDIST}
|
|
|
|
SUBST_VARS = WEBKIT_API_VERSION GTK_API_VERSION
|
|
|
|
|
2014-07-09 17:43:52 +00:00
|
|
|
USE_GMAKE = Yes
|
2014-09-28 06:52:14 +00:00
|
|
|
LIBTOOL_FLAGS = --tag=disable-static
|
2014-07-09 17:43:52 +00:00
|
|
|
|
2013-10-06 16:27:26 +00:00
|
|
|
MODPY_RUNDEP = No
|
Major update to webkit 2.0.0.
- add ruby to BDEPS. Webkit build system now uses autohell, python, ruby and perl \o/
- set MODRUBY_REV = 1.8 on sparc64 since 1.9 is broken there
- disable WebKit2 support, it needs shm_open()/shm_unlink()
- switch from gstreamer-0.10 to gstreamer1
- force-disable JIT/ASSEMBLER on non-jit archs, builds fails otherwise (bug #113638)
- only build NumberPrototype.cpp with -O0 on sparc64, not the damn whole thing
- use -Wl,--relax on ppc otherwise linking fails
- move some patches around since JavaScriptCore/wtf moved to WTF/wtf
- dont uselessly rerun make within make during install, gmake blows
- blindly backport upstream r144077 to fix mips64 build
- backport bits of #103128 & r145551 to fix powerpc build
- backport r147967 & more to fix bashisms in configure
- bug #109932 forced the use of gcc >= 4.7 or clang >= 3.0, but this is
only for WebKit2 so loosen the check atm
Tested working fine on amd64 & i386, went in bulk builds, known broken
at runtime on ppc (being worked on. or not.) should build on mips64el
(and maybe even run!) and sparc64 (wont run! ever! nothing new here..),
but 'someone' will care about the poor exotic archs and fix'em, right ?
After too much prodding from the gnome maintainers who desperately need it
2013-04-13 09:11:02 +00:00
|
|
|
MODRUBY_RUNDEP = No
|
2014-03-25 06:25:45 +00:00
|
|
|
MODPY_ADJ_FILES = Tools/gtk/generate-feature-defines-files \
|
|
|
|
Tools/gtk/generate-inspector-gresource-manifest.py
|
2009-03-08 20:00:41 +00:00
|
|
|
|
2014-03-25 06:25:45 +00:00
|
|
|
MODGNOME_CPPFLAGS = -I${X11BASE}/include -DLOG_DISABLED=0
|
2013-10-06 16:27:26 +00:00
|
|
|
MODGNOME_LDFLAGS = -L${X11BASE}/lib -lX11
|
2014-04-03 12:37:41 +00:00
|
|
|
MODGNOME_TOOLS += gobject-introspection
|
2013-10-06 16:27:26 +00:00
|
|
|
|
2008-07-25 12:51:10 +00:00
|
|
|
CONFIGURE_STYLE = gnu
|
2014-09-28 06:52:14 +00:00
|
|
|
# AR_FLAGS: cf http://trac.webkit.org/changeset/163954
|
2015-11-20 11:24:04 +00:00
|
|
|
CONFIGURE_ENV = AR_FLAGS="cru" \
|
Major update to webkit 2.0.0.
- add ruby to BDEPS. Webkit build system now uses autohell, python, ruby and perl \o/
- set MODRUBY_REV = 1.8 on sparc64 since 1.9 is broken there
- disable WebKit2 support, it needs shm_open()/shm_unlink()
- switch from gstreamer-0.10 to gstreamer1
- force-disable JIT/ASSEMBLER on non-jit archs, builds fails otherwise (bug #113638)
- only build NumberPrototype.cpp with -O0 on sparc64, not the damn whole thing
- use -Wl,--relax on ppc otherwise linking fails
- move some patches around since JavaScriptCore/wtf moved to WTF/wtf
- dont uselessly rerun make within make during install, gmake blows
- blindly backport upstream r144077 to fix mips64 build
- backport bits of #103128 & r145551 to fix powerpc build
- backport r147967 & more to fix bashisms in configure
- bug #109932 forced the use of gcc >= 4.7 or clang >= 3.0, but this is
only for WebKit2 so loosen the check atm
Tested working fine on amd64 & i386, went in bulk builds, known broken
at runtime on ppc (being worked on. or not.) should build on mips64el
(and maybe even run!) and sparc64 (wont run! ever! nothing new here..),
but 'someone' will care about the poor exotic archs and fix'em, right ?
After too much prodding from the gnome maintainers who desperately need it
2013-04-13 09:11:02 +00:00
|
|
|
ac_cv_path_RUBY=${RUBY}
|
2013-10-06 16:27:26 +00:00
|
|
|
CONFIGURE_ARGS= --disable-static \
|
2015-04-08 21:42:14 +00:00
|
|
|
--disable-webkit2 \
|
2013-10-06 16:27:26 +00:00
|
|
|
--enable-spellcheck \
|
|
|
|
--with-gtk=${GTK_API_VERSION}
|
2009-01-25 22:16:40 +00:00
|
|
|
|
Major update to webkit 2.0.0.
- add ruby to BDEPS. Webkit build system now uses autohell, python, ruby and perl \o/
- set MODRUBY_REV = 1.8 on sparc64 since 1.9 is broken there
- disable WebKit2 support, it needs shm_open()/shm_unlink()
- switch from gstreamer-0.10 to gstreamer1
- force-disable JIT/ASSEMBLER on non-jit archs, builds fails otherwise (bug #113638)
- only build NumberPrototype.cpp with -O0 on sparc64, not the damn whole thing
- use -Wl,--relax on ppc otherwise linking fails
- move some patches around since JavaScriptCore/wtf moved to WTF/wtf
- dont uselessly rerun make within make during install, gmake blows
- blindly backport upstream r144077 to fix mips64 build
- backport bits of #103128 & r145551 to fix powerpc build
- backport r147967 & more to fix bashisms in configure
- bug #109932 forced the use of gcc >= 4.7 or clang >= 3.0, but this is
only for WebKit2 so loosen the check atm
Tested working fine on amd64 & i386, went in bulk builds, known broken
at runtime on ppc (being worked on. or not.) should build on mips64el
(and maybe even run!) and sparc64 (wont run! ever! nothing new here..),
but 'someone' will care about the poor exotic archs and fix'em, right ?
After too much prodding from the gnome maintainers who desperately need it
2013-04-13 09:11:02 +00:00
|
|
|
# XXX: uncomment if you want to debug the javascript engine
|
|
|
|
# this will only build the needed libs and the shell
|
|
|
|
# ALL_TARGET=jsc
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "powerpc"
|
|
|
|
# Turns on -O0 globally, makes jsc work ?
|
|
|
|
CONFIGURE_ARGS += --enable-optimizations=no
|
|
|
|
# XXX huge hack LDFLAGS is already added a bit before
|
|
|
|
CONFIGURE_ENV += COVERAGE_LDFLAGS="-Wl,--relax"
|
|
|
|
.endif
|
|
|
|
|
2011-09-26 20:15:29 +00:00
|
|
|
WANTLIB = ICE SM X11 Xcomposite Xcursor Xdamage Xext \
|
2010-07-03 07:53:04 +00:00
|
|
|
Xfixes Xi Xinerama Xrandr Xrender Xt atk-1.0 c xcb-render \
|
2013-10-07 18:47:55 +00:00
|
|
|
EGL X11-xcb Xau Xdmcp glapi xcb-dri2 xcb-glx xcb-shape xcb-xfixes \
|
2011-05-11 06:00:08 +00:00
|
|
|
expat fontconfig freetype gio-2.0 glib-2.0 gmodule-2.0 \
|
2013-05-31 20:07:33 +00:00
|
|
|
gobject-2.0 gthread-2.0 jpeg m harfbuzz-icu \
|
2014-10-24 16:06:27 +00:00
|
|
|
Xxf86vm dbus-1 lzma drm gbm \
|
2013-10-06 09:08:50 +00:00
|
|
|
gstaudio-1.0 gstfft-1.0 gdk_pixbuf-2.0 orc-0.4 \
|
Major update to webkit 2.0.0.
- add ruby to BDEPS. Webkit build system now uses autohell, python, ruby and perl \o/
- set MODRUBY_REV = 1.8 on sparc64 since 1.9 is broken there
- disable WebKit2 support, it needs shm_open()/shm_unlink()
- switch from gstreamer-0.10 to gstreamer1
- force-disable JIT/ASSEMBLER on non-jit archs, builds fails otherwise (bug #113638)
- only build NumberPrototype.cpp with -O0 on sparc64, not the damn whole thing
- use -Wl,--relax on ppc otherwise linking fails
- move some patches around since JavaScriptCore/wtf moved to WTF/wtf
- dont uselessly rerun make within make during install, gmake blows
- blindly backport upstream r144077 to fix mips64 build
- backport bits of #103128 & r145551 to fix powerpc build
- backport r147967 & more to fix bashisms in configure
- bug #109932 forced the use of gcc >= 4.7 or clang >= 3.0, but this is
only for WebKit2 so loosen the check atm
Tested working fine on amd64 & i386, went in bulk builds, known broken
at runtime on ppc (being worked on. or not.) should build on mips64el
(and maybe even run!) and sparc64 (wont run! ever! nothing new here..),
but 'someone' will care about the poor exotic archs and fix'em, right ?
After too much prodding from the gnome maintainers who desperately need it
2013-04-13 09:11:02 +00:00
|
|
|
gstreamer-1.0 gstbase-1.0 gstvideo-1.0 gstapp-1.0 gstpbutils-1.0 \
|
2010-07-19 12:29:50 +00:00
|
|
|
icudata icui18n icuuc sqlite3 xslt enchant soup-2.4 \
|
2011-09-26 20:15:29 +00:00
|
|
|
pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre pthread GL xcb-shm \
|
2012-12-21 13:22:26 +00:00
|
|
|
z cairo pixman-1 png pthread-stubs xcb xml2 stdc++ ffi \
|
2013-05-31 20:07:33 +00:00
|
|
|
harfbuzz graphite2 gcrypt gpg-error gsttag-1.0 secret-1 webp
|
2008-07-25 12:51:10 +00:00
|
|
|
|
2014-09-28 06:52:14 +00:00
|
|
|
LIB_DEPENDS = multimedia/gstreamer1/plugins-base \
|
2013-05-31 20:07:33 +00:00
|
|
|
devel/harfbuzz,-icu \
|
2010-11-22 08:36:47 +00:00
|
|
|
textproc/libxslt \
|
|
|
|
textproc/enchant \
|
Major update to webkit 2.0.0.
- add ruby to BDEPS. Webkit build system now uses autohell, python, ruby and perl \o/
- set MODRUBY_REV = 1.8 on sparc64 since 1.9 is broken there
- disable WebKit2 support, it needs shm_open()/shm_unlink()
- switch from gstreamer-0.10 to gstreamer1
- force-disable JIT/ASSEMBLER on non-jit archs, builds fails otherwise (bug #113638)
- only build NumberPrototype.cpp with -O0 on sparc64, not the damn whole thing
- use -Wl,--relax on ppc otherwise linking fails
- move some patches around since JavaScriptCore/wtf moved to WTF/wtf
- dont uselessly rerun make within make during install, gmake blows
- blindly backport upstream r144077 to fix mips64 build
- backport bits of #103128 & r145551 to fix powerpc build
- backport r147967 & more to fix bashisms in configure
- bug #109932 forced the use of gcc >= 4.7 or clang >= 3.0, but this is
only for WebKit2 so loosen the check atm
Tested working fine on amd64 & i386, went in bulk builds, known broken
at runtime on ppc (being worked on. or not.) should build on mips64el
(and maybe even run!) and sparc64 (wont run! ever! nothing new here..),
but 'someone' will care about the poor exotic archs and fix'em, right ?
After too much prodding from the gnome maintainers who desperately need it
2013-04-13 09:11:02 +00:00
|
|
|
graphics/libwebp \
|
2014-09-28 06:52:14 +00:00
|
|
|
devel/glib2 \
|
|
|
|
devel/libsoup \
|
2013-04-18 11:31:37 +00:00
|
|
|
x11/gnome/libsecret
|
2010-11-22 08:36:47 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS = devel/bison \
|
2014-10-24 16:06:27 +00:00
|
|
|
devel/gperf \
|
|
|
|
geo/geoclue2
|
|
|
|
|
|
|
|
RUN_DEPENDS = geo/geoclue2
|
2008-07-25 12:51:10 +00:00
|
|
|
|
2011-05-11 06:00:08 +00:00
|
|
|
FLAVORS = gtk3
|
|
|
|
FLAVOR ?=
|
2013-10-06 14:03:42 +00:00
|
|
|
|
2013-02-09 14:49:50 +00:00
|
|
|
.if ${FLAVOR:Mgtk3}
|
2013-10-06 14:03:42 +00:00
|
|
|
#XXX gross, but needed to have __sync_add_and_fetch_8 on 32-bits
|
|
|
|
#what about ppc ? hppa ?
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2015-05-26 06:30:45 +00:00
|
|
|
CFLAGS += -march=i686
|
|
|
|
CXXFLAGS += -march=i686
|
2013-10-06 14:03:42 +00:00
|
|
|
.endif
|
Major update to webkit 2.0.0.
- add ruby to BDEPS. Webkit build system now uses autohell, python, ruby and perl \o/
- set MODRUBY_REV = 1.8 on sparc64 since 1.9 is broken there
- disable WebKit2 support, it needs shm_open()/shm_unlink()
- switch from gstreamer-0.10 to gstreamer1
- force-disable JIT/ASSEMBLER on non-jit archs, builds fails otherwise (bug #113638)
- only build NumberPrototype.cpp with -O0 on sparc64, not the damn whole thing
- use -Wl,--relax on ppc otherwise linking fails
- move some patches around since JavaScriptCore/wtf moved to WTF/wtf
- dont uselessly rerun make within make during install, gmake blows
- blindly backport upstream r144077 to fix mips64 build
- backport bits of #103128 & r145551 to fix powerpc build
- backport r147967 & more to fix bashisms in configure
- bug #109932 forced the use of gcc >= 4.7 or clang >= 3.0, but this is
only for WebKit2 so loosen the check atm
Tested working fine on amd64 & i386, went in bulk builds, known broken
at runtime on ppc (being worked on. or not.) should build on mips64el
(and maybe even run!) and sparc64 (wont run! ever! nothing new here..),
but 'someone' will care about the poor exotic archs and fix'em, right ?
After too much prodding from the gnome maintainers who desperately need it
2013-04-13 09:11:02 +00:00
|
|
|
|
2011-05-11 06:00:08 +00:00
|
|
|
FULLPKGNAME = webkit-gtk3-${V}
|
|
|
|
LIB_DEPENDS += x11/gtk+3,-main
|
2015-04-08 21:42:14 +00:00
|
|
|
WANTLIB += cairo-gobject gdk-3 gtk-3 epoxy atk-bridge-2.0 atspi
|
2013-10-06 14:03:42 +00:00
|
|
|
|
2012-04-03 15:39:35 +00:00
|
|
|
WEBKIT_API_VERSION = 3.0
|
|
|
|
GTK_API_VERSION = 3.0
|
2011-05-11 06:00:08 +00:00
|
|
|
.else
|
2015-04-08 21:42:14 +00:00
|
|
|
|
2012-04-03 15:39:35 +00:00
|
|
|
WEBKIT_API_VERSION = 1.0
|
|
|
|
GTK_API_VERSION = 2.0
|
2015-04-08 21:42:14 +00:00
|
|
|
LIB_DEPENDS += x11/gtk+2,-main
|
2015-04-10 06:30:40 +00:00
|
|
|
WANTLIB += gdk-x11-2.0 gtk-x11-2.0
|
2011-05-11 06:00:08 +00:00
|
|
|
.endif
|
2013-10-06 14:03:42 +00:00
|
|
|
|
2009-11-08 16:19:34 +00:00
|
|
|
pre-configure:
|
Major update to webkit 2.0.0.
- add ruby to BDEPS. Webkit build system now uses autohell, python, ruby and perl \o/
- set MODRUBY_REV = 1.8 on sparc64 since 1.9 is broken there
- disable WebKit2 support, it needs shm_open()/shm_unlink()
- switch from gstreamer-0.10 to gstreamer1
- force-disable JIT/ASSEMBLER on non-jit archs, builds fails otherwise (bug #113638)
- only build NumberPrototype.cpp with -O0 on sparc64, not the damn whole thing
- use -Wl,--relax on ppc otherwise linking fails
- move some patches around since JavaScriptCore/wtf moved to WTF/wtf
- dont uselessly rerun make within make during install, gmake blows
- blindly backport upstream r144077 to fix mips64 build
- backport bits of #103128 & r145551 to fix powerpc build
- backport r147967 & more to fix bashisms in configure
- bug #109932 forced the use of gcc >= 4.7 or clang >= 3.0, but this is
only for WebKit2 so loosen the check atm
Tested working fine on amd64 & i386, went in bulk builds, known broken
at runtime on ppc (being worked on. or not.) should build on mips64el
(and maybe even run!) and sparc64 (wont run! ever! nothing new here..),
but 'someone' will care about the poor exotic archs and fix'em, right ?
After too much prodding from the gnome maintainers who desperately need it
2013-04-13 09:11:02 +00:00
|
|
|
${SUBST_CMD} ${WRKSRC}/Source/WebCore/plugins/PluginDatabase.cpp ${WRKSRC}/configure
|
2014-03-25 06:25:45 +00:00
|
|
|
# this ensures gtk-doc files are installed in a versionned directory so that we can
|
|
|
|
# install both versions alongside, see DOC_MODULE_VERSION in GNUMakefile.in
|
|
|
|
echo ${WEBKIT_API_VERSION} > ${WRKSRC}/Documentation/webkitdomgtk/version.xml
|
|
|
|
echo ${WEBKIT_API_VERSION} > ${WRKSRC}/Documentation/webkitgtk/version.xml
|
2011-05-11 06:00:08 +00:00
|
|
|
|
|
|
|
post-install:
|
2014-04-20 16:40:55 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Programs/.libs/GtkLauncher ${PREFIX}/bin/GtkLauncher
|
|
|
|
.if ${FLAVOR:Mgtk3}
|
2011-05-11 06:00:08 +00:00
|
|
|
mv ${PREFIX}/bin/GtkLauncher ${PREFIX}/bin/GtkLauncher-3
|
|
|
|
.endif
|
2009-11-08 16:19:34 +00:00
|
|
|
|
2008-07-25 12:51:10 +00:00
|
|
|
.include <bsd.port.mk>
|