talimat 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Description: James Clark'ın Belge Stili Semantiği ve Şartname Dilinin uygulanması
  2. # URL: http://openjade.sourceforge.net/
  3. # Packager: milisarge
  4. # Depends on: opensp
  5. name=openjade
  6. version=1.3.2
  7. release=1
  8. source=(http://downloads.sourceforge.net/openjade/openjade-$version.tar.gz
  9. http://www.linuxfromscratch.org/patches/blfs/7.5/openjade-1.3.2-gcc_4.6-1.patch)
  10. build(){
  11. cd $name-$version
  12. # fix a compilation problem identified in gcc-4.6 and later
  13. patch -Np1 -i ../openjade-1.3.2-gcc_4.6-1.patch
  14. # fix a compilation problem with perl-5.16 and later
  15. sed -i -e '/getopts/{N;s#&G#g#;s#do .getopts.pl.;##;}' \
  16. -e '/use POSIX/ause Getopt::Std;' msggen.pl
  17. ./configure --prefix=/usr \
  18. --mandir=/usr/share/man \
  19. --enable-http \
  20. --disable-static \
  21. --enable-default-catalog=/etc/sgml/catalog \
  22. --enable-default-search-path=/usr/share/sgml \
  23. --datadir=/usr/share/sgml/openjade-$version
  24. make
  25. make DESTDIR=$PKG install
  26. make DESTDIR=$PKG/usr/share/man install-man
  27. # create the Jade equivalents of OpenJade executables and libraries
  28. cd $PKG/usr/bin
  29. ln -v -sf openjade jade
  30. cd $PKG/usr/lib
  31. ln -v -sf libogrove.so libgrove.so
  32. ln -v -sf libospgrove.so libspgrove.so
  33. ln -v -sf libostyle.so libstyle.so
  34. cd $SRC/$name-$version
  35. install -v -m644 dsssl/catalog $PKG/usr/share/sgml/openjade-$version
  36. install -v -m644 dsssl/*.{dtd,dsl,sgm} \
  37. $PKG/usr/share/sgml/openjade-$version
  38. }
  39. # NuTyX Pkgfile (http://nutyx.org)