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