wxgtk.apspec.in 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # -*-shell-script-*-
  2. #
  3. # NOTE1:
  4. # This apspec provides wxGTK locales and compiled libraries only;
  5. # it does not provide headers nor wx-config since this package is not
  6. # targeted to developers but rather end-users of wx-based applications.
  7. # Also, making a -devel autopackage wouldn't be very useful given the
  8. # big number of possible configurations for building wxWidgets...
  9. #
  10. # NOTE2:
  11. # This wxGTK autopackage contains wx libraries built in
  12. # Unicode, shared, multilib, release mode.
  13. # This is because:
  14. # 1) UNICODE is better than ansi
  15. # 2) Autopackages of a library only have sense when shipping with SHARED libraries
  16. # 3) MULTILIB builds of wxWidgets are the default and suggested build mode
  17. # 4) Released applications should use RELEASE builds of wxWidgets not debug ones!
  18. #
  19. [Meta]
  20. RootName: @wxwidgets.org/wxgtk:$SOFTWAREVERSION
  21. DisplayName: wxGTK port of wxWidgets
  22. ShortName: wxgtk
  23. Maintainer: Francesco Montorsi <frm@users.sourceforge.net>
  24. Packager: Francesco Montorsi <frm@users.sourceforge.net>
  25. Summary: Library for cross-platform GUI programming (gtk2-unicode-release port)
  26. URL: http://www.wxwidgets.org/
  27. Licence: wxWindows licence
  28. SoftwareVersion: @PACKAGE_VERSION@
  29. PackageVersion: 1
  30. AutopackageTarget: 1.2
  31. Type: Library
  32. Revision: 1
  33. Compression: bzip2
  34. PackageFileName: $SHORTNAME-$SOFTWAREVERSION-$PACKAGEVERSION.x86.package
  35. # The interface of this port is majorminor.release; for more info about the interface version
  36. # look at the wxGTK skeleton.
  37. # NOTE: there *must* be no dot between the major and minor digits.
  38. InterfaceVersion: `getMajor $SOFTWAREVERSION``getMinor $SOFTWAREVERSION`.`getMicro $SOFTWAREVERSION`
  39. [BuildPrepare]
  40. export APBUILD_STATIC="tiff expat"
  41. export APBUILD_BOGUS_DEPS="Xi Xrandr Xcursor Xrender Xinerama" # not really needed
  42. # For info why we give --enable-unicode --enable-shared --disable-debug options see note2 at beginning
  43. # of this file.
  44. # The --disable-dependency-tracking --disable-precomp-headers are because these things confuse apgcc.
  45. # The --with-libtiff=builtin --with-expat=builtin are because we want wxWidgets not to use the system's
  46. # version of these libraries: tiff has recently broken its ABI and must be linked statically, expat is
  47. # not always available.
  48. prepareBuild --enable-unicode --enable-shared --disable-debug --with-gtk --disable-dependency-tracking --disable-precomp-headers --with-opengl --with-gtk --with-libtiff=builtin --with-expat=builtin
  49. [BuildUnprepare]
  50. unprepareBuild
  51. [Imports]
  52. # remove stuff useless to final binary users: headers, wxwin.m4 and bakefile presets
  53. rm -rf include share/aclocal share/bakefile
  54. # this imports also some symlink which won't be used...
  55. # anyway symlinks give no problems since they won't be installed so it's not necessary
  56. # to complicate this section to exclude them...
  57. bash
  58. echo '*' | import
  59. [Prepare]
  60. # GTK+2 is the only requirement
  61. require @gtk.org/gtk 2.0
  62. [Install]
  63. # install wxrc-$SOFTWAREVERSION and its symbolic link
  64. installExe bin/wxrc*
  65. # install shared libraries (not symlinks - they are recreated by installLib!)
  66. installLib lib/*.so.*.*.*
  67. # install wx's things which goes in lib\ but are not libraries
  68. copyFiles lib/wx/* "$PREFIX/lib/wx"
  69. # install locales
  70. installLocale share/locale
  71. [Uninstall]
  72. uninstallFromLog