]> git.saurik.com Git - wxWidgets.git/commitdiff
added files / made changes to enable building Debian releases from cvs
authorRon Lee <ron@debian.org>
Wed, 16 Feb 2000 20:47:08 +0000 (20:47 +0000)
committerRon Lee <ron@debian.org>
Wed, 16 Feb 2000 20:47:08 +0000 (20:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 files changed:
Makefile.in
debian/README.Debian [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/control.in [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/libwxgtk-dev.dirs [new file with mode: 0644]
debian/libwxgtk-dev.docs [new file with mode: 0644]
debian/libwxgtk-dev.files [new file with mode: 0644]
debian/libwxgtk.dirs [new file with mode: 0644]
debian/libwxgtk.docs [new file with mode: 0644]
debian/libwxgtk.files [new file with mode: 0644]
debian/libwxgtk.postinst [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/wx-config.1 [new file with mode: 0644]
make-deb [new file with mode: 0755]

index 76052feecd5434cae51c5d077bb0c55a7930f2cb..0cdf812619e78847ea848700a960592a81b094cc 100644 (file)
@@ -1022,6 +1022,25 @@ MISC_DIST: ALL_GUI_DIST
        mkdir $(DISTDIR)/misc/gs_afm
        cp $(MISCDIR)/gs_afm/*.afm  $(DISTDIR)/misc/gs_afm
 
+MANUAL_DIST:
+       mkdir $(DISTDIR)/docs
+       mkdir $(DISTDIR)/docs/latex
+       mkdir $(DISTDIR)/docs/latex/wx
+       cp $(DOCDIR)/latex/wx/*.tex $(DISTDIR)/docs/latex/wx
+       cp $(DOCDIR)/latex/wx/*.gif $(DISTDIR)/docs/latex/wx
+       cp $(DOCDIR)/latex/wx/*.ini $(DISTDIR)/docs/latex/wx
+       cp $(DOCDIR)/latex/wx/*.bib $(DISTDIR)/docs/latex/wx
+       cp $(DOCDIR)/latex/wx/*.sty $(DISTDIR)/docs/latex/wx
+
+       -mkdir $(DISTDIR)/utils
+       mkdir $(DISTDIR)/utils/tex2rtf
+       mkdir $(DISTDIR)/utils/tex2rtf/src
+       cp $(UTILSDIR)/tex2rtf/*.in $(DISTDIR)/utils/tex2rtf
+       cp $(UTILSDIR)/tex2rtf/src/*.h $(DISTDIR)/utils/tex2rtf/src
+       cp $(UTILSDIR)/tex2rtf/src/*.in $(DISTDIR)/utils/tex2rtf/src
+       cp $(UTILSDIR)/tex2rtf/src/*.cpp $(DISTDIR)/utils/tex2rtf/src
+       cp $(UTILSDIR)/tex2rtf/src/tex2rtf.* $(DISTDIR)/utils/tex2rtf/src
+
 distclean:
        $(RM) -r _dist_dir
 
@@ -1038,6 +1057,15 @@ dist: @GUIDIST@
        mv wxDemos demos; \
        fi
 
+debian-dist: GTK_DIST DEMOS_DIST UTILS_DIST MISC_DIST MANUAL_DIST
+       mkdir $(DISTDIR)/debian
+       cp $(WXDIR)/debian/* $(DISTDIR)/debian
+       cp $(DOCDIR)/licence.txt $(DISTDIR)/docs
+       cp $(DOCDIR)/licendoc.txt $(DISTDIR)/docs
+       cp $(DOCDIR)/preamble.txt $(DISTDIR)/docs
+       rm -rf $(WXDIR)/../wxwindows-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)
+       mv $(DISTDIR) $(WXDIR)/../wxwindows-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)
+
 clean:
        $(RM) *.o
        $(RM) *.d
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644 (file)
index 0000000..a2597e5
--- /dev/null
@@ -0,0 +1,10 @@
+wxwindows for Debian
+----------------------
+
+The following packages are built from the wxWindows CVS source.
+
+libwxgtk2.1    wxGTK shared library
+libwxgtk-dev   Headers and static lib for building wxGTK apps
+
+
+ -- Ron Lee <ron@debian.org>, Sun, 13 Feb 2000 18:40:00 +1030
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..c099b1d
--- /dev/null
@@ -0,0 +1,9 @@
+wxwindows (2.1.13) unstable; urgency=low
+
+  * Repackaged to build from cvs.
+
+ -- Ron Lee <ron@debian.org>  Sun, 13 Feb 2000 18:40:00 +1030
+
+Local variables:
+mode: debian-changelog
+End:
diff --git a/debian/control.in b/debian/control.in
new file mode 100644 (file)
index 0000000..833884c
--- /dev/null
@@ -0,0 +1,35 @@
+Source: wxwindows
+Section: libs
+Priority: optional
+Build-Depends: debhelper, libgtk1.2-dev, flex, bison
+Maintainer: Ron Lee <ron@debian.org>
+Standards-Version: 3.1.1
+
+Package: libwxgtk=V
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}
+Description: wxWindows Cross-platform C++ GUI toolkit (GTK+ runtime)
+ wxWindows is a class library for C++ providing GUI (Graphical User
+ Interface) and other facilities on more than one platform.  Version 2.1
+ currently supports subsets of GTK+, Motif, and MS Windows.
+ .
+ This package provides the shared libraries needed to run programs linked
+ against wxWindows.
+
+Package: libwxgtk=V-dev
+Architecture: any
+Section: devel
+Depends: libwxgtk=V (= ${Source-Version}), libc6-dev
+Suggests: libstdc++-dev, gettext
+Conflicts: libwxgtk-dev
+Replaces: libwxgtk-dev
+Provides: libwxgtk-dev
+Description: wxWindows Cross-platform C++ GUI toolkit (GTK+ development)
+ wxWindows is a class library for C++ providing GUI (Graphical User
+ Interface) and other facilities on more than one platform.  Version 2.1
+ currently supports subsets of GTK+, Motif, and MS Windows.
+ .
+ This package provides files needed to compile wxWindows programs.  It
+ includes header files and static libraries.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..e46773d
--- /dev/null
@@ -0,0 +1,18 @@
+This package was debianized by Ron Lee <ron@debian.org> on
+Sun, 13 Feb 2000 18:40:00 +1030.
+
+wxWindows main upstream site is www.wxwindows.org
+
+wxWindows is licenced under the LGPL with a special exception for
+binary only apps produced with it.  Some parts of the library (as
+compiled for Debian) might *not* include this extra exception in
+their licence.  If you wish to distribute binary object code under
+terms other than those allowed by the (L)GPL (but allowed by the
+wxWindows Licence), you must first ensure all linked in code is
+subject to this exception.  This package is almost certainly built
+with code licenced under terms which do not include that exception.
+
+
+   See the file licence.txt for authorative details of
+                  the wxWindows licence.
+
diff --git a/debian/libwxgtk-dev.dirs b/debian/libwxgtk-dev.dirs
new file mode 100644 (file)
index 0000000..f3281f4
--- /dev/null
@@ -0,0 +1,4 @@
+usr/bin
+usr/lib/wx/include/wx/gtk/
+usr/include/wx
+usr/share/man/man1
diff --git a/debian/libwxgtk-dev.docs b/debian/libwxgtk-dev.docs
new file mode 100644 (file)
index 0000000..3596b0d
--- /dev/null
@@ -0,0 +1,3 @@
+docs/preamble.txt
+docs/licence.txt
+docs/licendoc.txt
diff --git a/debian/libwxgtk-dev.files b/debian/libwxgtk-dev.files
new file mode 100644 (file)
index 0000000..3168537
--- /dev/null
@@ -0,0 +1,5 @@
+usr/bin/
+usr/include/wx/
+usr/lib/wx
+usr/lib/*.so
+usr/lib/*.a
diff --git a/debian/libwxgtk.dirs b/debian/libwxgtk.dirs
new file mode 100644 (file)
index 0000000..d578dd5
--- /dev/null
@@ -0,0 +1,3 @@
+usr/lib
+usr/share/wx/afm
+usr/share/wx/gs_afm
diff --git a/debian/libwxgtk.docs b/debian/libwxgtk.docs
new file mode 100644 (file)
index 0000000..561d5c3
--- /dev/null
@@ -0,0 +1 @@
+docs/licence.txt
diff --git a/debian/libwxgtk.files b/debian/libwxgtk.files
new file mode 100644 (file)
index 0000000..56ac99c
--- /dev/null
@@ -0,0 +1,2 @@
+usr/lib/*.so.*
+usr/share/wx
diff --git a/debian/libwxgtk.postinst b/debian/libwxgtk.postinst
new file mode 100644 (file)
index 0000000..881b6e2
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ]; then
+       ldconfig
+fi
+
+#DEBHELPER#
+
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..7c110bb
--- /dev/null
@@ -0,0 +1,106 @@
+#!/usr/bin/make -f
+# debian/rules file to build packages from wxWindows CVS source
+#
+# Sculpted 13/2/2000 by Ron Lee <ron@debian.org> from new and
+# variously stolen code :-)
+# (including a debhelper template, GNU copyright 1997 to 1999 by
+# Joey Hess, and some ideas found in the ncurses rules file that
+# I quite liked)
+
+#export DH_VERBOSE=1
+export DH_COMPAT=2
+
+# Change this when the release version changes and
+# touch control.in to propagate the change.
+release=2.1
+
+# These are the packages we will build
+package_gtk_lib=libwxgtk$(release)
+package_gtk_dev=libwxgtk$(release)-dev
+
+# Dirs to put the various builds object files in
+objdir_gtk_shared=objs_gtk_sh
+objdir_gtk_static=objs_gtk_st
+
+objdirs=$(objdir_gtk_shared) $(objdir_gtk_static)
+
+build_stamps=build-gtk-shared-stamp build-gtk-static-stamp
+
+
+debian/control: debian/control.in
+       sed -e 's/=V/$(release)/g' < debian/control.in > debian/control
+
+build: debian/control $(build_stamps)
+
+build-gtk-shared-stamp:
+       dh_testdir
+       mkdir $(objdir_gtk_shared)
+       cd $(objdir_gtk_shared) \
+               && ../configure --prefix=/usr --with-gtk \
+               && $(MAKE)
+       touch $@
+
+build-gtk-static-stamp:
+       dh_testdir
+       mkdir $(objdir_gtk_static)
+       cd $(objdir_gtk_static) \
+               && ../configure --prefix=/usr --with-gtk --disable-shared \
+               && $(MAKE)
+       touch $@
+
+clean: debian/control
+       dh_testdir
+       dh_testroot
+       -rm -rf $(build_stamps) $(objdirs)
+       dh_clean
+       -rm -f debian/$(package_gtk_lib).*
+       -rm -f debian/$(package_gtk_dev).*
+
+install: build
+       @for f in dirs docs files postinst; do \
+               echo "generating control file $(package_gtk_lib).$$f"; \
+               cp debian/libwxgtk.$$f debian/$(package_gtk_lib).$$f; \
+       done;
+       @for f in dirs docs files; do \
+               echo "generating control file $(package_gtk_dev).$$f"; \
+               cp debian/libwxgtk-dev.$$f debian/$(package_gtk_dev).$$f; \
+       done;
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs
+       cd $(objdir_gtk_shared) \
+               && $(MAKE) install prefix=`pwd`/../debian/tmp/usr
+       cp $(objdir_gtk_static)/lib/*.a debian/tmp/usr/lib
+       dh_movefiles
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# nothing to do.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+       dh_installdocs
+       dh_installmanpages -p$(package_gtk_dev) \
+               ansi2knr.1 \
+               jpegtran.1 \
+               libpng.3 \
+               libpngpf.3 \
+               zlib.3 \
+               png.5
+       dh_installchangelogs 
+       dh_strip
+       dh_compress
+       dh_fixperms
+       dh_makeshlibs
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
diff --git a/debian/wx-config.1 b/debian/wx-config.1
new file mode 100644 (file)
index 0000000..20fcfde
--- /dev/null
@@ -0,0 +1,67 @@
+.TH wxWindows 1 "15 Feb 2000" "wxGTK 2.1.13"
+.SH NAME
+wx-config - script to get information about the installed version of wxGTK
+.SH SYNOPSIS
+.nh
+.HP
+.B wx-config
+[\-\-version] [\-\-libs] [\-\-cflags] [\-\-cc] [\-\-cxx] [\-\-ld]
+[\-\-prefix\fI[=DIR]\fP] [\-\-exec\-prefix\fI[=DIR]\fP]
+.hy
+.SH DESCRIPTION
+.PP
+\fIwx-config\fP is a tool used to determine the compiler and
+linker flags that should be used to compile and link programs
+that use \fIwxGTK\fP.
+.
+.SH OPTIONS
+.l
+\fIwx-config\fP accepts the following options:
+.TP 8
+.B  \-\-version
+Report the currently installed version of \fIwxGTK\fP.
+.TP 8
+.B  \-\-libs
+Output the linker flags necessary to link a \fIwxGTK\fP program.
+.TP 8
+.B  \-\-cflags
+Output the compiler flags necessary to compile a \fIwxGTK\fP program.
+.TP 8
+.B  \-\-cc
+Output the name of the C compiler \fB$(CC)\fP.
+.TP 8
+.B  \-\-cxx
+Output the name of the C++ compiler \fB$(CXX)\fP.
+.TP 8
+.B  \-\-ld
+Output the Linker command \fB$(LD)\fP.
+.TP 8
+.B  \-\-prefix=PREFIX
+If specified, use PREFIX instead of the installation prefix that \fIwxGTK\fP
+was built with when computing the output for the \-\-cflags and
+\-\-libs options. This option is also used for the exec prefix
+if \-\-exec\-prefix was not specified. This option must be specified
+before any \-\-libs or \-\-cflags options.
+.TP 8
+.B  \-\-exec\-prefix=PREFIX
+If specified, use PREFIX instead of the installation exec prefix that
+\fIwxGTK\fP was built with when computing the output for the \-\-cflags
+and \-\-libs options.  This option must be specified before any
+\-\-libs or \-\-cflags options.
+.SH SEE ALSO
+.BR gtk-config (1)
+.SH COPYRIGHT
+This manpage was copied whole-heartedly from the \fBgtk-config\fP(1) manpage
+by Brian Bassett <brianb@debian.org> for the Debian GNU/Linux distribution of
+wxGTK.  It was then updated to include new options and otherwise kicked about
+generally by Ron Lee <ron@debian.org>
+
+The original gtk-config manpage copyright:
+
+Copyright \(co  1995 Spencer Kimball and Peter Mattis
+
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
+provided that the above copyright notice appear in all copies and that
+both that copyright notice and this permission notice appear in
+supporting documentation.
diff --git a/make-deb b/make-deb
new file mode 100755 (executable)
index 0000000..acba422
--- /dev/null
+++ b/make-deb
@@ -0,0 +1,14 @@
+#!/bin/sh
+set -e
+
+TEMPDIR=temp-debian
+
+echo "creating Debian source tree"
+
+rm -rf ${TEMPDIR}
+mkdir ${TEMPDIR}
+cd ${TEMPDIR} && ../configure && make debian-dist
+cd .. && rm -r ${TEMPDIR}
+
+echo "done."
+