ported to new build system
This commit is contained in:
4
debian/changelog.in
vendored
4
debian/changelog.in
vendored
@@ -1,5 +1,5 @@
|
||||
@PACKAGE@ (@VERSION@-1) unstable; urgency=low
|
||||
@PACKAGE@ (@PACKAGE_VERSION@~@DISTRO@.@BUILD_NUMBER@) @DISTRO@; urgency=low
|
||||
|
||||
* See https://dev.marc.waeckerlin.org/projects/@PACKAGE@ for changes
|
||||
|
||||
-- @PACKAGERID@ @BUILDDATE@
|
||||
-- @AUTHOR@ @BUILD_DATE@
|
||||
|
||||
41
debian/control
vendored
41
debian/control
vendored
@@ -1,41 +0,0 @@
|
||||
Source: libpcscxx
|
||||
Priority: extra
|
||||
Maintainer: Marc Wäckerlin <marc.waeckerlin@tech.swisssign.com>
|
||||
Build-Depends: debhelper (>= 7), autotools-dev, libssl-dev, libpkcs11-helper1-dev, libpcsclite-dev, mrw-c++-dev
|
||||
Standards-Version: 3.8.1
|
||||
Section: libs
|
||||
Homepage: https://dev.marc.waeckerlin.org/projects/libpcscxx
|
||||
|
||||
Package: libpcscxx-dev
|
||||
Section: libdevel
|
||||
Architecture: any
|
||||
Depends: libpcscxx (= ${binary:Version}), libssl-dev, libpkcs11-helper1-dev, libpcsclite-dev, mrw-c++-dev
|
||||
Description: C++ Wrapper around PCSClite, Cryptoki, OpenSSL
|
||||
C++ wrappers around the ugly C-Interfaces of pcsc-lite, cryptoki and
|
||||
open-ssl.
|
||||
.
|
||||
Development Package
|
||||
.
|
||||
For more details, see: https://dev.marc.waeckerlin.org/projects/libpcscxx
|
||||
|
||||
Package: libpcscxx-dbg
|
||||
Section: debug
|
||||
Architecture: any
|
||||
Depends: libpcscxx (= ${binary:Version})
|
||||
Description: C++ Wrapper around PCSClite, Cryptoki, OpenSSL
|
||||
C++ wrappers around the ugly C-Interfaces of pcsc-lite, cryptoki and
|
||||
open-ssl.
|
||||
.
|
||||
Debugging Symbols
|
||||
.
|
||||
For more details, see: https://dev.marc.waeckerlin.org/projects/libpcscxx
|
||||
|
||||
Package: libpcscxx
|
||||
Section: libs
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: C++ Wrapper around PCSClite, Cryptoki, OpenSSL
|
||||
C++ wrappers around the ugly C-Interfaces of pcsc-lite, cryptoki and
|
||||
open-ssl.
|
||||
.
|
||||
For more details, see: https://dev.marc.waeckerlin.org/projects/libpcscxx
|
||||
28
debian/control.in
vendored
Normal file
28
debian/control.in
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
Source: @PACKAGE_NAME@
|
||||
Priority: extra
|
||||
Maintainer: @AUTHOR@
|
||||
Build-Depends: debhelper (>= 7), pkg-config, autotools-dev, doxygen, graphviz, lsb-release, libssl-dev, libpkcs11-helper1-dev, libpcsclite-dev, mrw-c++-dev
|
||||
Standards-Version: 3.8.1
|
||||
Section: libs
|
||||
Homepage: https://dev.marc.waeckerlin.org/projects/libpcscxx
|
||||
|
||||
Package: @PACKAGE_NAME@-dev
|
||||
Section: libdevel
|
||||
Architecture: any
|
||||
Depends: @PACKAGE_NAME@ (= ${binary:Version}), libssl-dev, libpkcs11-helper1-dev, libpcsclite-dev, mrw-c++-dev
|
||||
Description: @DESCRIPTION@ - Development Package
|
||||
@README_DEB@
|
||||
|
||||
Package: @PACKAGE_NAME@-dbg
|
||||
Section: debug
|
||||
Architecture: any
|
||||
Depends: @PACKAGE_NAME@ (= ${binary:Version})
|
||||
Description: @DESCRIPTION@ - Debug Symbols
|
||||
@README_DEB@
|
||||
|
||||
Package: @PACKAGE_NAME@
|
||||
Section: libs
|
||||
Architecture: any
|
||||
Depends: @PACKAGE_NAME@ (= ${binary:Version}), ${misc:Depends}
|
||||
Description: @DESCRIPTION@
|
||||
@README_DEB@
|
||||
98
debian/rules
vendored
98
debian/rules
vendored
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/make -f
|
||||
!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
# Sample debian/rules that uses debhelper.
|
||||
# This file was originally written by Joey Hess and Craig Small.
|
||||
@@ -9,97 +9,5 @@
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
|
||||
# These are used for cross-compiling and for saving the configure script
|
||||
# from having to guess our platform (since we know it already)
|
||||
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
||||
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
||||
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
|
||||
CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
|
||||
else
|
||||
CROSS= --build $(DEB_BUILD_GNU_TYPE)
|
||||
endif
|
||||
|
||||
|
||||
|
||||
|
||||
# shared library versions, option 1
|
||||
version=2.0.5
|
||||
major=2
|
||||
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
|
||||
#version=`ls src/.libs/lib*.so.* | \
|
||||
# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
|
||||
#major=`ls src/.libs/lib*.so.* | \
|
||||
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
|
||||
|
||||
config.status: configure
|
||||
dh_testdir
|
||||
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
|
||||
cp -f /usr/share/misc/config.sub config.sub
|
||||
endif
|
||||
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
|
||||
cp -f /usr/share/misc/config.guess config.guess
|
||||
endif
|
||||
CPPFLAGS="${CPPFLAGS} -DALLOW_SSL_0_8 -std=c++0x -I/usr/include/PCSC -I/usr/include/pkcs11-helper-1.0" CXXFLAGS="-ggdb" LDFLAG="-ggdb" ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" MOC=/usr/bin/moc
|
||||
# does not work: LDFLAGS="-Wl,-z,defs"
|
||||
|
||||
|
||||
build: build-stamp
|
||||
build-stamp: config.status
|
||||
dh_testdir
|
||||
$(MAKE)
|
||||
touch $@
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp
|
||||
[ ! -f [Mm]akefile ] || $(MAKE) distclean
|
||||
rm -f config.sub config.guess
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_prep
|
||||
dh_installdirs
|
||||
$(MAKE) prefix=$(CURDIR)/debian/tmp/usr install
|
||||
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: install
|
||||
# We have nothing to do by default.
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch: install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_installchangelogs ChangeLog
|
||||
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 --dbg-package=libpcscxx-dbg
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
# dh_perl
|
||||
# dh_python
|
||||
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
|
||||
%:
|
||||
dh $@
|
||||
|
||||
Reference in New Issue
Block a user