[xiph-cvs] cvs commit: vorbis-tools/debian control rules

Chris Cheney calc at xiph.org
Tue Dec 18 21:25:01 PST 2001



calc        01/12/18 21:25:01

  Modified:    debian   control rules
  Log:
  a few more updates

Revision  Changes    Path
1.16      +2 -1      vorbis-tools/debian/control

Index: control
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/debian/control,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- control	2001/12/19 05:14:32	1.15
+++ control	2001/12/19 05:25:01	1.16
@@ -10,4 +10,5 @@
 Depends: ${shlibs:Depends}
 Description: Several Ogg Vorbis Tools
  vorbis-tools contains oggenc (an encoder), ogg123 (a playback tool),
- ogginfo (displays ogg information), and vorbiscomment (ogg comment editor)
+ ogginfo (displays ogg information), vcut (ogg file splitter), and
+ vorbiscomment (ogg comment editor)

1.8       +22 -8     vorbis-tools/debian/rules

Index: rules
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/debian/rules,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- rules	2001/08/13 04:31:01	1.7
+++ rules	2001/12/19 05:25:01	1.8
@@ -8,13 +8,16 @@
 # This is the debhelper compatability version to use.
 export DH_COMPAT=3
 
+export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
 configure: configure-stamp
 configure-stamp:
         dh_testdir
-	# Add here commands to configure the package.
 
         # If compiling cvs version change to ./autogen.sh --prefix=/usr 
-	./configure --prefix=/usr
+	./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
+	--prefix=/usr
 
         touch configure-stamp
 
@@ -22,18 +25,30 @@
 build-stamp:
         dh_testdir
 
-	# Add here commands to compile the package.
         $(MAKE)
-	#/usr/bin/docbook-to-man debian/vorbis-tools.sgml > vorbis-tools.1
 
         touch build-stamp
+
+autotools:
+	OLDDATESUB=`./config.sub -t | tr -d -` ;\
+	OLDDATEGUESS=`./config.guess -t | tr -d -` ;\
+	NEWDATESUB=`/usr/share/misc/config.sub -t | tr -d -` ;\
+	NEWDATEGUESS=`/usr/share/misc/config.guess -t | tr -d -` ;\
+	if [ $$OLDDATESUB -lt $$NEWDATESUB -o \
+	     $$OLDDATEGUESS -lt $$NEWDATEGUESS ]; then \
+	   dch -a -p "GNU config automated update: config.sub\
+	     ($$OLDDATESUB to $$NEWDATESUB), config.guess\
+	     ($$OLDDATEGUESS to $$NEWDATEGUESS)" ;\
+	   cp -f /usr/share/misc/config.sub config.sub ;\
+	   cp -f /usr/share/misc/config.guess config.guess ;\
+	   echo WARNING: GNU config scripts updated from master copies 1>&2 ;\
+	fi
 
-clean:
+clean: autotools
         dh_testdir
         dh_testroot
         rm -f build-stamp configure-stamp
 
-	# Add here commands to clean up after the build process.
         -$(MAKE) distclean
 
         dh_clean
@@ -44,7 +59,6 @@
         dh_clean -k
         dh_installdirs
 
-	# Add here commands to install the package into debian/tmp.
         $(MAKE) install DESTDIR=`pwd`/debian/tmp
 
 # Build architecture-independent files here.
@@ -75,4 +89,4 @@
         dh_builddeb
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: autotools build clean binary-indep binary-arch binary install configure

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list