Skip to content

Commit

Permalink
Added rule to install binary.
Browse files Browse the repository at this point in the history
Added debian files.
  • Loading branch information
dennisguse committed Jun 5, 2014
1 parent c0190de commit dd32206
Show file tree
Hide file tree
Showing 11 changed files with 240 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#(c) Dennis Guse, 2014 (dennis.guse@alumni.tu-berlin.de)

DESTDIR =
PREFIX = /usr
BINDIR = /bin

all : build

build : bin/itu-t-pesq2005

install : build

install -dm755 bin/itu-t-pesq2005 "$(DESTDIR)$(PREFIX)$(BINDIR)"

distclean : clean

Expand Down
3 changes: 3 additions & 0 deletions debian/README.Debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Implementation of ITU-T P.862 (2001) Amendment 2 (11/05): Revised Annex A - Reference implementations and conformance testing for ITU-T Recs P.862, P.862.1 and P.862.2

Perceptual evaluation of speech quality (PESQ): An objective method for end-to-end speech quality assessment of narrow-band telephone networks and speech codecs.
Empty file added debian/README.source
Empty file.
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
itu-t-pesq (2005+SNAPSHOT1) trusty; urgency=low

* Original implementation.
* Fixed linux build scripts.
-- Dennis Guse <dennis.guse@alumni.tu-berlin.de> Thu, 24 Oct 2013 16:33:17 +0200
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8
16 changes: 16 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Source: itu-t-pesq
Priority: extra
Maintainer: Dennis Guse <dennis.guse@alumni.tu-berlin.de>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.4
Section: unknown
Homepage: http://www.itu.int/rec/T-REC-P.862
Vcs-Git: https://github.com/dennisguse/ITU-T_pesq.git

Package: itu-t-pesq2005
Section: unknown
Architecture: any
Depends: libc
Description: ITU-T Software for Perceptual evaluation of speech quality (PESQ)
An objective method for end-to-end speech quality assessment of narrow-band telephone networks and speech codecs.
Implementation of ITU-T P.862 (2001) Amendment 2 (11/05): Revised Annex A - Reference implementations and conformance testing for ITU-T Recs P.862, P.862.1 and P.862.2
187 changes: 187 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: itu-t-stl
Source: http://pjsip.org

Files: *
Copyright: 2013 tbd

License: GPL-2+
ITU-T SOFTWARE TOOLS' GENERAL PUBLIC LICENSE



This "General Public License" is published in the Annex 1 of the
ITU-T Recommendation on "SOFTWARE TOOLS FOR HOMOGENITY OF RESULTS
IN THE STANDARDIZATION PROCESS OF SPEECH AND AUDIO CODERS",
approved in Geneva, 2000.


TERMS AND CONDITIONS

1. This License Agreement applies to any module or other work
related to the ITU-T Software Tool Library, and developed by the
User's Group on Software Tools. The "Module", below, refers to any
such module or work, and a "work based on the Module" means either
the Module or any work containing the Module or a portion of it,
either verbatim or with modifications. Each licensee is addressed
as "you".

2. You may copy and distribute verbatim copies of the Module's
source code as you receive it, in any medium, provided that you:
- conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty;
- keep intact all the notices that refer to this General Public
License and to the absence of any warranty; and
- give any other recipients of the Module a copy of this General
Public License along with the Module.
You may charge a fee for the physical act of transferring a copy.

3. You may modify your copy or copies of the Module or any portion
of it, and copy and distribute such modifications under the terms
of Paragraph 1 above, provided that you also do the following:

o cause the modified files to carry prominent notices stating
that you changed the files and the date of any change; and

o cause the whole of any work that you distribute or publish,
that in whole or in part contains the Module or any part
thereof, either with or without modifications, to be licensed
at no charge to all third parties under the terms of this
General Public License (except that you may choose to grant
warranty protection to some or all third parties, at your
option).

o If the modified module normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the simplest and most usual way, to print or
display an announcement including an appropriate copyright
notice and a notice that there is no warranty (or else, saying
that you provide a warranty) and that users may redistribute
the module under these conditions, and telling the user how to
view a copy of this General Public License.

You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange
for a fee.

Mere aggregation of another independent work with the Module (or
its derivative) on a volume of a storage or distribution medium
does not bring the other work under the scope of these terms.

4. You may copy and distribute the Module (or a portion or
derivative of it, under Paragraph 2) in object code or executable
form under the terms of Paragraphs 1 and 2 above provided that you
also do one of the following:

o accompany it with the complete corresponding machine-
readable source code, which must be distributed under the terms
of Paragraphs 1 and 2 above; or,

o accompany it with a written offer, valid for at least three
years, to give any third party free (except for a nominal
charge for the cost of distribution) a complete machine-
readable copy of the corresponding source code, to be
distributed under the terms of Paragraphs 1 and 2 above; or,

o accompany it with the information you received as to where
the corresponding source code may be obtained. (This
alternative is allowed only for noncommercial distribution and
only if you received the module in object code or executable
form alone.)

Source code for a work means the preferred form of the work for
making modifications to it. For an executable file, complete
source code means all the source code for all modules it contains;
but, as a special exception, it need not include source code for
modules which are standard libraries that accompany the operating
system on which the executable file runs, or for standard header
files or definitions files that accompany that operating system.

5. You may not copy, modify, sublicense, distribute or transfer
the Module except as expressly provided under this General Public
License. Any attempt otherwise to copy, modify, sublicense,
distribute or transfer the Module is void, and will automatically
terminate your rights to use the Module under this License.
However, parties who have received copies, or rights to use copies,
from you under this General Public License will not have their
licenses terminated so long as such parties remain in full
compliance.

6. By copying, distributing or modifying the Module (or any work
based on the Module) you indicate your acceptance of this license
to do so, and all its terms and conditions.

7. Each time you redistribute the Module (or any work based on the
Module), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Module subject
to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted
herein.

8. The ITU-T may publish revised and/or new versions of this
General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in
detail to address new problems or concerns.

Each version is given a distinguishing version number. If the
Module specifies a version number of the license which applies to
it and "any later version", you have the option of following the
terms and conditions either of that version or of any later version
published by the ITU-T. If the Module does not specify a version
number of the license, you may choose any version ever published by
the ITU-T.

9. If you wish to incorporate parts of the Module into other free
modules whose distribution conditions are different, write to the
author to ask for permission. For software which is copyrighted by
the ITU-T, write to the ITU-T Secretariat; exceptions may be made
for this. This decision will be guided by the two goals of
preserving the free status of all derivatives of this free software
and of promoting the sharing and reuse of software generally.


NO WARRANTY

10. BECAUSE THE MODULE IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE MODULE, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS
AND/OR OTHER PARTIES PROVIDE THE MODULE "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
PERFORMANCE OF THE MODULE IS WITH YOU. SHOULD THE MODULE PROVE
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR
OR CORRECTION.

11. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY
MODIFY AND/OR REDISTRIBUTE THE MODULE AS PERMITTED ABOVE, BE LIABLE
TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
THE MODULE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR
A FAILURE OF THE MODULE TO OPERATE WITH ANY OTHER MODULES), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

END OF TERMS AND CONDITIONS


Files: debian/*
Copyright: 2013 Dennis Guse <dennis.guse@alumni.tu-berlin.de>
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
5 changes: 5 additions & 0 deletions debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
README.md
P.862_amd2_e.pdf
P.862_amd2_f.pdf
P.862_amd2_s.pdf

1 change: 1 addition & 0 deletions debian/itu-t-pesq2005.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/bin/
16 changes: 16 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/make -f

#export DH_VERBOSE=1

%:
dh $@ --with autotools-dev

override_dh_auto_build:
make "build"

override_dh_auto_clean:
make "distclean"

override_dh_auto_install:
mkdir -p $(CURDIR)/debian/tmp/usr/bin
cp -a -r $(CURDIR)/bin/* $(CURDIR)/debian/tmp/usr/bin/
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0

0 comments on commit dd32206

Please sign in to comment.