[polypaudio-commits] r885 - in /trunk: configure.ac polyplib-browse.pc.in polyplib-glib-mainloop.pc.in polyplib-glib12-mainloop.pc.in polyplib-simple.pc.in polyplib.pc.in src/Makefile.am
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Tue May 16 10:54:35 PDT 2006
Author: lennart
Date: Tue May 16 19:54:33 2006
New Revision: 885
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=885&root=polypaudio&view=rev
Log:
* add new configure option --with-module-dir=
* drop version suffix from soname of libpolyp and friends
* add version suffix by default to $(modlibexecdir)
Modified:
trunk/configure.ac
trunk/polyplib-browse.pc.in
trunk/polyplib-glib-mainloop.pc.in
trunk/polyplib-glib12-mainloop.pc.in
trunk/polyplib-simple.pc.in
trunk/polyplib.pc.in
trunk/src/Makefile.am
Modified: trunk/configure.ac
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/configure.ac?rev=885&root=polypaudio&r1=884&r2=885&view=diff
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Tue May 16 19:54:33 2006
@@ -31,6 +31,12 @@
AC_SUBST(PA_API_VERSION, 8)
AC_SUBST(PA_PROTOCOL_VERSION, 8)
+AC_SUBST(LIBPOLYP_VERSION_INFO, [0:0:0])
+AC_SUBST(LIBPOLYPCORE_VERSION_INFO, [0:0:0])
+AC_SUBST(LIBPOLYP_SIMPLE_VERSION_INFO, [0:0:0])
+AC_SUBST(LIBPOLYP_BROWSE_VERSION_INFO, [0:0:0])
+AC_SUBST(LIBPOLYP_MAINLOOP_GLIB_VERSION_INFO, [0:0:0])
+
if type -p stow > /dev/null && test -d /usr/local/stow ; then
AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***])
ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
@@ -419,6 +425,13 @@
PREOPEN_MODS="$tmpLIBS"
AC_SUBST(PREOPEN_MODS)
fi
+
+AC_ARG_WITH(
+ [module-dir],
+ AC_HELP_STRING([--with-module-dir],[Directory where to install the modules to (defaults to ${libdir}/polypaudio-${PA_MAJORMINOR}]),
+ [modlibexecdir=$withval], [modlibexecdir="${libdir}/polypaudio-${PA_MAJORMINOR}"])
+
+AC_SUBST(modlibexecdir)
AC_ARG_ENABLE(
[force-preopen],
Modified: trunk/polyplib-browse.pc.in
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/polyplib-browse.pc.in?rev=885&root=polypaudio&r1=884&r2=885&view=diff
==============================================================================
--- trunk/polyplib-browse.pc.in (original)
+++ trunk/polyplib-browse.pc.in Tue May 16 19:54:33 2006
@@ -6,6 +6,6 @@
Name: polyplib-browse
Description: Polypaudio network browsing API
Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -lpolyp-browse- at PA_MAJORMINOR@
+Libs: -L${libdir} -lpolyp-browse
Cflags: -D_REENTRANT -I${includedir}
Requires: polyplib
Modified: trunk/polyplib-glib-mainloop.pc.in
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/polyplib-glib-mainloop.pc.in?rev=885&root=polypaudio&r1=884&r2=885&view=diff
==============================================================================
--- trunk/polyplib-glib-mainloop.pc.in (original)
+++ trunk/polyplib-glib-mainloop.pc.in Tue May 16 19:54:33 2006
@@ -6,6 +6,6 @@
Name: polyplib-glib-mainloop
Description: GLIB main loop wrapper for polypaudio
Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -lpolyp-mainloop-glib- at PA_MAJORMINOR@
+Libs: -L${libdir} -lpolyp-mainloop-glib
Cflags: -D_REENTRANT -I${includedir}
Requires: polyplib glib-2.0
Modified: trunk/polyplib-glib12-mainloop.pc.in
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/polyplib-glib12-mainloop.pc.in?rev=885&root=polypaudio&r1=884&r2=885&view=diff
==============================================================================
--- trunk/polyplib-glib12-mainloop.pc.in (original)
+++ trunk/polyplib-glib12-mainloop.pc.in Tue May 16 19:54:33 2006
@@ -6,6 +6,6 @@
Name: polyplib-glib12-mainloop
Description: GLIB main loop wrapper for polypaudio
Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -lpolyp-mainloop-glib12- at PA_MAJORMINOR@
+Libs: -L${libdir} -lpolyp-mainloop-glib12
Cflags: -D_REENTRANT -I${includedir}
Requires: polyplib glib
Modified: trunk/polyplib-simple.pc.in
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/polyplib-simple.pc.in?rev=885&root=polypaudio&r1=884&r2=885&view=diff
==============================================================================
--- trunk/polyplib-simple.pc.in (original)
+++ trunk/polyplib-simple.pc.in Tue May 16 19:54:33 2006
@@ -6,6 +6,6 @@
Name: polyplib-simple
Description: Simplified synchronous client interface to polypaudio
Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -lpolyp-simple- at PA_MAJORMINOR@
+Libs: -L${libdir} -lpolyp-simple
Cflags: -D_REENTRANT -I${includedir}
Requires: polyplib
Modified: trunk/polyplib.pc.in
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/polyplib.pc.in?rev=885&root=polypaudio&r1=884&r2=885&view=diff
==============================================================================
--- trunk/polyplib.pc.in (original)
+++ trunk/polyplib.pc.in Tue May 16 19:54:33 2006
@@ -6,6 +6,6 @@
Name: polyplib
Description: Client interface to polypaudio
Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -lpolyp- at PA_MAJORMINOR@
+Libs: -L${libdir} -lpolyp
Cflags: -D_REENTRANT -I${includedir}
Requires:
Modified: trunk/src/Makefile.am
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/Makefile.am?rev=885&root=polypaudio&r1=884&r2=885&view=diff
==============================================================================
--- trunk/src/Makefile.am (original)
+++ trunk/src/Makefile.am Tue May 16 19:54:33 2006
@@ -26,8 +26,6 @@
polypcoreincludedir=$(includedir)/polypcore
polypconfdir=$(sysconfdir)/polypaudio
-modlibexecdir=$(libdir)/polypaudio
-
###################################
# Defines #
###################################
@@ -146,32 +144,32 @@
bin_SCRIPTS = esdcompat.sh
pacat_SOURCES = utils/pacat.c
-pacat_LDADD = $(AM_LDADD) libpolyp- at PA_MAJORMINOR@.la
+pacat_LDADD = $(AM_LDADD) libpolyp.la
pacat_CFLAGS = $(AM_CFLAGS)
pacat_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
paplay_SOURCES = utils/paplay.c
-paplay_LDADD = $(AM_LDADD) libpolyp- at PA_MAJORMINOR@.la $(LIBSNDFILE_LIBS)
+paplay_LDADD = $(AM_LDADD) libpolyp.la $(LIBSNDFILE_LIBS)
paplay_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
paplay_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
pactl_SOURCES = utils/pactl.c
-pactl_LDADD = $(AM_LDADD) libpolyp- at PA_MAJORMINOR@.la $(LIBSNDFILE_LIBS)
+pactl_LDADD = $(AM_LDADD) libpolyp.la $(LIBSNDFILE_LIBS)
pactl_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
pactl_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
pacmd_SOURCES = utils/pacmd.c polypcore/pid.c polypcore/pid.h
pacmd_CFLAGS = $(AM_CFLAGS)
-pacmd_LDADD = $(AM_LDADD) libpolyp- at PA_MAJORMINOR@.la
+pacmd_LDADD = $(AM_LDADD) libpolyp.la
pacmd_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
pax11publish_SOURCES = utils/pax11publish.c
pax11publish_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
-pax11publish_LDADD = $(AM_LDADD) libpolyp- at PA_MAJORMINOR@.la $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
+pax11publish_LDADD = $(AM_LDADD) libpolyp.la $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
pax11publish_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
pabrowse_SOURCES = utils/pabrowse.c
-pabrowse_LDADD = $(AM_LDADD) libpolyp- at PA_MAJORMINOR@.la libpolyp-browse- at PA_MAJORMINOR@.la
+pabrowse_LDADD = $(AM_LDADD) libpolyp.la libpolyp-browse.la
pabrowse_CFLAGS = $(AM_CFLAGS)
pabrowse_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
@@ -210,12 +208,12 @@
mainloop_test_SOURCES = tests/mainloop-test.c
mainloop_test_CFLAGS = $(AM_CFLAGS)
-mainloop_test_LDADD = $(AM_LDADD) libpolyp- at PA_MAJORMINOR@.la
+mainloop_test_LDADD = $(AM_LDADD) libpolyp.la
mainloop_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
thread_mainloop_test_SOURCES = tests/thread-mainloop-test.c
thread_mainloop_test_CFLAGS = $(AM_CFLAGS)
-thread_mainloop_test_LDADD = $(AM_LDADD) libpolyp- at PA_MAJORMINOR@.la
+thread_mainloop_test_LDADD = $(AM_LDADD) libpolyp.la
thread_mainloop_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
utf8_test_SOURCES = tests/utf8-test.c
@@ -229,12 +227,12 @@
mcalign_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
pacat_simple_SOURCES = tests/pacat-simple.c
-pacat_simple_LDADD = $(AM_LDADD) libpolyp- at PA_MAJORMINOR@.la libpolyp-simple- at PA_MAJORMINOR@.la
+pacat_simple_LDADD = $(AM_LDADD) libpolyp.la libpolyp-simple.la
pacat_simple_CFLAGS = $(AM_CFLAGS)
pacat_simple_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
parec_simple_SOURCES = tests/parec-simple.c
-parec_simple_LDADD = $(AM_LDADD) libpolyp- at PA_MAJORMINOR@.la libpolyp-simple- at PA_MAJORMINOR@.la
+parec_simple_LDADD = $(AM_LDADD) libpolyp.la libpolyp-simple.la
parec_simple_CFLAGS = $(AM_CFLAGS)
parec_simple_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
@@ -245,12 +243,12 @@
voltest_SOURCES = tests/voltest.c
voltest_CFLAGS = $(AM_CFLAGS)
-voltest_LDADD = $(AM_LDADD) libpolyp- at PA_MAJORMINOR@.la
+voltest_LDADD = $(AM_LDADD) libpolyp.la
voltest_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
channelmap_test_SOURCES = tests/channelmap-test.c
channelmap_test_CFLAGS = $(AM_CFLAGS)
-channelmap_test_LDADD = $(AM_LDADD) libpolyp- at PA_MAJORMINOR@.la
+channelmap_test_LDADD = $(AM_LDADD) libpolyp.la
channelmap_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
cpulimit_test_SOURCES = tests/cpulimit-test.c daemon/cpulimit.c daemon/cpulimit.h
@@ -265,12 +263,12 @@
mainloop_test_glib_SOURCES = $(mainloop_test_SOURCES)
mainloop_test_glib_CFLAGS = $(mainloop_test_CFLAGS) $(GLIB20_CFLAGS) -DGLIB_MAIN_LOOP
-mainloop_test_glib_LDADD = $(mainloop_test_LDADD) $(GLIB20_LIBS) libpolyp-mainloop-glib- at PA_MAJORMINOR@.la
+mainloop_test_glib_LDADD = $(mainloop_test_LDADD) $(GLIB20_LIBS) libpolyp-mainloop-glib.la
mainloop_test_glib_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
mainloop_test_glib12_SOURCES = $(mainloop_test_SOURCES)
mainloop_test_glib12_CFLAGS = $(mainloop_test_CFLAGS) $(GLIB12_CFLAGS) -DGLIB_MAIN_LOOP
-mainloop_test_glib12_LDADD = $(mainloop_test_LDADD) $(GLIB12_LIBS) libpolyp-mainloop-glib12- at PA_MAJORMINOR@.la
+mainloop_test_glib12_LDADD = $(mainloop_test_LDADD) $(GLIB12_LIBS) libpolyp-mainloop-glib12.la
mainloop_test_glib12_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
memblockq_test_SOURCES = \
@@ -287,7 +285,7 @@
memblockq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
sync_playback_SOURCES = tests/sync-playback.c
-sync_playback_LDADD = $(AM_LDADD) libpolyp- at PA_MAJORMINOR@.la
+sync_playback_LDADD = $(AM_LDADD) libpolyp.la
sync_playback_CFLAGS = $(AM_CFLAGS)
sync_playback_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
@@ -323,26 +321,26 @@
endif
lib_LTLIBRARIES = \
- libpolyp- at PA_MAJORMINOR@.la \
- libpolyp-simple- at PA_MAJORMINOR@.la
+ libpolyp.la \
+ libpolyp-simple.la
if HAVE_HOWL
lib_LTLIBRARIES += \
- libpolyp-browse- at PA_MAJORMINOR@.la
+ libpolyp-browse.la
endif
if HAVE_GLIB20
lib_LTLIBRARIES += \
- libpolyp-mainloop-glib- at PA_MAJORMINOR@.la
+ libpolyp-mainloop-glib.la
endif
if HAVE_GLIB12
lib_LTLIBRARIES += \
- libpolyp-mainloop-glib12- at PA_MAJORMINOR@.la
+ libpolyp-mainloop-glib12.la
endif
# Public interface
-libpolyp_ at PA_MAJORMINOR@_la_SOURCES = \
+libpolyp_la_SOURCES = \
polyp/cdecl.h \
polyp/channelmap.c polyp/channelmap.h \
polyp/client-conf.c polyp/client-conf.h \
@@ -366,7 +364,7 @@
polypcore/poll.c polypcore/poll.h
# Internal stuff that is shared with libpolypcore
-libpolyp_ at PA_MAJORMINOR@_la_SOURCES += \
+libpolyp_la_SOURCES += \
polypcore/authkey.c polypcore/authkey.h \
polypcore/conf-parser.c polypcore/conf-parser.h \
polypcore/dynarray.c polypcore/dynarray.h \
@@ -398,49 +396,49 @@
polypcore/llist.h
if OS_IS_WIN32
-libpolyp_ at PA_MAJORMINOR@_la_SOURCES += \
+libpolyp_la_SOURCES += \
polypcore/dllmain.c
endif
if HAVE_X11
-libpolyp_ at PA_MAJORMINOR@_la_SOURCES += \
+libpolyp_la_SOURCES += \
polyp/client-conf-x11.c polyp/client-conf-x11.h \
polypcore/x11prop.c polypcore/x11prop.h
endif
-libpolyp_ at PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
-libpolyp_ at PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
-libpolyp_ at PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) $(WINSOCK_LIBS)
+libpolyp_la_CFLAGS = $(AM_CFLAGS)
+libpolyp_la_LDFLAGS = -version-info $(LIBPOLYP_VERSION_INFO)
+libpolyp_la_LIBADD = $(AM_LIBADD) $(WINSOCK_LIBS)
if HAVE_X11
-libpolyp_ at PA_MAJORMINOR@_la_CFLAGS += $(X_CFLAGS)
-libpolyp_ at PA_MAJORMINOR@_la_LDFLAGS += $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
+libpolyp_la_CFLAGS += $(X_CFLAGS)
+libpolyp_la_LDFLAGS += $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
endif
if HAVE_LIBASYNCNS
-libpolyp_ at PA_MAJORMINOR@_la_CFLAGS += $(LIBASYNCNS_CFLAGS)
-libpolyp_ at PA_MAJORMINOR@_la_LIBADD += $(LIBASYNCNS_LIBS)
-endif
-
-libpolyp_simple_ at PA_MAJORMINOR@_la_SOURCES = polyp/simple.c polyp/simple.h
-libpolyp_simple_ at PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS)
-libpolyp_simple_ at PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp- at PA_MAJORMINOR@.la
-libpolyp_simple_ at PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
-
-libpolyp_browse_ at PA_MAJORMINOR@_la_SOURCES = polyp/browser.c polyp/browser.h
-libpolyp_browse_ at PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(HOWL_CFLAGS)
-libpolyp_browse_ at PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp- at PA_MAJORMINOR@.la $(HOWL_LIBS)
-libpolyp_browse_ at PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
-
-libpolyp_mainloop_glib_ at PA_MAJORMINOR@_la_SOURCES = polyp/glib-mainloop.h polyp/glib-mainloop.c
-libpolyp_mainloop_glib_ at PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
-libpolyp_mainloop_glib_ at PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp- at PA_MAJORMINOR@.la $(GLIB20_LIBS)
-libpolyp_mainloop_glib_ at PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
-
-libpolyp_mainloop_glib12_ at PA_MAJORMINOR@_la_SOURCES = polyp/glib-mainloop.h polyp/glib12-mainloop.c
-libpolyp_mainloop_glib12_ at PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(GLIB12_CFLAGS)
-libpolyp_mainloop_glib12_ at PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) libpolyp- at PA_MAJORMINOR@.la $(GLIB12_LIBS)
-libpolyp_mainloop_glib12_ at PA_MAJORMINOR@_la_LDFLAGS = -version-info 0:0:0
+libpolyp_la_CFLAGS += $(LIBASYNCNS_CFLAGS)
+libpolyp_la_LIBADD += $(LIBASYNCNS_LIBS)
+endif
+
+libpolyp_simple_la_SOURCES = polyp/simple.c polyp/simple.h
+libpolyp_simple_la_CFLAGS = $(AM_CFLAGS)
+libpolyp_simple_la_LIBADD = $(AM_LIBADD) libpolyp.la
+libpolyp_simple_la_LDFLAGS = -version-info $(LIBPOLYP_SIMPLE_VERSION_INFO)
+
+libpolyp_browse_la_SOURCES = polyp/browser.c polyp/browser.h
+libpolyp_browse_la_CFLAGS = $(AM_CFLAGS) $(HOWL_CFLAGS)
+libpolyp_browse_la_LIBADD = $(AM_LIBADD) libpolyp.la $(HOWL_LIBS)
+libpolyp_browse_la_LDFLAGS = -version-info $(LIBPOLYP_BROWSE_VERSION_INFO)
+
+libpolyp_mainloop_glib_la_SOURCES = polyp/glib-mainloop.h polyp/glib-mainloop.c
+libpolyp_mainloop_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS)
+libpolyp_mainloop_glib_la_LIBADD = $(AM_LIBADD) libpolyp.la $(GLIB20_LIBS)
+libpolyp_mainloop_glib_la_LDFLAGS = -version-info $(LIBPOLYP_MAINLOOP_GLIB_VERSION_INFO)
+
+libpolyp_mainloop_glib12_la_SOURCES = polyp/glib-mainloop.h polyp/glib12-mainloop.c
+libpolyp_mainloop_glib12_la_CFLAGS = $(AM_CFLAGS) $(GLIB12_CFLAGS)
+libpolyp_mainloop_glib12_la_LIBADD = $(AM_LIBADD) libpolyp.la $(GLIB12_LIBS)
+libpolyp_mainloop_glib12_la_LDFLAGS = -version-info $(LIBPOLYP_MAINLOOP_GLIB_VERSION_INFO)
###################################
# Daemon core library #
@@ -557,7 +555,7 @@
endif
libpolypcore_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBOIL_CFLAGS)
-libpolypcore_la_LDFLAGS = -avoid-version
+libpolypcore_la_LDFLAGS = -version-info $(LIBPOLYPCORE_VERSION_INFO)
libpolypcore_la_LIBADD = $(AM_LIBADD) $(LIBLTDL) $(LIBSAMPLERATE_LIBS) $(LIBSNDFILE_LIBS) $(WINSOCK_LIBS) $(LIBOIL_LIBS)
###################################
More information about the pulseaudio-commits
mailing list