]> git.meshlink.io Git - catta/commitdiff
add pkg-config file, and AssemblyInfo
authorJames Willcox <snopr@snorp.net>
Fri, 9 Sep 2005 19:29:47 +0000 (19:29 +0000)
committerJames Willcox <snopr@snorp.net>
Fri, 9 Sep 2005 19:29:47 +0000 (19:29 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@543 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-sharp/AssemblyInfo.cs [new file with mode: 0644]
avahi-sharp/Makefile.am
avahi-sharp/avahi-sharp.pc.in [new file with mode: 0644]

diff --git a/avahi-sharp/AssemblyInfo.cs b/avahi-sharp/AssemblyInfo.cs
new file mode 100644 (file)
index 0000000..f8dd4ed
--- /dev/null
@@ -0,0 +1,50 @@
+/* $Id$ */
+
+/***
+  This file is part of avahi.
+
+  avahi is free software; you can redistribute it and/or modify it
+  under the terms of the GNU Lesser General Public License as
+  published by the Free Software Foundation; either version 2.1 of the
+  License, or (at your option) any later version.
+
+  avahi is distributed in the hope that it will be useful, but WITHOUT
+  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+  or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
+  Public License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with avahi; if not, write to the Free Software
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+  USA.
+***/
+
+using System.Reflection;
+using System.Runtime.CompilerServices;
+
+//
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+//
+[assembly: AssemblyTitle("avahi-sharp")]
+[assembly: AssemblyDescription("Mono bindings for the Avahi mDNS/DNS-SD stack")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("")]
+[assembly: AssemblyCopyright("(C) 2005 James Willcox  <snorp@snorp.net>")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]        
+
+//
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers 
+// by using the '*' as shown below:
+
+[assembly: AssemblyVersion("1.0.0")]
index ffee4cde25e040ff1aaf5197c11c1635238c339d..e91271522594bd860d09cbf8c7e7233a66806e4f 100644 (file)
@@ -3,9 +3,10 @@
 ASSEMBLY = avahi-sharp.dll
 
 CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
-EXTRA_DIST = $(AVAHISOURCES) avahi.snk
+EXTRA_DIST = $(AVAHISOURCES) avahi.snk avahi-sharp.pc.in
 
 AVAHISOURCES =                                 \
+       $(srcdir)/AssemblyInfo.cs       \
        $(srcdir)/AddressResolver.cs    \
        $(srcdir)/Client.cs             \
        $(srcdir)/ClientException.cs    \
@@ -18,11 +19,19 @@ AVAHISOURCES =                              \
        $(srcdir)/Utility.cs
 
 $(ASSEMBLY): $(AVAHISOURCES)
-       mcs -keyfile:$(srcdir)/avahi.snk -target:library -o $@ -debug $(AVAHISOURCES) -r:Mono.Posix
+       mcs -keyfile:$(srcdir)/avahi.snk -target:library -out:$@ -debug $(AVAHISOURCES) -r:Mono.Posix
 
 if HAVE_MONO
 all: $(ASSEMBLY)
 
+pkgcfgdir = $(libdir)/pkgconfig
+pkgcfg_DATA = avahi-sharp.pc
+
+avahi-sharp.pc: avahi-sharp.pc.in
+       sed -e 's,@prefix\@,$(prefix),g' \
+           -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
+           -e 's,@libdir\@,$(libdir),g' $< > $@
+
 install-data-hook:
        $(GACUTIL) /i $(ASSEMBLY) /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir)
 endif
diff --git a/avahi-sharp/avahi-sharp.pc.in b/avahi-sharp/avahi-sharp.pc.in
new file mode 100644 (file)
index 0000000..dd067f3
--- /dev/null
@@ -0,0 +1,8 @@
+prefix=@prefix@
+exec_prefix=@prefix@
+libdir=@libdir@
+
+Name: avahi-sharp
+Description: Mono bindings for the Avahi mDNS/DNS-SD stack
+Version: @PACKAGE_VERSION@
+Libs: -r:${libdir}/mono/gac/avahi-sharp/avahi-sharp.dll