Mercurial > audlegacy
changeset 4814:06fb50c7f40a
we should use modified libdir insted of plugindir.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 26 Nov 2008 05:15:41 +0900 |
parents | 9bc0c8a3a0f0 |
children | 651f5da89c3f |
files | audlegacy.pc.in audlegacyclient.pc.in buildsys.mk.in configure.ac m4/buildsys.m4 |
diffstat | 5 files changed, 25 insertions(+), 27 deletions(-) [+] |
line wrap: on
line diff
--- a/audlegacy.pc.in Wed Nov 26 03:50:00 2008 +0900 +++ b/audlegacy.pc.in Wed Nov 26 05:15:41 2008 +0900 @@ -5,7 +5,7 @@ version=@PACKAGE_VERSION@ include_dir=@includedir@ audacious_include_dir=@includedir@ -lib_dir=@libdir@ +lib_dir=@plugindir@ plugin_dir=@plugindir@ input_plugin_dir=@plugindir@/@INPUT_PLUGIN_DIR@ @@ -17,7 +17,7 @@ transport_plugin_dir=@plugindir@/@TRANSPORT_PLUGIN_DIR@ discovery_plugin_dir=@plugindir@/@DISCOVERY_PLUGIN_DIR@ -Name: Audacious +Name: Audlegacy Description: Audacious is a versatile and handy multi platform media player Version: @PACKAGE_VERSION@ Requires: @PC_REQUIRES@
--- a/audlegacyclient.pc.in Wed Nov 26 03:50:00 2008 +0900 +++ b/audlegacyclient.pc.in Wed Nov 26 05:15:41 2008 +0900 @@ -4,9 +4,9 @@ version=@PACKAGE_VERSION@ audacious_include_dir=@includedir@ -lib_dir=@libdir@ +lib_dir=@plugindir@ -Name: Audacious Client Library +Name: Audlegacy Client Library Description: Remote control library for Audacious Version: @PACKAGE_VERSION@ Requires: @PC_REQUIRES@
--- a/buildsys.mk.in Wed Nov 26 03:50:00 2008 +0900 +++ b/buildsys.mk.in Wed Nov 26 05:15:41 2008 +0900 @@ -62,8 +62,8 @@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ -libdir = @libdir@ -plugindir ?= ${libdir}/${PACKAGE} +libdir = @libdir@/${PACKAGE} +plugindir ?= ${libdir} datarootdir = @datarootdir@ datadir = @datadir@ includedir = @includedir@ @@ -248,7 +248,7 @@ for i in ${LIB}; do \ ${INSTALL_STATUS}; \ - if ${MKDIR_P} ${DESTDIR}${plugindir} && ${INSTALL_LIB}; then \ + if ${MKDIR_P} ${DESTDIR}${libdir} && ${INSTALL_LIB}; then \ ${INSTALL_OK}; \ else \ ${INSTALL_FAILED}; \ @@ -257,7 +257,7 @@ for i in ${STATIC_LIB}; do \ ${INSTALL_STATUS}; \ - if ${MKDIR_P} ${DESTDIR}${plugindir} && ${INSTALL} -m 644 $$i ${DESTDIR}${plugindir}/$$i; then \ + if ${MKDIR_P} ${DESTDIR}${libdir} && ${INSTALL} -m 644 $$i ${DESTDIR}${libdir}/$$i; then \ ${INSTALL_OK}; \ else \ ${INSTALL_FAILED}; \ @@ -319,7 +319,7 @@ done for i in ${LIB}; do \ - if test -f ${DESTDIR}${plugindir}/$$i; then \ + if test -f ${DESTDIR}${libdir}/$$i; then \ if ${UNINSTALL_LIB}; then \ ${DELETE_OK}; \ else \ @@ -329,8 +329,8 @@ done for i in ${STATIC_LIB}; do \ - if test -f ${DESTDIR}${plugindir}/$$i; then \ - if rm -f ${DESTDIR}${plugindir}/$$i; then \ + if test -f ${DESTDIR}${libdir}/$$i; then \ + if rm -f ${DESTDIR}${libdir}/$$i; then \ ${DELETE_OK}; \ else \ ${DELETE_FAILED}; \
--- a/configure.ac Wed Nov 26 03:50:00 2008 +0900 +++ b/configure.ac Wed Nov 26 05:15:41 2008 +0900 @@ -32,6 +32,9 @@ IMPLIB_LIBS="" AC_SUBST([IMPLIB_LIBS]) +AUDLDFLAGS="-Wl,-rpath,${libdir}/audlegacy" +AC_SUBST([AUDLDFLAGS]) + dnl Plugin stuff dnl ======================== SHARED_SUFFIX="$PLUGIN_SUFFIX" @@ -294,11 +297,6 @@ AUD_DEFINE_PLUGIN_DIR([Transport]) AUD_DEFINE_PLUGIN_DIR([Discovery]) -### --------------------------------------------------------------------------- -dnl Setup rpath -dnl =========== -AUDLDFLAGS="-Wl,-rpath,${plugindir}" -AC_SUBST([AUDLDFLAGS]) ### --------------------------------------------------------------------------- dnl XXX Work around some autoconf bugs.
--- a/m4/buildsys.m4 Wed Nov 26 03:50:00 2008 +0900 +++ b/m4/buildsys.m4 Wed Nov 26 05:15:41 2008 +0900 @@ -53,23 +53,23 @@ PLUGIN_CFLAGS='' PLUGIN_LDFLAGS='-bundle -fno-common -flat_namespace -undefined suppress' PLUGIN_SUFFIX='.impl' - INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${plugindir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${plugindir}/$${i%.dylib}.${LIB_MAJOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${plugindir}/$$i' - UNINSTALL_LIB='rm -f ${DESTDIR}${plugindir}/$$i ${DESTDIR}${plugindir}/$${i%.dylib}.${LIB_MAJOR}.dylib ${DESTDIR}${plugindir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib' + INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$$i' + UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib' CLEAN_LIB='' ;; *-apple-*) AC_MSG_RESULT(Mac OS X) LIB_CPPFLAGS='-DPIC' LIB_CFLAGS='' - LIB_LDFLAGS='-dynamiclib -fPIC -install_name ${plugindir}/${LIB} -flat_namespace -undefined suppress' + LIB_LDFLAGS='-dynamiclib -fPIC -install_name ${libdir}/${LIB} -flat_namespace -undefined suppress' LIB_PREFIX='lib' LIB_SUFFIX='.dylib' PLUGIN_CPPFLAGS='' PLUGIN_CFLAGS='' PLUGIN_LDFLAGS='-bundle -fno-common -flat_namespace -undefined suppress' PLUGIN_SUFFIX='.impl' - INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${plugindir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${plugindir}/$${i%.dylib}.${LIB_MAJOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${plugindir}/$$i' - UNINSTALL_LIB='rm -f ${DESTDIR}${plugindir}/$$i ${DESTDIR}${plugindir}/$${i%.dylib}.${LIB_MAJOR}.dylib ${DESTDIR}${plugindir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib' + INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$$i' + UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib' CLEAN_LIB='' ;; *-*-solaris* | *-openbsd-* | *-mirbsd-*) @@ -83,8 +83,8 @@ PLUGIN_CFLAGS='-fPIC' PLUGIN_LDFLAGS='-shared -fPIC' PLUGIN_SUFFIX='.so' - INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${plugindir}/$$i.${LIB_MAJOR}.${LIB_MINOR} && rm -f ${DESTDIR}${plugindir}/$$i && ${LN_S} $$i.${LIB_MAJOR}.${LIB_MINOR} ${DESTDIR}${plugindir}/$$i' - UNINSTALL_LIB='rm -f ${DESTDIR}${plugindir}/$$i ${DESTDIR}${plugindir}/$$i.${LIB_MAJOR}.${LIB_MINOR}' + INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR} && rm -f ${DESTDIR}${libdir}/$$i && ${LN_S} $$i.${LIB_MAJOR}.${LIB_MINOR} ${DESTDIR}${libdir}/$$i' + UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}' CLEAN_LIB='' ;; *-*-cygwin | *-*-mingw32) @@ -98,8 +98,8 @@ PLUGIN_CFLAGS='' PLUGIN_LDFLAGS='-shared' PLUGIN_SUFFIX='.dll' - INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i && ${INSTALL} -m 755 $$i.a ${DESTDIR}${plugindir}/$$i.a' - UNINSTALL_LIB='rm -f ${DESTDIR}${bindir}/$$i ${DESTDIR}${plugindir}/$$i.a' + INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i && ${INSTALL} -m 755 $$i.a ${DESTDIR}${libdir}/$$i.a' + UNINSTALL_LIB='rm -f ${DESTDIR}${bindir}/$$i ${DESTDIR}${libdir}/$$i.a' CLEAN_LIB='${LIB}.a' ;; *) @@ -113,8 +113,8 @@ PLUGIN_CFLAGS='-fPIC' PLUGIN_LDFLAGS='-shared -fPIC' PLUGIN_SUFFIX='.so' - INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${plugindir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0 && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${plugindir}/$$i.${LIB_MAJOR} && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${plugindir}/$$i' - UNINSTALL_LIB='rm -f ${DESTDIR}${plugindir}/$$i ${DESTDIR}${plugindir}/$$i.${LIB_MAJOR} ${DESTDIR}${plugindir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0' + INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0 && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i' + UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0' CLEAN_LIB='' ;; esac