76 |
mpatch ${PNAME}-${PVER}-respect-gsc-ldflags.patch || die |
mpatch ${PNAME}-${PVER}-respect-gsc-ldflags.patch || die |
77 |
|
|
78 |
# search path fix |
# search path fix |
79 |
sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \ |
sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVER:0:4}/$(mlibdir):" \ |
|
-e 's:$(gsdir)/fonts:/usr/share/fonts/default/ghostscript/:' \ |
|
|
-e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \ |
|
|
-e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \ |
|
|
-e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \ |
|
|
base/Makefile.in base/*.mak || die "sed failed" |
|
|
|
|
|
|
|
|
# search path fix |
|
|
sed -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVER:0:4}/$(mlibdir):" \ |
|
80 |
-e 's:$(gsdir)/fonts:/usr/share/ghostscript/fonts:' \ |
-e 's:$(gsdir)/fonts:/usr/share/ghostscript/fonts:' \ |
81 |
base/Makefile.in base/*.mak || die |
base/Makefile.in base/*.mak || die |
82 |
|
|
83 |
# fix doc pathes |
# fix doc pathes |
84 |
sed -i "s:exdir=.*:exdir=/usr/share/doc/${PNAME}-${PVER}/examples:" \ |
sed -i -e "s:exdir=.*:exdir=/usr/share/doc/${PNAME}-${PVER}/examples:" \ |
85 |
-e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \ |
-e "s:docdir=.*:docdir=/usr/share/doc/${PNAME}-${PVER}/html:" \ |
86 |
-e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \ |
-e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PNAME}-${PVER}/html:" \ |
87 |
base/Makefile.in base/*.mak || die |
base/Makefile.in base/*.mak || die |
88 |
|
|
89 |
# regen makefiles |
# regen makefiles |