Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 115 lines (88 sloc) 2.943 kb
ed83b1c Initial import of taglib-sharp; moved from forge
Aaron Bockover authored
1 AC_INIT(src/TagLib/File.cs)
2 AC_CANONICAL_SYSTEM
f61e41e 2006-09-01 Aaron Bockover <abockover@novell.com>
Aaron Bockover authored
3
47b7595 @bnickel 2007-06-24 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
4 ASSEMBLY_NAME="taglib-sharp"
5
57a64ea @bnickel 2007-06-26 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
6 if test -d $srcdir/.svn && test -e $srcdir/.svn/entries; then
7 svn info $srcdir/ChangeLog |grep Revision: |cut --bytes=11- > $srcdir/svn-revision
3d82296 @bnickel 2007-06-25 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
8 fi
57a64ea @bnickel 2007-06-26 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
9 SVN_REVISION=$(cat $srcdir/svn-revision)
3d82296 @bnickel 2007-06-25 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
10
57a64ea @bnickel 2007-06-26 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
11 VERSION="2.0.1.$SVN_REVISION"
12 ASSEMBLY_VERSION="$VERSION"
47b7595 @bnickel 2007-06-24 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
13
57a64ea @bnickel 2007-06-26 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
14 echo "$ASSEMBLY_VERSION"
47b7595 @bnickel 2007-06-24 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
15
16 POLICY_2_0_VERSIONS="2.0.0.0-$ASSEMBLY_VERSION"
17 AC_SUBST(POLICY_2_0_VERSIONS)
18
f61e41e 2006-09-01 Aaron Bockover <abockover@novell.com>
Aaron Bockover authored
19
20 AC_SUBST(VERSION)
47b7595 @bnickel 2007-06-24 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
21 AC_SUBST(ASSEMBLY_VERSION)
22 AC_SUBST(ASSEMBLY_NAME)
f61e41e 2006-09-01 Aaron Bockover <abockover@novell.com>
Aaron Bockover authored
23
47b7595 @bnickel 2007-06-24 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
24 AM_INIT_AUTOMAKE($ASSEMBLY_NAME, $VERSION)
ed83b1c Initial import of taglib-sharp; moved from forge
Aaron Bockover authored
25 AM_MAINTAINER_MODE
26
27 AC_PROG_INSTALL
28
29 MONO_REQUIRED=1.1
30 MONODOC_REQUIRED=1.1.9
31
f61e41e 2006-09-01 Aaron Bockover <abockover@novell.com>
Aaron Bockover authored
32 DISTCHECK_CONFIGURE_FLAGS="--disable-docs"
33 AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
34
35 PKG_CHECK_MODULES(MONO, mono >= $MONO_REQUIRED)
ed83b1c Initial import of taglib-sharp; moved from forge
Aaron Bockover authored
36
37 dnl Check for Mono
63e440b 2006-10-29 Aaron Bockover <abock@gnome.org>
Aaron Bockover authored
38 AC_PATH_PROG(MCS, gmcs)
ed83b1c Initial import of taglib-sharp; moved from forge
Aaron Bockover authored
39 if test x$MCS = x; then
f61e41e 2006-09-01 Aaron Bockover <abockover@novell.com>
Aaron Bockover authored
40 AC_MSG_ERROR(You need mcs)
ed83b1c Initial import of taglib-sharp; moved from forge
Aaron Bockover authored
41 fi
42 AC_PATH_PROG(MONO, mono)
43 if test x$MONO = x; then
f61e41e 2006-09-01 Aaron Bockover <abockover@novell.com>
Aaron Bockover authored
44 AC_MSG_ERROR(You need mono)
ed83b1c Initial import of taglib-sharp; moved from forge
Aaron Bockover authored
45 fi
46
0a1d5a1 @bnickel 2007-05-25 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
47 MCS_FLAGS="-codepage:utf8 -debug"
ed83b1c Initial import of taglib-sharp; moved from forge
Aaron Bockover authored
48 MONO_FLAGS=
f61e41e 2006-09-01 Aaron Bockover <abockover@novell.com>
Aaron Bockover authored
49
ed83b1c Initial import of taglib-sharp; moved from forge
Aaron Bockover authored
50 if test $USE_MAINTAINER_MODE = yes; then
51 MONO_FLAGS="$MONO_FLAGS --debug"
52 fi
f61e41e 2006-09-01 Aaron Bockover <abockover@novell.com>
Aaron Bockover authored
53
ed83b1c Initial import of taglib-sharp; moved from forge
Aaron Bockover authored
54 AC_SUBST(MCS_FLAGS)
55 AC_SUBST(MONO_FLAGS)
56
57 dnl GAC
58 AC_PATH_PROG(GACUTIL, gacutil)
59 if test x$GACUTIL = x; then
60 AC_MSG_ERROR(You need gacutil)
61 fi
62
47b7595 @bnickel 2007-06-24 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
63 GACUTIL_FLAGS='/package $(ASSEMBLY_NAME) /gacdir $(libdir) /root $(DESTDIR)$(libdir)'
ed83b1c Initial import of taglib-sharp; moved from forge
Aaron Bockover authored
64 AC_SUBST(GACUTIL_FLAGS)
47b7595 @bnickel 2007-06-24 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
65 GACUTIL_POLICY_FLAGS='/gacdir $(libdir) /root $(DESTDIR)$(libdir)'
66 AC_SUBST(GACUTIL_POLICY_FLAGS)
ed83b1c Initial import of taglib-sharp; moved from forge
Aaron Bockover authored
67
68 AC_ARG_ENABLE(docs, AC_HELP_STRING([--disable-docs], [Do not build documentation]), with_docs=no, with_docs=yes)
69
70 dnl Monodoc
71 if test "x$with_docs" = "xyes"; then
72 AC_PATH_PROG(MONODOCER, monodocer, no)
73 if test "x$MONODOCER" = "xno"; then
74 AC_MSG_ERROR([You need to install monodoc, or pass --disable-docs to configure to skip documentation installation])
75 fi
76
77 AC_PATH_PROG(MDASSEMBLER, mdassembler, no)
78 if test "x$MDASSEMBLER" = "xno"; then
79 AC_MSG_ERROR([You need to install mdassembler, or pass --disable-docs to configure to skip documentation installation])
80 fi
81
82 DOCDIR=`$PKG_CONFIG monodoc --variable=sourcesdir`
83 AC_SUBST(DOCDIR)
84 AM_CONDITIONAL(BUILD_DOCS, true)
85 else
86 AC_MSG_NOTICE([not building Banshee API documentation])
87 AM_CONDITIONAL(BUILD_DOCS, false)
88 fi
89
90 PKG_CHECK_MODULES(GNOME_SHARP, gnome-sharp-2.0, have_gnome_sharp=yes, have_gnome_sharp=no)
91 if test "x$have_gnome_sharp" = "xyes"; then
92 AC_SUBST(GNOME_SHARP_LIBS)
93 AM_CONDITIONAL(HAVE_GNOME_SHARP, true)
94 else
95 AM_CONDITIONAL(HAVE_GNOME_SHARP, false)
96 fi
97
2d1b94f @bnickel 2007-06-10 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
98 #PKG_CHECK_MODULES(MONO_NUNIT, mono-nunit >= 1.0, do_tests="yes", do_tests="no") AC_SUBST(MONO_NUNIT_LIBS)
99 #AM_CONDITIONAL(ENABLE_TESTS, test "x$do_tests" = "xyes")
100 #if test "x$do_tests" = "xno"; then
101 # AC_MSG_WARN([Could not find mono-nunit: tests will not be available.])
102 #fi
63e440b 2006-10-29 Aaron Bockover <abock@gnome.org>
Aaron Bockover authored
103
ed83b1c Initial import of taglib-sharp; moved from forge
Aaron Bockover authored
104 AC_OUTPUT([
105 Makefile
106 taglib-sharp.pc
107 src/Makefile
108 src/AssemblyInfo.cs
47b7595 @bnickel 2007-06-24 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
109 src/policy.2.0.taglib-sharp.config
ed83b1c Initial import of taglib-sharp; moved from forge
Aaron Bockover authored
110 examples/Makefile
111 docs/Makefile
112 ])
113
57a64ea @bnickel 2007-06-26 Brian Nickel <brian.nickel@gmail.com>
bnickel authored
114 echo "TagLib# ($ASSEMBLY_NAME-$ASSEMBLY_VERSION) is ready to be compiled."
Something went wrong with that request. Please try again.