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.
9 # IMPORTANT: this spec file requires Autopackage 1.2 or later.
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:
17 RootName: @site.org/appname:$SOFTWAREVERSION
18 DisplayName: wxWidgets-based minimal program
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
26 AutopackageTarget: 1.2
29 PackageFileName: $SHORTNAME-$SOFTWAREVERSION-$PACKAGEVERSION.x86.package
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.*"
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"
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.
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
53 # NB: if your project uses a configure script then you probably want to use
54 # the prepareBuild autopackage API instead:
56 # prepareBuild --disable-debug --enable-unicode --with-wxdir=/some/path/to/wxGTK/2.6.x
63 # NB: if your project uses a configure script then you probably want to use
64 # the unprepareBuild autopackage API instead
72 # Check for dependencies which are dynamically linked to your projects; you don't
73 # need to check for statically linked projects.
75 # Now you need to check for presence of wxGTK libraries; that's done using:
76 # require @wxwidgets.org/wxgtk 26.0
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
85 require @wxwidgets.org/wxgtk 26.0
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.
94 # Put your installation script here
95 installExe bin/minimal
98 # Usually just the following line is enough to uninstall everything