Add artsc pkg-config file

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit de977c9845)
r14.0.x
Slávek Banko 8 years ago
parent 6c9faab508
commit ea63949bb8

@ -31,10 +31,14 @@ foreach( INC ${GTHREAD2_INCLUDE_DIRS} )
set( GLIB_CFLAGS "${GLIB_CFLAGS} -I${INC}" ) set( GLIB_CFLAGS "${GLIB_CFLAGS} -I${INC}" )
endforeach(INC) endforeach(INC)
configure_file( artsc.pc.in artsc.pc @ONLY )
configure_file( artsc-config.in artsc-config @ONLY ) configure_file( artsc-config.in artsc-config @ONLY )
configure_file( artsdsp.in artsdsp @ONLY ) configure_file( artsdsp.in artsdsp @ONLY )
configure_file( artsc_export.h.in artsc_export.h @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 install( PROGRAMS
${CMAKE_CURRENT_BINARY_DIR}/artsdsp ${CMAKE_CURRENT_BINARY_DIR}/artsdsp
${CMAKE_CURRENT_BINARY_DIR}/artsc-config ${CMAKE_CURRENT_BINARY_DIR}/artsc-config

@ -15,31 +15,25 @@ EOH
exit 1; exit 1;
} }
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
libdl=@LIBDL@
flags="" flags=""
while test $# -gt 0 while test $# -gt 0
do do
case $1 in case $1 in
--libs) --libs)
flags="$flags -L$libdir $libdl -lartsc @USE_THREADS@ @LIBPTHREAD@ @GLIB_LDFLAGS@ @GLIB_LIBADD@" flags="$flags `pkg-config artsc --libs`"
;; ;;
--cflags) --cflags)
flags="$flags -I$includedir @GLIB_CFLAGS@" flags="$flags `pkg-config artsc --cflags`"
;; ;;
--version) --version)
echo 0.9.5 pkg-config artsc --modversion
;; ;;
--arts-version) --arts-version)
echo @ARTS_VERSION@ pkg-config artsc --variable=arts_version
;; ;;
--arts-prefix) --arts-prefix)
echo $prefix pkg-config artsc --variable=prefix
;; ;;
*) *)
echo "$0: unknown option $1" echo "$0: unknown option $1"

@ -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@
Loading…
Cancel
Save