2009-12-21 23:07:47 +01:00
|
|
|
# Template build file for 'xulrunner'.
|
|
|
|
pkgname=xulrunner
|
2011-04-08 22:23:08 +02:00
|
|
|
_xulver=2.0
|
2011-05-25 14:46:41 +02:00
|
|
|
_xulpatchver=1
|
|
|
|
_ffver=4.0.1
|
2010-01-22 02:03:18 +01:00
|
|
|
# Current xulrunner version is available at $wrksrc/config/milestone.txt
|
2010-03-25 11:50:17 +01:00
|
|
|
if [ -n "${_xulpatchver}" ]; then
|
|
|
|
version=${_xulver}.${_xulpatchver}
|
|
|
|
else
|
|
|
|
version=${_xulver}
|
|
|
|
fi
|
2011-04-08 22:23:08 +02:00
|
|
|
patch_args="-Np1"
|
|
|
|
stow_copy=yes
|
2010-10-29 12:04:40 +02:00
|
|
|
#revision=1
|
2009-12-21 23:07:47 +01:00
|
|
|
wrksrc=mozilla-${_xulver}
|
|
|
|
distfiles="${MOZILLA_SITE}/firefox/releases/${_ffver}/source/firefox-${_ffver}.source.tar.bz2"
|
|
|
|
short_desc="XML User Interface Language runtime environment"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-05-25 14:46:41 +02:00
|
|
|
checksum=cf3a39877facc229a67760915341fe95095cca647faab3a7adcb70046105199c
|
2009-12-21 23:07:47 +01:00
|
|
|
long_desc="
|
|
|
|
XULRunner is a runtime environment for applications using the
|
|
|
|
XML User Interface Language, XUL. It is the successor of the Gecko
|
|
|
|
runtime environment"
|
|
|
|
|
|
|
|
subpackages="$pkgname-devel"
|
2010-01-11 17:18:40 +01:00
|
|
|
Add_dependency run libgcc
|
2010-10-29 11:18:57 +02:00
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run libstdc++
|
2010-01-11 17:18:40 +01:00
|
|
|
Add_dependency run jpeg
|
|
|
|
Add_dependency run libpng
|
2011-04-08 22:23:08 +02:00
|
|
|
Add_dependency run cairo ">=1.10.2_3" # tee support
|
2010-01-11 17:18:40 +01:00
|
|
|
Add_dependency run freetype
|
|
|
|
Add_dependency run fontconfig
|
|
|
|
Add_dependency run libXrender
|
|
|
|
Add_dependency run libX11
|
|
|
|
Add_dependency run zlib
|
|
|
|
Add_dependency run nspr
|
|
|
|
Add_dependency run dbus-libs
|
|
|
|
Add_dependency run glib
|
|
|
|
Add_dependency run pango
|
|
|
|
Add_dependency run atk
|
|
|
|
Add_dependency run libXt
|
2010-01-22 02:03:18 +01:00
|
|
|
Add_dependency run libXext
|
2010-10-24 11:53:15 +02:00
|
|
|
Add_dependency run gdk-pixbuf
|
2009-12-21 23:07:47 +01:00
|
|
|
Add_dependency run gtk+
|
|
|
|
Add_dependency run alsa-lib
|
|
|
|
Add_dependency run sqlite
|
|
|
|
Add_dependency run libIDL
|
|
|
|
Add_dependency run nss
|
|
|
|
Add_dependency run dbus-glib
|
|
|
|
Add_dependency run startup-notification
|
2010-06-23 10:41:30 +02:00
|
|
|
Add_dependency run pixman
|
2011-04-08 22:23:08 +02:00
|
|
|
Add_dependency run hunspell
|
|
|
|
Add_dependency run libevent
|
|
|
|
Add_dependency run libXext
|
|
|
|
Add_dependency run GConf
|
|
|
|
Add_dependency run libnotify
|
2010-06-23 10:41:30 +02:00
|
|
|
|
2009-12-21 23:07:47 +01:00
|
|
|
Add_dependency build zip
|
|
|
|
Add_dependency build python
|
2011-07-03 17:15:17 +02:00
|
|
|
Add_dependency build flex
|
|
|
|
Add_dependency build yasm
|
2010-01-11 17:18:40 +01:00
|
|
|
Add_dependency build jpeg-devel
|
|
|
|
Add_dependency build libpng-devel
|
2011-04-08 22:23:08 +02:00
|
|
|
Add_dependency build cairo-devel ">=1.10.2_3"
|
2010-01-11 17:18:40 +01:00
|
|
|
Add_dependency build freetype-devel
|
|
|
|
Add_dependency build fontconfig-devel
|
|
|
|
Add_dependency build libXrender-devel
|
|
|
|
Add_dependency build libX11-devel
|
|
|
|
Add_dependency build zlib-devel
|
|
|
|
Add_dependency build nspr-devel
|
|
|
|
Add_dependency build dbus-devel
|
|
|
|
Add_dependency build glib-devel
|
|
|
|
Add_dependency build pango-devel
|
|
|
|
Add_dependency build atk-devel
|
|
|
|
Add_dependency build libXt-devel
|
2010-01-22 02:03:18 +01:00
|
|
|
Add_dependency build libXext-devel
|
2010-10-24 11:53:15 +02:00
|
|
|
Add_dependency build gdk-pixbuf-devel
|
2009-12-21 23:07:47 +01:00
|
|
|
Add_dependency build gtk+-devel
|
2010-06-23 10:41:30 +02:00
|
|
|
Add_dependency build pixman-devel
|
2009-12-21 23:07:47 +01:00
|
|
|
Add_dependency build alsa-lib-devel
|
|
|
|
Add_dependency build sqlite-devel
|
|
|
|
Add_dependency build libIDL-devel
|
|
|
|
Add_dependency build nss-devel
|
|
|
|
Add_dependency build dbus-glib-devel
|
|
|
|
Add_dependency build startup-notification-devel
|
2011-04-08 22:23:08 +02:00
|
|
|
Add_dependency build hunspell-devel
|
|
|
|
Add_dependency build libevent-devel
|
|
|
|
Add_dependency build libXext-devel
|
|
|
|
Add_dependency build GConf-devel
|
|
|
|
Add_dependency build libnotify-devel
|
2011-07-03 17:15:17 +02:00
|
|
|
Add_dependency build wireless_tools-devel
|
2010-05-07 14:23:08 +02:00
|
|
|
|
2011-04-08 22:23:08 +02:00
|
|
|
do_build()
|
2010-05-07 14:23:08 +02:00
|
|
|
{
|
2011-05-25 14:46:41 +02:00
|
|
|
export CXXFLAGS="$XBPS_CXXFLAGS -fpermissive"
|
|
|
|
cp -f ${FILESDIR}/mozconfig .mozconfig
|
|
|
|
if [ -n "$makejobs" ]; then
|
|
|
|
echo "mk_add_options MOZ_MAKE_FLAGS=\"${makejobs}\"" >> .mozconfig
|
|
|
|
fi
|
|
|
|
make -f client.mk build
|
2010-05-07 14:23:08 +02:00
|
|
|
}
|
2010-01-13 15:22:00 +01:00
|
|
|
|
2011-04-08 22:23:08 +02:00
|
|
|
do_install()
|
2010-01-13 15:22:00 +01:00
|
|
|
{
|
2011-04-08 22:23:08 +02:00
|
|
|
make -f client.mk DESTDIR="${DESTDIR}" install
|
2010-01-13 15:22:00 +01:00
|
|
|
# Remove libsqlite3, provided by sqlite.
|
|
|
|
rm -f ${DESTDIR}/usr/lib/${pkgname}-${_xulver}/libsqlite3.so
|
2010-04-13 15:02:40 +02:00
|
|
|
rm -f ${DESTDIR}/usr/lib/pkgconfig/mozilla-nss.pc
|
2011-04-08 22:23:08 +02:00
|
|
|
# Add xulrunner library path to ld.so.conf
|
|
|
|
install -d ${DESTDIR}/etc/ld.so.conf.d
|
|
|
|
echo "/usr/lib/xulrunner-2.0" > \
|
|
|
|
${DESTDIR}/etc/ld.so.conf.d/xulrunner.conf
|
2010-01-13 15:22:00 +01:00
|
|
|
}
|
2011-05-25 14:46:41 +02:00
|
|
|
|
|
|
|
post_stow()
|
|
|
|
{
|
|
|
|
msg_normal "Updating dynamic linker shared cache...\n"
|
|
|
|
ldconfig
|
|
|
|
}
|