From e4c4c1c697af594dd9de10a021b3a295f83c333f Mon Sep 17 00:00:00 2001 From: Ron Lee Date: Wed, 16 Feb 2000 20:47:08 +0000 Subject: [PATCH] added files / made changes to enable building Debian releases from cvs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- Makefile.in | 28 ++++++++++ debian/README.Debian | 10 ++++ debian/changelog | 9 ++++ debian/control.in | 35 +++++++++++++ debian/copyright | 18 +++++++ debian/libwxgtk-dev.dirs | 4 ++ debian/libwxgtk-dev.docs | 3 ++ debian/libwxgtk-dev.files | 5 ++ debian/libwxgtk.dirs | 3 ++ debian/libwxgtk.docs | 1 + debian/libwxgtk.files | 2 + debian/libwxgtk.postinst | 10 ++++ debian/rules | 106 ++++++++++++++++++++++++++++++++++++++ debian/wx-config.1 | 67 ++++++++++++++++++++++++ make-deb | 14 +++++ 15 files changed, 315 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/changelog create mode 100644 debian/control.in create mode 100644 debian/copyright create mode 100644 debian/libwxgtk-dev.dirs create mode 100644 debian/libwxgtk-dev.docs create mode 100644 debian/libwxgtk-dev.files create mode 100644 debian/libwxgtk.dirs create mode 100644 debian/libwxgtk.docs create mode 100644 debian/libwxgtk.files create mode 100644 debian/libwxgtk.postinst create mode 100755 debian/rules create mode 100644 debian/wx-config.1 create mode 100755 make-deb diff --git a/Makefile.in b/Makefile.in index 76052feecd..0cdf812619 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 index 0000000000..a2597e5822 --- /dev/null +++ b/debian/README.Debian @@ -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 , Sun, 13 Feb 2000 18:40:00 +1030 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000000..c099b1d9b5 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,9 @@ +wxwindows (2.1.13) unstable; urgency=low + + * Repackaged to build from cvs. + + -- Ron Lee 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 index 0000000000..833884c012 --- /dev/null +++ b/debian/control.in @@ -0,0 +1,35 @@ +Source: wxwindows +Section: libs +Priority: optional +Build-Depends: debhelper, libgtk1.2-dev, flex, bison +Maintainer: Ron Lee +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 index 0000000000..e46773d05d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,18 @@ +This package was debianized by Ron Lee 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 index 0000000000..f3281f468f --- /dev/null +++ b/debian/libwxgtk-dev.dirs @@ -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 index 0000000000..3596b0d607 --- /dev/null +++ b/debian/libwxgtk-dev.docs @@ -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 index 0000000000..3168537cd5 --- /dev/null +++ b/debian/libwxgtk-dev.files @@ -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 index 0000000000..d578dd55f1 --- /dev/null +++ b/debian/libwxgtk.dirs @@ -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 index 0000000000..561d5c39f9 --- /dev/null +++ b/debian/libwxgtk.docs @@ -0,0 +1 @@ +docs/licence.txt diff --git a/debian/libwxgtk.files b/debian/libwxgtk.files new file mode 100644 index 0000000000..56ac99c047 --- /dev/null +++ b/debian/libwxgtk.files @@ -0,0 +1,2 @@ +usr/lib/*.so.* +usr/share/wx diff --git a/debian/libwxgtk.postinst b/debian/libwxgtk.postinst new file mode 100644 index 0000000000..881b6e24e2 --- /dev/null +++ b/debian/libwxgtk.postinst @@ -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 index 0000000000..7c110bb083 --- /dev/null +++ b/debian/rules @@ -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 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 index 0000000000..20fcfde7c9 --- /dev/null +++ b/debian/wx-config.1 @@ -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 for the Debian GNU/Linux distribution of +wxGTK. It was then updated to include new options and otherwise kicked about +generally by Ron Lee + +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 index 0000000000..acba42208e --- /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." + -- 2.45.2