[cairo] Win32 zipfile distribution construction scripts for libpixman and cairo

Tor Lillqvist tml at iki.fi
Fri Aug 5 04:15:47 PDT 2005


I don't know what your policy on including distribution-specific files
in libpixman and cairo is, but in any case, here are diffs that adds
to each a script that builds Win32 zipfile distributions.

--tml

libpixman:

Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/libpixman/ChangeLog,v
retrieving revision 1.94
diff -u -0 -r1.94 ChangeLog
--- ChangeLog	2 Aug 2005 01:01:24 -0000	1.94
+++ ChangeLog	5 Aug 2005 11:10:33 -0000
@@ -0,0 +1,10 @@
+2005-08-05  Tor Lillqvist  <tml at novell.com>
+
+	* libpixman-zip.in: New file. A script used to build a zipfile
+	distribution of libpixman for Win32.
+
+	* configure.in: Expand lixpixman-zip. AC_SUBST a few more
+	variables used in libpixman-zip.
+
+	* Makefile.am (EXTRA_DIST): Add lixpixman-zip.in.
+
Index: configure.in
===================================================================
RCS file: /cvs/cairo/libpixman/configure.in,v
retrieving revision 1.21
diff -u -0 -r1.21 configure.in
--- configure.in	28 Jul 2005 21:58:25 -0000	1.21
+++ configure.in	5 Aug 2005 11:10:33 -0000
@@ -10,0 +11 @@
+AC_SUBST(LIBPIXMAN_VERSION)
@@ -28,0 +30,3 @@
+LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
+AC_SUBST(LT_CURRENT_MINUS_AGE)
+
@@ -56,0 +61 @@
+libpixman-zip
Index: Makefile.am
===================================================================
RCS file: /cvs/cairo/libpixman/Makefile.am,v
retrieving revision 1.5
diff -u -0 -r1.5 Makefile.am
--- Makefile.am	21 Jan 2005 18:54:51 -0000	1.5
+++ Makefile.am	5 Aug 2005 11:10:33 -0000
@@ -8 +8,2 @@
-	libpixman.pc.in
+	libpixman.pc.in \
+	libpixman-zip.in
Index: libpixman-zip.in
===================================================================
RCS file: libpixman-zip.in
diff -N libpixman-zip.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ libpixman-zip.in	5 Aug 2005 11:10:33 -0000
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# Build zipfiles for libpixman on Win32: separate runtime and
+# developer packages
+
+ZIP=/tmp/libpixman- at LIBPIXMAN_VERSION@.zip
+DEVZIP=/tmp/libpixman-dev- at LIBPIXMAN_VERSION@.zip
+cd @prefix@
+
+rm $ZIP
+zip $ZIP -@ <<EOF
+bin/libpixman- at LT_CURRENT_MINUS_AGE@.dll
+EOF
+
+rm $DEVZIP
+zip -r $DEVZIP -@ <<EOF
+include/pixman.h
+lib/libpixman.dll.a
+lib/pixman.lib
+lib/pkgconfig/libpixman.pc
+EOF


cairo:

Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo/ChangeLog,v
retrieving revision 1.814
diff -u -0 -r1.814 ChangeLog
--- ChangeLog	5 Aug 2005 06:10:26 -0000	1.814
+++ ChangeLog	5 Aug 2005 11:08:38 -0000
@@ -0,0 +1,10 @@
+2005-08-05  Tor Lillqvist  <tml at novell.com>
+
+	* cairo-zip.in: New file. A script used to build a zipfile
+	distribution of cairo for Win32.
+
+	* configure.in: Expand cairo-zip. AC_SUBST a few more variables
+	used in cairo-zip.
+
+	* Makefile.am (EXTRA_DIST): Add cairo-zip.in.
+
Index: configure.in
===================================================================
RCS file: /cvs/cairo/cairo/configure.in,v
retrieving revision 1.118
diff -u -0 -r1.118 configure.in
--- configure.in	3 Aug 2005 17:32:50 -0000	1.118
+++ configure.in	5 Aug 2005 11:08:38 -0000
@@ -8,0 +9 @@
+AC_SUBST(CAIRO_VERSION)
@@ -26,0 +28,3 @@
+LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
+AC_SUBST(LT_CURRENT_MINUS_AGE)
+
@@ -429,0 +434 @@
+cairo-zip
Index: Makefile.am
===================================================================
RCS file: /cvs/cairo/cairo/Makefile.am,v
retrieving revision 1.13
diff -u -0 -r1.13 Makefile.am
--- Makefile.am	1 Aug 2005 20:33:47 -0000	1.13
+++ Makefile.am	5 Aug 2005 11:08:38 -0000
@@ -13 +13,2 @@
-	cairo.pc.in
+	cairo.pc.in \
+	cairo-zip.in
Index: cairo-zip.in
===================================================================
RCS file: cairo-zip.in
diff -N cairo-zip.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ cairo-zip.in	5 Aug 2005 11:08:38 -0000
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# Build zipfiles for cairo on Win32: separate runtime and developer
+# packages
+
+ZIP=/tmp/cairo- at CAIRO_VERSION@.zip
+DEVZIP=/tmp/cairo-dev- at CAIRO_VERSION@.zip
+cd @prefix@
+
+rm $ZIP
+zip $ZIP -@ <<EOF
+bin/libcairo- at LT_CURRENT_MINUS_AGE@.dll
+EOF
+
+rm $DEVZIP
+zip -r $DEVZIP -@ <<EOF
+include/cairo
+lib/libcairo.dll.a
+lib/cairo.lib
+lib/pkgconfig/cairo.pc
+EOF




More information about the cairo mailing list