{
export GS_FONTS_PATH="${HV_FONTS_PATH}/ghostscript"
- cd ${LFS_TMP}/${PACKAGE}
+ cd ${SRC_DIR}
- # To use the system-installed version of JasPer:
- rm -rf jasper
-
- # To use the system-installed copies of libjpeg and libpng:
- rm -rf jpeg
- rm -rf libpng
+ # To use the system-installed version of librairies:
+ rm -rf jasper tiff openjpeg
+ rm -rf expat freetype lcms2 jpeg libpng zlib
- # To use the system-installed copy of libtiff:
- rm -rf tiff
-
- CONFIGURE_OPTS=" \
- ${CONFIGURE_OPTS} \
+ CONFIGURE_OPTS+=" \
--enable-dynamic \
+ --disable-compile-inits \
--with-system-libtiff \
--with-fontpath=${GS_FONTS_PATH}"
}
decompress_package ${GHOSTSCRIPT_FONTS_STD} ${GS_FONTS_PATH} 1
decompress_package ${GHOSTSCRIPT_FONTS_OTHER} ${GS_FONTS_PATH} 1
chown -v -R root:root ${GS_FONTS_PATH}
-
- if ! grep -q "${GS_FONTS_PATH}" /etc/fonts/local.conf; then
- # Adding Ghostscript fonts directory to local configuration file
- sed -i -e "s!\(</fontconfig>\)! <dir>${GS_FONTS_PATH}</dir>\n\1!" \
- /etc/fonts/local.conf
- fi
-
- # Updating cache database.
+
+ # Updating font information cache.
fc-cache -f
unset GS_FONTS_PATH