]> git.meshlink.io Git - catta/commitdiff
* Add pkg-config files for avahi-glib/avahi-client
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Aug 2005 18:54:32 +0000 (18:54 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 15 Aug 2005 18:54:32 +0000 (18:54 +0000)
* Generate .pc files with sed
* use libtool for building libdbus-watch-glue

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@335 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

Makefile.am
avahi-client.pc.in [new file with mode: 0644]
avahi-client/Makefile.am
avahi-common/Makefile.am
avahi-core.pc.in
avahi-core/Makefile.am
avahi-daemon/Makefile.am
avahi-glib.pc.in [new file with mode: 0644]
configure.ac

index e23db8e97d97f899ae1ef66f65b161094fb18c4a..719ecade9b384f7d394892b8d77bb22cef6d863a 100644 (file)
@@ -31,7 +31,10 @@ EXTRA_DIST = \
        docs/DBUS-API \
        docs/AUTHORS \
        docs/HACKING \
-       docs/overview.dia
+       docs/overview.dia \
+       avahi-core.pc.in \
+       avahi-client.pc.in \
+       avahi-glib.pc.in
 
 SUBDIRS = \
        common \
@@ -49,7 +52,23 @@ SUBDIRS = \
        tests
 
 pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = avahi-core.pc
+pkgconfig_DATA = \
+       avahi-core.pc \
+       avahi-client.pc \
+       avahi-glib.pc
+
+avahi-core.pc: avahi-core.pc.in
+       sed -e 's,@prefix\@,$(prefix),g' \
+           -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
+
+avahi-client.pc: avahi-client.pc.in
+       sed -e 's,@prefix\@,$(prefix),g' \
+           -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
+
+avahi-glib.pc: avahi-glib.pc.in
+       sed -e 's,@prefix\@,$(prefix),g' \
+           -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
+
 
 MOSTLYCLEANFILES = $(DX_CLEANFILES)
 
diff --git a/avahi-client.pc.in b/avahi-client.pc.in
new file mode 100644 (file)
index 0000000..23a4d4f
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: avahi-client
+Description: Avahi Multicast DNS Responder (Client Support)
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lavahi-common -lavahi-client
+Cflags: -D_REENTRANT -I${includedir}
index b7abf9f5d077e73a3361094d6b0a07b4e97435a5..0a5bffa5962c3109486c06f2691acae408885d95 100644 (file)
@@ -44,7 +44,8 @@ libavahi_client_la_SOURCES = \
        browser.c
 
 libavahi_client_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
-libavahi_client_la_LIBADD = $(AM_LDADD) $(DBUS_LIBS) ../avahi-common/libavahi-common.la ../avahi-common/libdbus-watch-glue.a 
+libavahi_client_la_LIBADD = $(AM_LDADD) $(DBUS_LIBS) ../avahi-common/libavahi-common.la ../avahi-common/libdbus-watch-glue.la
+libavahi_client_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info 0:0:0
 
 client_test_SOURCES = \
        client-test.c
index 4310797f85f42e3e2228693dc91de11b3eb2403b..c9c04e8cd217333a19c4feeb23736cfc02291399 100644 (file)
@@ -62,14 +62,13 @@ libavahi_common_la_SOURCES = \
        watch.h gccmacro.h
 
 libavahi_common_la_CFLAGS = $(AM_CFLAGS)
-libavahi_common_la_LIBADD = $(AM_LDADD)
+libavahi_common_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info 0:0:0
 
 strlst_test_SOURCES = \
        strlst.c strlst.h \
        malloc.c malloc.h \
        strlst-test.c
 strlst_test_CFLAGS = $(AM_CFLAGS)
-strlst_test_LDADD = $(AM_LDADD)
 
 alternative_test_SOURCES = \
        alternative.c alternative.h \
@@ -77,14 +76,12 @@ alternative_test_SOURCES = \
        domain.c domain.h \
        alternative-test.c
 alternative_test_CFLAGS = $(AM_CFLAGS)
-alternative_test_LDADD = $(AM_LDADD)
 
 domain_test_SOURCES = \
        domain.c domain.h \
        malloc.c malloc.h \
        domain-test.c
 domain_test_CFLAGS = $(AM_CFLAGS)
-domain_test_LDADD = $(AM_LDADD)
 
 watch_test_SOURCES = \
        timeval.c timeval.h \
@@ -93,28 +90,25 @@ watch_test_SOURCES = \
        malloc.c malloc.h \
        watch-test.c
 watch_test_CFLAGS = $(AM_CFLAGS)
-watch_test_LDADD = $(AM_LDADD)
 
 timeval_test_SOURCES = \
        timeval.c timeval.h \
        timeval-test.c
 timeval_test_CFLAGS = $(AM_CFLAGS)
-timeval_test_LDADD = $(AM_LDADD)
-
-
 
 if ENABLE_DBUS
+
 noinst_HEADERS += \
        dbus.h \
        dbus-watch-glue.h
 
-noinst_LIBRARIES = \
-       libdbus-watch-glue.a
+noinst_LTLIBRARIES = \
+       libdbus-watch-glue.la
 
-libdbus_watch_glue_a_SOURCES = \
+libdbus_watch_glue_la_SOURCES = \
        dbus-watch-glue.h dbus-watch-glue.c
-
-libdbus_watch_glue_a_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
+libdbus_watch_glue_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
+libdbus_watch_glue_la_LDFLAGS = $(AM_LDFLAGS) -static -export-dynamic
 
 endif
 
index 1dcbb8aa6d1c0699130094fd7da26bdd9eb2f3ca..e8629c0ccc0e4314b8189ff4274a460c54d81c65 100644 (file)
@@ -4,7 +4,7 @@ libdir=${exec_prefix}/lib
 includedir=${prefix}/include
 
 Name: avahi-core
-Description: Avahi Embeddable Multicast DNS Engine
+Description: Avahi Multicast DNS Responder (Embeddable Stack)
 Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -lavahi-core -lavahi-common
+Libs: -L${libdir} -lavahi-common -lavahi-core
 Cflags: -D_REENTRANT -I${includedir}
index a3005605dfdf4ca3d3d1553a8d2681ee977e0ed6..71f698eda6bf53b43fae1200a147025fae1df599 100644 (file)
@@ -78,6 +78,7 @@ libavahi_core_la_SOURCES = \
 
 libavahi_core_la_CFLAGS = $(AM_CFLAGS)
 libavahi_core_la_LIBADD = $(AM_LDADD) $(COMMON_LDADD)
+libavahi_core_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info 0:0:0
 
 prioq_test_SOURCES = \
        prioq-test.c  \
index 2792f2109c6908d32cd3c79ca42918262dcce4a4..563b8d1c71bcb2ae4e15505802bf9553a47a944c 100644 (file)
@@ -92,12 +92,13 @@ EXTRA_DIST = \
        introspect.xsl
 
 if ENABLE_DBUS
+
 avahi_daemon_SOURCES += \
        dbus-protocol.c \
        dbus-protocol.h
 
 avahi_daemon_LDADD += \
-       ../avahi-common/libdbus-watch-glue.a
+       ../avahi-common/libdbus-watch-glue.la
 
 dbusservice_DATA = avahi-dbus.conf
 
diff --git a/avahi-glib.pc.in b/avahi-glib.pc.in
new file mode 100644 (file)
index 0000000..6556047
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: avahi-glib
+Description: Avahi Multicast DNS Responder (GLib Support)
+Version: @PACKAGE_VERSION@
+Requires: glib-2.0
+Libs: -L${libdir} -lavahi-commong -lavahi-glib
+Cflags: -D_REENTRANT -I${includedir}
index 99803ecdcb0051790dd7a6e45b4f70612fc4d3cc..693a7bc7b0637c870437da92445d70f244bc3eb9 100644 (file)
@@ -280,7 +280,6 @@ AM_CONDITIONAL(HAVE_PYTHON, [test "x$HAVE_PYTHON" = xyes ])
 # ==========================================================================
 AC_CONFIG_FILES([
 Makefile 
-avahi-core.pc 
 avahi-common/Makefile 
 avahi-core/Makefile 
 avahi-glib/Makefile