Add multilib support

[taken from Fedora patches]
pull/1/head
François Andriot 9 years ago committed by Slávek Banko
parent b4697bcfd6
commit d67c4c24d2

@ -24,6 +24,10 @@ configure_file( akode-config.in akode-config @ONLY )
install( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/akode-config install( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/akode-config
DESTINATION ${BIN_INSTALL_DIR} ) DESTINATION ${BIN_INSTALL_DIR} )
configure_file( akode.pc.in akode.pc @ONLY )
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/akode.pc
DESTINATION ${PKGCONFIG_INSTALL_DIR} )
##### build ##################################### ##### build #####################################

@ -1,3 +1,8 @@
bin_SCRIPTS = akode-config bin_SCRIPTS = akode-config
SUBDIRS= lib plugins akodeplay SUBDIRS= lib plugins akodeplay
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = akode.pc
EXTRA_DIST = akode.pc.in

@ -15,9 +15,8 @@ EOH
} }
prefix=@prefix@ prefix=@prefix@
exec_prefix=@exec_prefix@ akode_libs="`pkg-config --libs akode`"
libdir=@libdir@ akode_cflags="`pkg-config --cflags akode`"
includedir=@includedir@
flags="" flags=""
@ -29,10 +28,10 @@ while test $# -gt 0
do do
case $1 in case $1 in
--libs) --libs)
flags="$flags -L$libdir -lakode" flags="$flags $akode_libs"
;; ;;
--cflags) --cflags)
flags="$flags -I$includedir" flags="$flags $akode_cflags"
;; ;;
--version) --version)
echo 2.0.2 echo 2.0.2

@ -0,0 +1,10 @@
prefix=@prefix@
exec_prefix=@prefix@
libdir=@libdir@
includedir=@includedir@
Name: akode
Description: aKode is a simple audio-decoding frame-work
Version: 2.0.2
Libs: -L${libdir} -lakode
Cflags: -I${includedir}

@ -1,5 +1,6 @@
dnl don't remove the below dnl don't remove the below
dnl AC_OUTPUT(akode/akode-config) dnl AC_OUTPUT(akode/akode-config)
dnl AC_OUTPUT(akode/akode.pc)
AC_CONFIG_HEADER(akode/lib/akode_export.h) AC_CONFIG_HEADER(akode/lib/akode_export.h)

Loading…
Cancel
Save