Skip to content

Commit

Permalink
install pkgconfig file & finish up debian configs
Browse files Browse the repository at this point in the history
  • Loading branch information
szechyjs committed Jun 28, 2018
1 parent f8ef717 commit ac749b0
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 13 deletions.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@ include(GNUInstallDirs)
set_target_properties(mbe-static mbe-shared
PROPERTIES
OUTPUT_NAME mbe
VERSION 1.0
VERSION 1.3
SOVERSION 1
INSTALL_NAME_DIR ${CMAKE_INSTALL_FULL_LIBDIR}
PUBLIC_HEADER "mbelib.h")

configure_file("${CMAKE_CURRENT_SOURCE_DIR}/libmbe.pc.in"
"${CMAKE_CURRENT_BINARY_DIR}/libmbe.pc"
@ONLY)

install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libmbe.pc"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")

install(TARGETS mbe-static mbe-shared
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
Expand Down
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ libmbe (1.3.0) bionic; urgency=low

* Initial upload!

-- Jared Szechy <[email protected]> Tue, 26 Jun 2018 20:04:17 -0500
-- Jared Szechy <[email protected]> Wed, 27 Jun 2018 23:00:00 -0400
24 changes: 14 additions & 10 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,30 @@ Maintainer: Jared Szechy <[email protected]>
Build-Depends: debhelper (>= 9), cmake
Standards-Version: 4.1.4
Homepage: https://github.com/szechyjs/mbelib
Vcs-Git: https://github.com/szechyjs/mbelib.git
Vcs-Browser: https://github.com/szechyjs/mbelib

Package: libmbe-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends: libmbe1 (= ${binary:Version}), ${misc:Depends}
Description: P25 Phase 1 and ProVoice vocoder: Headers
Description: P25 Phase 1 and ProVoice vocoder - development kit
libMBE supports the 7200x4400 bit/s codec used in P25 Phase 1,
the 7100x4400 bit/s codec used in ProVoice and the "Half Rate"
3600x2250 bit/s vocoder used in various radio systems.
.
This package contains the development files for libmbe.

Package: libmbe1
Section: libs
Architecture: any
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: P25 Phase 1 and ProVoice vocoder

Package: libmbe-dbg
Section: debug
Priority: optional
Architecture: any
Multi-Arch: same
Depends: libmbe1 (= ${binary:Version}), ${misc:Depends}
Description: P25 Phase 1 and ProVoice vocoder: Debug
Description: P25 Phase 1 and ProVoice vocoder - runtime library
libMBE supports the 7200x4400 bit/s codec used in P25 Phase 1,
the 7100x4400 bit/s codec used in ProVoice and the "Half Rate"
3600x2250 bit/s vocoder used in various radio systems.
.
This package contains the libmbe library used by applications.
3 changes: 2 additions & 1 deletion debian/libmbe-dev.install
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
usr/include
usr/lib/*/*.so
usr/lib/*/*.a
usr/lib/*/*.a
usr/lib/*/pkgconfig
10 changes: 10 additions & 0 deletions libmbe.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@

Name: libMBE
Description: P25 Phase 1 and ProVoice vocoder
Version: 1.3.0

Libs: -L${libdir} -lmbe
Libs.private: -lm
Cflags: -I${includedir}

0 comments on commit ac749b0

Please sign in to comment.