X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage5%2Fpkg%2Fghostscript;h=9ab008c598ee8abb17c06a3e3afbb19cec692333;hb=44d3c1f9f0e8fc945206020c4bd7a15c5a457f55;hp=5ff4e2435a2b6b454f18108943a2b723f8dce52d;hpb=564ec1bbb321286571c30da20b81620c33b18e6f;p=hvlinux.git diff --git a/stage5/pkg/ghostscript b/stage5/pkg/ghostscript index 5ff4e24..9ab008c 100644 --- a/stage5/pkg/ghostscript +++ b/stage5/pkg/ghostscript @@ -4,54 +4,40 @@ hvconfig_pre() { 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}" } -hvbuil() +hvbuild() { make make install docdir=/usr/share/doc/${PACKAGE} } -hvbuil_post() +hvbuild_post() { # To install the shared library libgs.so (needed by libspectre) make so make soinstall docdir=/usr/share/doc/${PACKAGE} install -v -m644 base/*.h /usr/include/ghostscript - ln -v -s ghostscript /usr/include/ps + ln -svf ghostscript /usr/include/ps # Unpack all the fonts to ${GS_FONTS_PATH} install -v -m755 -d ${GS_FONTS_PATH} - decompress_package ${GHOSTSCRIPT_FONTS_STD} - decompress_package ${GHOSTSCRIPT_FONTS_OTHER} - mv ${LFS_TMP}/fonts/* ${GS_FONTS_PATH} - rmdir ${LFS_TMP}/fonts + 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!\(\)! ${GS_FONTS_PATH}\n\1!" \ - /etc/fonts/local.conf - fi - - # Updating cache database. + + # Updating font information cache. fc-cache -f unset GS_FONTS_PATH