[cairo] Cairo Autopackage

Aaron Spike aaron at ekips.org
Tue Nov 28 15:26:36 PST 2006


The attached patch contains an Autopackage build file for cairo.

Aaron Spike
-------------- next part --------------
Add an apspec file for building Autopackages

---
commit 313b4d66d985566b57fdc6a5a8b55496ae5e87d1
tree dd353da2b02ea36eb510a552f4efedc70af85ff0
parent 9c3b161c7067d8eda7f8d1cfb36ca285e4e7fa35
author Aaron Spike <aaron at ekips.org> Tue, 28 Nov 2006 17:02:04 -0600
committer Aaron Spike <aaron at ekips.org> Tue, 28 Nov 2006 17:02:04 -0600

 autopackage/default.apspec.in |   67 +++++++++++++++++++++++++++++++++++++++++
 configure.in                  |    3 ++
 2 files changed, 70 insertions(+), 0 deletions(-)

diff --git a/autopackage/default.apspec.in b/autopackage/default.apspec.in
new file mode 100644
index 0000000..2d21f4a
--- /dev/null
+++ b/autopackage/default.apspec.in
@@ -0,0 +1,67 @@
+# -*-shell-script-*-
+
+[Meta]
+RootName: @cairographics.org/cairo:$SOFTWAREVERSION
+DisplayName: Cairo Rendering Library
+ShortName: cairo
+#Maintainer: John Smith <smith at mysite.org>
+#Packager: John Smith <smith at mysite.org>
+Summary: Cairo is an anti-aliased vector-based rendering for X
+URL: http://www.cairographics.org
+License: MIT License
+SoftwareVersion: @VERSION@
+#Repository: http://www.sample-domain.com/autopackage/cairo/cairo/cairo.xml
+
+# If you change the autopackage but not the software itself,
+# increment this number.
+# PackageVersion: 2
+
+AutopackageTarget: 1.2
+
+# Only uncomment InterfaceVersion if your package exposes interfaces
+# to other software, for instance if it includes DSOs or python/perl
+# modules. See the developer guide for more info, or ask on
+# autopackage-dev if you aren't sure about interface versioning.
+#
+InterfaceVersion: @LT_CURRENT_MINUS_AGE at .@LT_AGE at .@LT_REVISION@
+
+[BuildPrepare]
+# For ./configure based systems this is a good default
+prepareBuild
+
+[BuildUnprepare]
+unprepareBuild
+
+[Imports]
+# rm -r include
+rm libs/*.la
+
+echo '*' | import
+
+
+[Prepare]
+# Dependency checking
+
+require @freetype.org/freetype 6.3 # that is sv 2.1.4
+require @zlib.org/zlib 1.0
+require @libpng.org/libpng 3.0
+require @xfree86.org/xlib 6.0
+
+# The user may have already installed the program from an RPM.
+# Let's try and uninstall it first. We only need one call if 3rd party
+# packages have split the program up into multiple packages.
+
+removeOwningPackage $PREFIX/lib/libcairo.a
+removeOwningPackage $PREFIX/lib/libcairo.so.`getMajor $INTERFACEVERSION`
+
+[Install]
+# Put your installation script here. See the quickstart guide on
+# the website for an API cheat-sheet
+installLib lib/libcairo.so.*
+copyFile --silent lib/libcairo.a "$PREFIX/lib/libcairo.a"
+installPkgConfig lib/pkgconfig/*
+copyFiles include/cairo "$PREFIX/include"
+
+[Uninstall]
+# Usually just the following line is enough to uninstall everything
+uninstallFromLog
diff --git a/configure.in b/configure.in
index a825b98..b38afaf 100644
--- a/configure.in
+++ b/configure.in
@@ -40,6 +40,8 @@ AC_SUBST(VERSION_INFO)
 
 LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
 AC_SUBST(LT_CURRENT_MINUS_AGE)
+AC_SUBST(LT_AGE)
+AC_SUBST(LT_REVISION)
 
 CAIRO_VERSION_MAJOR=cairo_version_major()
 CAIRO_VERSION_MINOR=cairo_version_minor()
@@ -834,6 +836,7 @@ doc/Makefile
 doc/public/Makefile
 doc/public/version.xml
 src/cairo.pc
+autopackage/default.apspec
 ])
 
 AC_OUTPUT


More information about the cairo mailing list