talimat 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Tanım: Görüntü işleme sistemi
  2. # URL: http://www.graphicsmagick.org/
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: perl jasper libpng libwmf libxml2 libtiff libwebp freetype xorg-libxext xorg-libsm lcms2
  5. # Grup: kütüphane
  6. isim=graphicsmagick
  7. surum=1.3.30
  8. devir=1
  9. kaynak=(https://downloads.sourceforge.net/project/${isim}/${isim}/${surum}/GraphicsMagick-${surum}.tar.xz)
  10. derle() {
  11. cd "${SRC}/GraphicsMagick-${surum}"
  12. sed -e "s:freetype_config='':freetype_config='/usr/bin/pkg-config freetype2':g" -i configure
  13. ./configure \
  14. --prefix=/usr \
  15. --enable-shared \
  16. --with-modules \
  17. --with-perl \
  18. --with-gs-font-dir=/usr/share/fonts/Type1 \
  19. --with-quantum-depth=16 \
  20. --with-threads
  21. make
  22. make DESTDIR="${PKG}" install
  23. # Install MIT license
  24. install -Dm644 "Copyright.txt" "${PKG}/usr/share/licenses/${isim}/Copyright.txt"
  25. cd PerlMagick
  26. sed -i -e "s:'LDDLFLAGS' => \"\(.*\)\":'LDDLFLAGS' => \"-L${PKG}/usr/lib \1\":" Makefile.PL
  27. perl Makefile.PL INSTALLDIRS=vendor PREFIX=/usr DESTDIR="${PKG}"
  28. sed -i -e "s/LDLOADLIBS =/LDLOADLIBS = -lGraphicsMagick/" Makefile
  29. make
  30. make install
  31. rm -rf $PKG/usr/share/doc
  32. }