summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-10-16 16:52:29 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-10-16 16:52:41 +0200
commitea63949bb8dbbd6da240442c64f9380b5cd4bde6 (patch)
treef26aac680da038073074d5f65e2b62d9115c0a18
parent6c9faab508cd49c25371a68c3cebfd55e704477b (diff)
downloadarts-ea63949bb8dbbd6da240442c64f9380b5cd4bde6.tar.gz
arts-ea63949bb8dbbd6da240442c64f9380b5cd4bde6.zip
Add artsc pkg-config file
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit de977c9845197adadac4db0f59a854cde96bea54)
-rw-r--r--artsc/CMakeLists.txt4
-rwxr-xr-xartsc/artsc-config.in16
-rw-r--r--artsc/artsc.pc.in11
3 files changed, 20 insertions, 11 deletions
diff --git a/artsc/CMakeLists.txt b/artsc/CMakeLists.txt
index bddde63..c462250 100644
--- a/artsc/CMakeLists.txt
+++ b/artsc/CMakeLists.txt
@@ -31,10 +31,14 @@ foreach( INC ${GTHREAD2_INCLUDE_DIRS} )
set( GLIB_CFLAGS "${GLIB_CFLAGS} -I${INC}" )
endforeach(INC)
+configure_file( artsc.pc.in artsc.pc @ONLY )
configure_file( artsc-config.in artsc-config @ONLY )
configure_file( artsdsp.in artsdsp @ONLY )
configure_file( artsc_export.h.in artsc_export.h @ONLY )
+install( FILES ${CMAKE_CURRENT_BINARY_DIR}/artsc.pc
+ DESTINATION ${PKGCONFIG_INSTALL_DIR} )
+
install( PROGRAMS
${CMAKE_CURRENT_BINARY_DIR}/artsdsp
${CMAKE_CURRENT_BINARY_DIR}/artsc-config
diff --git a/artsc/artsc-config.in b/artsc/artsc-config.in
index 1f1cff6..a8d9639 100755
--- a/artsc/artsc-config.in
+++ b/artsc/artsc-config.in
@@ -15,31 +15,25 @@ EOH
exit 1;
}
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-libdl=@LIBDL@
-
flags=""
while test $# -gt 0
do
case $1 in
--libs)
- flags="$flags -L$libdir $libdl -lartsc @USE_THREADS@ @LIBPTHREAD@ @GLIB_LDFLAGS@ @GLIB_LIBADD@"
+ flags="$flags `pkg-config artsc --libs`"
;;
--cflags)
- flags="$flags -I$includedir @GLIB_CFLAGS@"
+ flags="$flags `pkg-config artsc --cflags`"
;;
--version)
- echo 0.9.5
+ pkg-config artsc --modversion
;;
--arts-version)
- echo @ARTS_VERSION@
+ pkg-config artsc --variable=arts_version
;;
--arts-prefix)
- echo $prefix
+ pkg-config artsc --variable=prefix
;;
*)
echo "$0: unknown option $1"
diff --git a/artsc/artsc.pc.in b/artsc/artsc.pc.in
new file mode 100644
index 0000000..76f75ab
--- /dev/null
+++ b/artsc/artsc.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+arts_version=@ARTS_VERSION@
+
+Name: aRtsC
+Description: aRts sound system C support library (TDE)
+Version: 0.9.5
+Libs: -L${libdir} -lartsc @LIBDL@ @USE_THREADS@ @LIBPTHREAD@ @GLIB_LDFLAGS@ @GLIB_LIBADD@
+Cflags: -I${includedir} @GLIB_CFLAGS@