openbsd-ports/www/webkit/Makefile
landry 010583df4b Major update to webkit 1.8.0.
- disable static libs, shrinks package size by a factor 3
- now depends on geoclue for geolocation purposes (of course its up to
  the browsers to enable the feature or not..)
- simplify Makefile/FLAVORS/SHARED_LIBS
- fold most of the PFRAGs to PLIST by using variables
- remove patch-Source_JavaScriptCore_runtime_JSValue_h, seems it was
  added for sparc64 but now it breaks the build there, and noone has been
able to justify the addition of that patch. Without it, GtkLauncher
shows simple html websites on sparc64 and crashes as soon as some js is
involved, but thats not much different from before
- remove patch-Source_JavaScriptCore_wtf_text_StringHash_h &
  patch-Source_JavaScriptCore_wtf_text_StringImpl_cpp, replaced by
patch-Source_JavaScriptCore_runtime_UString_h for mips64/sparc64
- add patch-Source_JavaScriptCore_wtf_NumberOfCores_cpp for #82585

tested on i386/amd64 by several, amd64 bulk build, ppc & sparc64 testing
by myself. mips64el in the works..
ok ajacoutot@
2012-04-03 15:39:35 +00:00

118 lines
3.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.63 2012/04/03 15:39:35 landry Exp $
ONLY_FOR_ARCHS= ${GCC4_ARCHS}
COMMENT = open source web browser engine for Gtk+
V = 1.8.0
DISTNAME = webkit-${V}
EPOCH = 0
CATEGORIES = www
EXTRACT_SUFX= .tar.xz
HOMEPAGE = http://webkitgtk.org/
MASTER_SITES = ${HOMEPAGE}/releases/
MAINTAINER = Landry Breuil <landry@openbsd.org>
# LGPLv2 and BSD
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
VMEM_WARNING = Yes
USE_LIBTOOL = Yes
USE_GMAKE = Yes
MODULES = devel/gettext \
textproc/intltool \
lang/python \
devel/dconf
MODPY_RUNDEP = No
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include/libpng -I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -lX11" \
ac_cv_path_FLEX=${LOCALBASE}/bin/gflex
LIBTOOL_FLAGS = --tag=disable-static
CONFIGURE_ARGS+=${CONFIGURE_SHARED} \
--disable-static \
--disable-gtk-doc \
--enable-introspection \
--enable-spellcheck
MAKE_FILE = GNUmakefile
# Fix incorrect GCC output which was caused by over optimization
# when compiling Source/JavaScriptCore/runtime/NumberPrototype.cpp
# as it was emitting a fdtox %r8, %r7 call, whose second operand isn't even and thus invalid.
.if ${MACHINE_ARCH:Msparc64}
MAKE_FLAGS= EXTRA_FLAGS="-O0"
.endif
RUN_DEPENDS = multimedia/gstreamer-0.10/plugins-ffmpeg \
multimedia/gstreamer-0.10/plugins-bad \
multimedia/gstreamer-0.10/plugins-good
WANTLIB = ICE SM X11 Xcomposite Xcursor Xdamage Xext \
Xfixes Xi Xinerama Xrandr Xrender Xt atk-1.0 c xcb-render \
expat fontconfig freetype gio-2.0 glib-2.0 gmodule-2.0 \
gobject-2.0 gthread-2.0 jpeg m gstinterfaces-0.10 \
Xau Xdmcp Xxf86vm dbus-1 dbus-glib-1 drm geoclue \
gstaudio-0.10 gstfft-0.10 gdk_pixbuf-2.0 \
gstreamer-0.10 gstbase-0.10 gstvideo-0.10 gstapp-0.10 gstpbutils-0.10 \
icudata icui18n icuuc sqlite3 xslt enchant soup-2.4 \
pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre pthread GL xcb-shm \
z cairo pixman-1 png pthread-stubs xcb xml2 stdc++ ffi
LIB_DEPENDS = multimedia/gstreamer-0.10/core \
multimedia/gstreamer-0.10/plugins-base \
textproc/icu4c>=4.4 \
databases/sqlite3 \
textproc/libxslt \
textproc/enchant \
geo/geoclue \
devel/glib2>=2.31.2 \
devel/libsoup>=2.37.2.1
BUILD_DEPENDS = devel/bison \
devel/flex \
devel/gperf \
devel/gobject-introspection
FLAVORS = gtk3
FLAVOR ?=
# eases PLIST/PFRAGs
SUBST_VARS = WEBKIT_API_VERSION GTK_API_VERSION
.if ${FLAVOR:L:Mgtk3}
FULLPKGNAME = webkit-gtk3-${V}
LIB_DEPENDS += x11/gtk+3,-main
WANTLIB += cairo-gobject gailutil-3 gdk-3 gtk-3
WEBKIT_API_VERSION = 3.0
GTK_API_VERSION = 3.0
.else
WANTLIB += gailutil gdk-x11-2.0 gtk-x11-2.0
LIB_DEPENDS += x11/gtk+2,-main
WEBKIT_API_VERSION = 1.0
GTK_API_VERSION = 2.0
.endif
CONFIGURE_ARGS += --with-gtk=${GTK_API_VERSION}
SHARED_LIBS += javascriptcoregtk-${WEBKIT_API_VERSION} 2.0 #.13.1
SHARED_LIBS += webkitgtk-${WEBKIT_API_VERSION} 3.0 #.13.1
pre-configure:
${SUBST_CMD} ${WRKSRC}/Source/WebCore/plugins/PluginDatabase.cpp
.if ${FLAVOR:L:Mgtk3}
post-install:
mv ${PREFIX}/bin/GtkLauncher ${PREFIX}/bin/GtkLauncher-3
.endif
.include <bsd.port.mk>