]> git.saurik.com Git - wxWidgets.git/blob - distrib/autopackage/sample/autopackage/default.apspec
5d152cecd7baf23d5680dd2c250bb8c1c718dcc9
[wxWidgets.git] / distrib / autopackage / sample / autopackage / default.apspec
1 # -*-shell-script-*-
2
3 # RCS-ID: $Id$
4 # Author: Francesco Montorsi <frm@users.sourceforge.net>
5 # Purpose: A minimal Autopackage SPEC file which can be used as template
6 # for creating autopackages of wxWidgets-based applications.
7 # See http://www.autopackage.org for more information about Autopackage.
8 #
9 # IMPORTANT: this spec file requires Autopackage 1.2 or later.
10
11
12 # Notes about [Meta] section:
13 # - if your project uses configure, you can use the @PACKAGE_VERSION@ string instead
14 # of a fixed value for the "SoftwareVersion:" key:
15
16 [Meta]
17 RootName: @site.org/appname:$SOFTWAREVERSION
18 DisplayName: wxWidgets-based minimal program
19 ShortName: wxminimal
20 Maintainer: The wxWidgets Developers <devel@nowhere.com>
21 Packager: Anonymous <anonymous@nowhere.com>
22 Summary: wxMinimal is an example minimal program based on wxGTK.
23 URL: http://www.site.org/
24 Licence: wxWindows licence
25 SoftwareVersion: 1.0
26 AutopackageTarget: 1.2
27 Revision: 1
28 PackageVersion: 1
29 PackageFileName: $SHORTNAME-$SOFTWAREVERSION-$PACKAGEVERSION.x86.package
30
31
32 [BuildPrepare]
33 # if you need to link your executable with some static libraries, whose
34 # order to the linker is important, then you should add a regexp matching
35 # the name of that libraries using this env var:
36 export APBUILD_RESOLVE_LIBPATH=".*mywxbasedlib.*"
37
38 # libraries used by wxWidgets like tiff and expat should always be linked
39 # statically (as they broke ABI recently - 9/2006)...
40 export APBUILD_STATIC="tiff expat"
41
42 # build in release mode against a stable release of wxGTK.
43 # The wxGTK builds present in linux distributions are always compiled in
44 # multilib, shared, unicode, release mode.
45 # Thus your project needs to be compiled in release, unicode mode, too.
46 #
47
48 # run the commands to build your package using apbuild's tool instead of
49 # the standard GCC compiler:
50 make CXX="apg++" CPP="apgcc"
51 make install prefix=$build_root
52
53 # NB: if your project uses a configure script then you probably want to use
54 # the prepareBuild autopackage API instead:
55 #
56 # prepareBuild --disable-debug --enable-unicode --with-wxdir=/some/path/to/wxGTK/2.6.x
57 #
58
59
60 [BuildUnprepare]
61 make clean
62
63 # NB: if your project uses a configure script then you probably want to use
64 # the unprepareBuild autopackage API instead
65
66
67 [Imports]
68 echo '*' | import
69
70
71 [Prepare]
72 # Check for dependencies which are dynamically linked to your projects; you don't
73 # need to check for statically linked projects.
74
75 # Now you need to check for presence of wxGTK libraries; that's done using:
76 # require @wxwidgets.org/wxgtk 26.0
77 #
78 # NOTE: the interface version that you specify must be in form A.B where A is
79 # the major##minor version of wxGTK. This is because binary compatibility
80 # of wxGTK libraries are reserved only among different releases of the
81 # same major and minor versions.
82 # So that if you need at least wxGTK 2.6.3, you should e.g. use the
83 # "require @wxwidgets.org/wxgtk 26.3" command
84 #
85 require @wxwidgets.org/wxgtk 26.0
86
87 # wxGTK requires GTK+ 2.0 but you don't need to add the:
88 # require @gtk.org/gtk 2.0
89 # check to your apspec - if wxGTK is installed, also GTK is.
90
91
92
93 [Install]
94 # Put your installation script here
95 installExe bin/minimal
96
97 [Uninstall]
98 # Usually just the following line is enough to uninstall everything
99 uninstallFromLog