freebsd-ports/www/webkit-gtk2/Makefile
Jeremy Messenger 789d75c728 -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
2009-08-02 19:36:34 +00:00

78 lines
2.1 KiB
Makefile

# New ports collection makefile for: webkit
# Date created: 2007-10-21
# Whom: Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
# $MCom: ports/www/webkit-gtk2/Makefile,v 1.23 2008/10/23 02:41:54 mezz Exp $
#
PORTNAME= webkit
PORTVERSION= 1.0.1
PORTREVISION= 8
CATEGORIES= www
MASTER_SITES= http://people.freedesktop.org/~alp/webkit/gtk/
PKGNAMESUFFIX= -gtk2
MAINTAINER= gnome@FreeBSD.org
COMMENT= An opensource browser engine
LIB_DEPENDS= icutu.38:${PORTSDIR}/devel/icu \
curl.5:${PORTSDIR}/ftp/curl \
sqlite3.8:${PORTSDIR}/databases/sqlite3
WANT_GSTREAMER= yes
USE_XORG= xt
USE_BISON= build
USE_GMAKE= yes
USE_GNOME= gtk20 libxslt
USE_PERL5= yes
USE_LDCONFIG= yes
USE_AUTOTOOLS= autoconf:262 automake:110 libtool:22
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
ac_cv_path_DOLT_BASH=""
CONFIGURE_ARGS= --with-webkit-target=x11 \
--enable-icon-database \
--enable-svg \
--enable-svg-fonts \
--enable-svg-experimental \
--enable-static
MAKEFILE= GNUmakefile
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
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.endif
.if defined(WITH_VIDEO)
USE_GSTREAMER+= gnomevfs
CONFIGURE_ARGS+=--enable-video
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%BROWSER_PLUGINS_DIR%%|${BROWSER_PLUGINS_DIR}|' \
${WRKSRC}/WebCore/plugins/PluginDatabase.cpp
@${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
.include <bsd.port.post.mk>