forked from premiere/premiere-libtorrent
Files used for building a debian package, pkg-config support
This commit is contained in:
parent
c8e0200daf
commit
d73bc950c6
|
@ -1,7 +1,13 @@
|
|||
SUBDIRS = include @ZLIBDIR@ src examples test
|
||||
EXTRA_DIST = docs Jamfile project-root.jam \
|
||||
m4/ac_cxx_namespaces.m4 m4/acx_pthread.m4 m4/ax_boost_date-time.m4 \
|
||||
m4/ax_boost_filesystem.m4 m4/ax_boost_thread.m4 src/file_win.cpp
|
||||
m4/ax_boost_filesystem.m4 m4/ax_boost_thread.m4 src/file_win.cpp libtorrent.pc
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = libtorrent.pc
|
||||
|
||||
check: test
|
||||
test/test_hasher && test/test_bencoding && test/test_ip_filter && echo "tests done, all OK"
|
||||
|
||||
deb:
|
||||
dpkg-buildpackage -rfakeroot -us -uc
|
||||
|
|
|
@ -115,5 +115,5 @@ AC_ARG_ENABLE(
|
|||
)
|
||||
AC_SUBST(DEBUGFLAGS)
|
||||
|
||||
AC_CONFIG_FILES(Makefile src/Makefile include/Makefile examples/Makefile test/Makefile)
|
||||
AC_CONFIG_FILES(Makefile src/Makefile include/Makefile examples/Makefile test/Makefile libtorrent.pc)
|
||||
AC_OUTPUT
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
libtorrent (0.9-1) unstable; urgency=low
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Michael Wojciechowski <wojci@wojci.dk> Fri, 19 Aug 2005 23:31:46 +0200
|
||||
|
|
@ -0,0 +1 @@
|
|||
4
|
|
@ -0,0 +1,29 @@
|
|||
Source: libtorrent
|
||||
Priority: optional
|
||||
Section: libs
|
||||
Maintainer: Michael Wojciechowski <wojci@wojci.dk>
|
||||
Build-Depends: debhelper (>= 4.0.0), autotools-dev,
|
||||
libboost-thread1.31.0, libboost-thread-dev,
|
||||
libboost-date-time1.31.0, libboost-date-time-dev,
|
||||
libboost-filesystem1.31.0, libboost-filesystem-dev
|
||||
Standards-Version: 3.6.2
|
||||
|
||||
Package: libtorrent0-dev
|
||||
Section: libdevel
|
||||
Architecture: any
|
||||
Depends: libtorrent0 (= ${Source-Version})
|
||||
Provides: libtorrent-dev
|
||||
Conflicts: libtorrent-dev
|
||||
Description: Torrent library, headers.
|
||||
libtorrent is a C++ library that aims to be a good alternative to all
|
||||
the other bittorrent implementations around. It is a library and not a
|
||||
full featured client, although it comes with a working example client.
|
||||
|
||||
Package: libtorrent0
|
||||
Section: libs
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends} libboost-thread1.31.0, libboost-date-time1.31.0, libboost-filesystem1.31.0
|
||||
Description: Torrent library, libs.
|
||||
libtorrent is a C++ library that aims to be a good alternative to all
|
||||
the other bittorrent implementations around. It is a library and not a
|
||||
full featured client, although it comes with a working example client.
|
|
@ -0,0 +1,10 @@
|
|||
This package was debianized by Michael Wojciechowski <wojci@wojci.dk> on
|
||||
Fri, 19 Aug 2005 23:31:46 +0200.
|
||||
|
||||
It was downloaded from http://sourceforge.net/cvs/?group_id=79942.
|
||||
|
||||
Copyright Holder: Arvid Norberg, c99ang@cs.umu.se
|
||||
|
||||
License: The BSD License
|
||||
|
||||
http://www.opensource.org/licenses/bsd-license.php
|
|
@ -0,0 +1,2 @@
|
|||
libtorrent0-dev_0.9-1_i386.deb libdevel optional
|
||||
libtorrent0_0.9-1_i386.deb libs optional
|
|
@ -0,0 +1,2 @@
|
|||
usr/include
|
||||
usr/lib/pkgconfig
|
|
@ -0,0 +1,2 @@
|
|||
AUTHORS
|
||||
README
|
|
@ -0,0 +1,4 @@
|
|||
usr/include/*
|
||||
usr/lib/lib*.a
|
||||
usr/lib/lib*.so
|
||||
usr/lib/pkgconfig/*
|
|
@ -0,0 +1 @@
|
|||
usr/lib
|
|
@ -0,0 +1,2 @@
|
|||
AUTHORS
|
||||
README
|
|
@ -0,0 +1 @@
|
|||
usr/lib/lib*.so.*
|
|
@ -0,0 +1,85 @@
|
|||
#!/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
|
||||
|
||||
|
||||
# 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)
|
||||
|
||||
|
||||
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
||||
INSTALL_PROGRAM += -s
|
||||
endif
|
||||
|
||||
config.status: configure
|
||||
dh_testdir
|
||||
touch config.h.in;\
|
||||
find . -type f -name Makefile.am -print |\
|
||||
sed 's/\.am$$/.in/' |\
|
||||
while read f; do touch "$$f"; done;\
|
||||
touch configure;\
|
||||
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)\
|
||||
--prefix=/usr --mandir=\$${prefix}/share/man\
|
||||
--infodir=\$${prefix}/share/info
|
||||
|
||||
|
||||
build: build-stamp
|
||||
build-stamp: config.status
|
||||
dh_testdir
|
||||
$(MAKE)
|
||||
touch build-stamp
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp
|
||||
-$(MAKE) distclean
|
||||
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
|
||||
dh_clean
|
||||
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
|
||||
|
||||
|
||||
# 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 ChangeLog
|
||||
dh_installdocs
|
||||
dh_install --sourcedir=debian/tmp
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
dh_makeshlibs -V
|
||||
dh_shlibdeps
|
||||
dh_installdeb
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install
|
Loading…
Reference in New Issue