]> git.saurik.com Git - wxWidgets.git/blame - distrib/autopackage/wxgtk.apspec.in
Copy and paste error
[wxWidgets.git] / distrib / autopackage / wxgtk.apspec.in
CommitLineData
f8b35b7b
VZ
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]
23RootName: @wxwidgets.org/wxgtk:$SOFTWAREVERSION
24DisplayName: wxGTK port of wxWidgets
25ShortName: wxgtk
26Maintainer: Francesco Montorsi <frm@users.sourceforge.net>
27Packager: Francesco Montorsi <frm@users.sourceforge.net>
28Summary: Library for cross-platform GUI programming (gtk2-unicode-release port)
29URL: http://www.wxwidgets.org/
30License: wxWidgets license
31SoftwareVersion: @PACKAGE_VERSION@
32PackageVersion: 1
33AutopackageTarget: 1.2
34Type: Library
35Revision: 1
36Compression: bzip2
37PackageFileName: $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.
42InterfaceVersion: `getMajor $SOFTWAREVERSION``getMinor $SOFTWAREVERSION`.`getMicro $SOFTWAREVERSION`
43
44
45[BuildPrepare]
46export APBUILD_STATIC="tiff expat"
47export 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.
55prepareBuild --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]
58unprepareBuild
59
60
61[Imports]
62
63# remove stuff useless to final binary users: headers, wxwin.m4 and bakefile presets
64rm -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...
69bash
70echo '*' | import
71
72
73[Prepare]
74# GTK+2 is the only requirement
75require @gtk.org/gtk 2.0
76
77
78[Install]
79# install wxrc-$SOFTWAREVERSION and its symbolic link
80installExe bin/wxrc*
81
82# install shared libraries (not symlinks - they are recreated by installLib!)
83installLib lib/*.so.*.*.*
84
85# install wx's things which goes in lib\ but are not libraries
86copyFiles lib/wx/* "$PREFIX/lib/wx"
87
88# install locales
89installLocale share/locale
90
91
92[Uninstall]
93uninstallFromLog