mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
50f8eaece1
- USE_PYTHON* = 2.X -> USE_PYTHON* = 2 - USE_PYTHON* = 2.X+ -> USE_PYTHON* = yes Reviewed by: python (mva, rm) Approved by: portmgr-lurkers (mat)
101 lines
2.8 KiB
Makefile
101 lines
2.8 KiB
Makefile
# Created by: Michael Johnson <ahze@FreeBSD.org>
|
|
# $FreeBSD$
|
|
# $MCom: ports/www/webkit-gtk2/Makefile,v 1.92 2013/03/09 09:12:39 kwm Exp $
|
|
|
|
PORTNAME= webkit
|
|
PORTVERSION= 1.8.3
|
|
PORTREVISION= 2
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://webkitgtk.org/releases/
|
|
PKGNAMESUFFIX= -gtk2
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
COMMENT= An opensource browser engine
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex \
|
|
${LOCALBASE}/bin/gperf:${PORTSDIR}/devel/gperf \
|
|
gtkdoc-rebase:${PORTSDIR}/textproc/gtk-doc
|
|
LIB_DEPENDS= libenchant.so:${PORTSDIR}/textproc/enchant \
|
|
libicutu.so:${PORTSDIR}/devel/icu \
|
|
libcurl.so:${PORTSDIR}/ftp/curl \
|
|
libsoup-2.4.so:${PORTSDIR}/devel/libsoup
|
|
|
|
USE_XZ= yes
|
|
USE_PYTHON_BUILD= 2
|
|
USE_GSTREAMER= yes
|
|
USE_XORG= xt
|
|
USES= bison gmake pkgconfig gettext perl5
|
|
USE_AUTOTOOLS= libtool
|
|
USE_GNOME= gtk20 introspection:build libxslt ltverhack
|
|
USE_SQLITE= yes
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= ac_cv_path_FLEX="${LOCALBASE}/bin/flex" \
|
|
ZLIB_CFLAGS="-I/usr/include" \
|
|
ZLIB_LIBS="-L/usr/lib -lz" \
|
|
ac_cv_path_DOLT_BASH=""
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CONFIGURE_ARGS= --with-gtk=2.0 \
|
|
--enable-svg-fonts \
|
|
--disable-geolocation \
|
|
--enable-introspection
|
|
MAKEFILE= GNUmakefile
|
|
|
|
BROWSER_PLUGINS_DIR?= ${LOCALBASE}/lib/browser_plugins/symlinks/webkit-gtk2
|
|
#_BROWSER_PLUGINS_DIR= ${BROWSER_PLUGINS_DIR:S|^/|"|:S|/|", "|g}",
|
|
|
|
OPTIONS_DEFINE= WEBGL DEBUG
|
|
OPTIONS_DEFAULT=WEBGL
|
|
WEBGL_DESC= Enable Web GL support
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MWEBGL}
|
|
USE_GL= gl
|
|
CONFIGURE_ARGS+=--enable-webgl
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-webgl
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
|
CONFIGURE_ARGS+=--enable-debug
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-debug
|
|
.endif
|
|
|
|
CCISCLANG!= ${CC} --version
|
|
|
|
.if !empty(CCISCLANG:M*clang*)
|
|
CPPFLAGS+= -Wno-c++11-extensions
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == powerpc64
|
|
CFLAGS+= -mminimal-toc
|
|
.endif
|
|
|
|
.if ${PERL_LEVEL} >= 501400
|
|
BUILD_DEPENDS+= p5-Switch>0:${PORTSDIR}/lang/p5-Switch
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%BROWSER_PLUGINS_DIR%%|${BROWSER_PLUGINS_DIR}|' \
|
|
${WRKSRC}/Source/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}/Source/WebCore/dom/make_names.pl \
|
|
${WRKSRC}/Source/WebCore/css/make-css-file-arrays.pl \
|
|
${WRKSRC}/Source/WebCore/bindings/scripts/IDLParser.pm
|
|
@${REINPLACE_CMD} -e 's|"gperf|"${LOCALBASE}/bin/gperf|g' \
|
|
${WRKSRC}/Source/WebCore/css/makevalues.pl \
|
|
${WRKSRC}/Source/WebCore/css/makeprop.pl \
|
|
${WRKSRC}/Source/WebCore/make-hash-tools.pl
|
|
|
|
.include <bsd.port.post.mk>
|