talimat 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Tanım: GameSWF temmelli GNU SWF Player
  2. # URL: http://www.gnu.org/software/gnash/
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: giflib sdl libpng xorg-fontconfig cairo ffmpeg jemalloc boost gtk2 hicolor-icon-theme desktop-file-utils gconf gtkglext agg xorg-mesa boost libjpeg-turbo xorg-glu xorg-fontconfig openldap
  5. # Grup: medya
  6. isim=gnash
  7. surum=0.8.11
  8. devir=1
  9. kaynak=(http://git.savannah.gnu.org/cgit/gnash.git/snapshot/gnash-8a11e60585db4ed6bc4eafadfbd9b3123ced45d9.tar.gz
  10. jemalloc_gnash.patch)
  11. derle() {
  12. mv gnash-8a* gnash
  13. cd $isim
  14. chmod +x autogen.sh
  15. ./autogen.sh
  16. patch -Np1 -i "${SRC}/jemalloc_gnash.patch"
  17. sed -i 's#${JEMALLOC_CONFIG} --cxxflags#${JEMALLOC_CONFIG} --cflags#g' configure
  18. ./configure \
  19. --prefix=/usr \
  20. --sysconfdir=/etc \
  21. --with-plugins-install=system \
  22. --enable-gui=sdl,gtk \
  23. --disable-npapi \
  24. --enable-media=ffmpeg \
  25. --enable-renderer=all \
  26. --enable-device=x11
  27. sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
  28. make
  29. make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$PKG" install install-plugin
  30. install -m755 -d "$PKG/usr/share/gconf/schemas"
  31. gconf-merge-schema "$PKG/usr/share/gconf/schemas/gnash.schemas" --domain gnash \
  32. "$PKG"/usr/share/applications/*.schemas
  33. rm -f "$PKG"/usr/share/applications/*.schemas
  34. }