Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
debian: use dh-cmake (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers authored Sep 24, 2022
1 parent e7e3cb2 commit d162ab6
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 129 deletions.
1 change: 0 additions & 1 deletion debian/compat

This file was deleted.

8 changes: 4 additions & 4 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ Source: librem
Section: comm
Priority: optional
Maintainer: Alfred E. Heggestad <aeh@db.org>
Standards-Version: 3.9.5
Build-Depends: debhelper (>= 9.20120311), libre-dev (>= 1.1.0)
Homepage: http://www.creytiv.com/
Standards-Version: 4.1.5
Build-Depends: cmake, dh-cmake, dh-cmake-compat (= 1), dh-sequence-cmake, debhelper-compat (= 12)
Homepage: https://github.com/baresip/rem

Package: librem
Architecture: any
Section: libs
Depends: libre (>= 1.1.0), ${shlibs:Depends}, ${misc:Depends}
Depends: libre (>= 2.7.0), ${shlibs:Depends}, ${misc:Depends}
Description: Audio and video processing media library
Audio mixer, resampler, tone generator, G.711 codec
Video mixer, pixel converter
Expand Down
35 changes: 15 additions & 20 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
This package was debianized by Alfred E. Heggestad <aeh@db.org>

It was downloaded from http://www.creytiv.com/


Copyright (c) 2010 - 2014, Alfred E. Heggestad
Copyright (c) 2010 - 2014, Richard Aas
Copyright (c) 2010 - 2014, Creytiv.com
Copyright (C) 2020 - 2022, Baresip Foundation (https://github.com/baresip)
Copyright (c) 2010 - 2022, Alfred E. Heggestad
Copyright (c) 2010 - 2020, Richard Aas
Copyright (c) 2010 - 2020, Creytiv.com
All rights reserved.


Expand All @@ -20,18 +16,17 @@ are met:
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. Neither the name of the Creytiv.com nor the names of its contributors
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.


THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1 change: 1 addition & 0 deletions debian/librem-dev.cmake-components
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Development
2 changes: 0 additions & 2 deletions debian/librem-dev.dirs

This file was deleted.

3 changes: 0 additions & 3 deletions debian/librem-dev.files

This file was deleted.

1 change: 1 addition & 0 deletions debian/librem.cmake-components
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Libraries
1 change: 0 additions & 1 deletion debian/librem.dirs

This file was deleted.

1 change: 0 additions & 1 deletion debian/librem.files

This file was deleted.

98 changes: 2 additions & 96 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,98 +1,4 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1


EXTRA_CFLAGS:="$(shell dpkg-buildflags --get CFLAGS | sed -e 's/-O2//')"
EXTRA_LFLAGS:="$(shell dpkg-buildflags --get LDFLAGS)"


configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.

touch configure-stamp


build: build-stamp
build-stamp: configure-stamp
dh_testdir

# Add here commands to compile the package.
$(MAKE) RELEASE=1 PREFIX=/usr \
EXTRA_CFLAGS=$(EXTRA_CFLAGS) \
EXTRA_LFLAGS=$(EXTRA_LFLAGS)

touch $@

clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp

# Add here commands to clean up after the build process.
$(MAKE) clean

dh_clean

install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs

# Add here commands to install the package into debian/tmp
mkdir $(CURDIR)/debian/tmp
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp

dh_movefiles

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
# dh_install
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
# dh_installcron
# dh_installinfo
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_perl
# dh_python
dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb

build-arch: build

build-indep: build

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
%:
dh $@ --buildsystem=cmake
2 changes: 1 addition & 1 deletion debian/source/format
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0
3.0 (native)

0 comments on commit d162ab6

Please sign in to comment.