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
This commit is contained in:
Ron Lee
2000-02-16 20:47:08 +00:00
parent b7fff980e7
commit e4c4c1c697
15 changed files with 315 additions and 0 deletions

View File

@@ -1022,6 +1022,25 @@ MISC_DIST: ALL_GUI_DIST
mkdir $(DISTDIR)/misc/gs_afm mkdir $(DISTDIR)/misc/gs_afm
cp $(MISCDIR)/gs_afm/*.afm $(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: distclean:
$(RM) -r _dist_dir $(RM) -r _dist_dir
@@ -1038,6 +1057,15 @@ dist: @GUIDIST@
mv wxDemos demos; \ mv wxDemos demos; \
fi 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: clean:
$(RM) *.o $(RM) *.o
$(RM) *.d $(RM) *.d

10
debian/README.Debian vendored Normal file
View File

@@ -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

9
debian/changelog vendored Normal file
View File

@@ -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:

35
debian/control.in vendored Normal file
View File

@@ -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.

18
debian/copyright vendored Normal file
View File

@@ -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.

4
debian/libwxgtk-dev.dirs vendored Normal file
View File

@@ -0,0 +1,4 @@
usr/bin
usr/lib/wx/include/wx/gtk/
usr/include/wx
usr/share/man/man1

3
debian/libwxgtk-dev.docs vendored Normal file
View File

@@ -0,0 +1,3 @@
docs/preamble.txt
docs/licence.txt
docs/licendoc.txt

5
debian/libwxgtk-dev.files vendored Normal file
View File

@@ -0,0 +1,5 @@
usr/bin/
usr/include/wx/
usr/lib/wx
usr/lib/*.so
usr/lib/*.a

3
debian/libwxgtk.dirs vendored Normal file
View File

@@ -0,0 +1,3 @@
usr/lib
usr/share/wx/afm
usr/share/wx/gs_afm

1
debian/libwxgtk.docs vendored Normal file
View File

@@ -0,0 +1 @@
docs/licence.txt

2
debian/libwxgtk.files vendored Normal file
View File

@@ -0,0 +1,2 @@
usr/lib/*.so.*
usr/share/wx

10
debian/libwxgtk.postinst vendored Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
set -e
if [ "$1" = "configure" ]; then
ldconfig
fi
#DEBHELPER#

106
debian/rules vendored Executable file
View File

@@ -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

67
debian/wx-config.1 vendored Normal file
View File

@@ -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.

14
make-deb Executable file
View File

@@ -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."