2009-01-20 11:42:00 +01:00
|
|
|
# Copyright 2008 Bernd Steinhauser <berniyh@exherbo.org>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
require multilib
|
|
|
|
|
2009-06-14 12:53:57 +02:00
|
|
|
export_exlib_phases src_unpack src_prepare
|
|
|
|
|
|
|
|
mozilla_src_unpack() {
|
|
|
|
default
|
|
|
|
mkdir -p "${WORK}" || die "creating ${WORK} failed"
|
|
|
|
}
|
2009-01-20 11:42:00 +01:00
|
|
|
|
|
|
|
mozilla_src_prepare() {
|
|
|
|
default
|
|
|
|
|
|
|
|
sed \
|
|
|
|
-e "/^installdir/ c installdir = /usr/$(get_libdir)/${PN}" \
|
|
|
|
-e "/^includedir/ c includedir = /usr/include/${PN}" \
|
|
|
|
-e "/^idldir/ c idldir = /usr/share/idl/${PN}" \
|
|
|
|
-e "/^sdkdir/ c sdkdir = /usr/$(get_libdir)/${PN}-devel" \
|
|
|
|
-i "${WORKBASE}"/mozilla/config/autoconf.mk.in \
|
|
|
|
|| die "sed failed."
|
|
|
|
}
|
|
|
|
|