NOCOLOR=1 ipkg ${MIDORI}
fi
+ ipkg -m noac ${NSPR} "--with-mozilla --with-pthreads \
+ $([ $(uname -m) = x86_64 ] && echo --enable-64bit)"
+ ipkg -m noac ${NSS}
ipkg -m noac -l "${FIREFOX}-xulrunner" ${FIREFOX}
ipkg -m noac -l "${FIREFOX}-browser" ${FIREFOX}
fpkg -m gnome ${VALA}
fpkg ${MIDORI} "http://archive.xfce.org/src/apps/midori/$(get_pkg_ver2 ${MIDORI})"
+fpkg -m hv ${NSPR}
+fpkg -m hv ${NSS}
+
fpkg -f "${FIREFOX}.source" ${FIREFOX} \
"http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$(get_pkg_ver ${FIREFOX})/source"
--- /dev/null
+#!/bin/bash
+
+hvbuild()
+{
+ cd ${LFS_TMP}/${PACKAGE}/nss
+
+ # This package does not support parallel build
+ make BUILD_OPT=1 \
+ NSPR_INCLUDE_DIR=/usr/include/nspr \
+ USE_SYSTEM_ZLIB=1 \
+ ZLIB_LIBS=-lz \
+ $([ $(uname -m) = x86_64 ] && echo USE_64=1) \
+ $([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1)
+}
+
+hvbuild_post()
+{
+ cd ${LFS_TMP}/${PACKAGE}/dist
+
+ install -v -m755 Linux*/lib/*.so /usr/lib
+ install -v -m644 Linux*/lib/{*.chk,libcrmf.a} /usr/lib
+ install -v -m755 -d /usr/include/nss
+ cp -v -RL {public,private}/nss/* /usr/include/nss
+ chmod 644 /usr/include/nss/*
+ install -v -m755 Linux*/bin/{certutil,nss-config,pk12util} /usr/bin
+ install -v -m644 Linux*/lib/pkgconfig/nss.pc /usr/lib/pkgconfig
+}