Skip to content

Commit ed83b1c

Browse files
committed
Initial import of taglib-sharp; moved from forge
svn path=/trunk/taglib-sharp/; revision=64394
0 parents  commit ed83b1c

File tree

229 files changed

+30954
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+30954
-0
lines changed

AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Brian Nickel <[email protected]>

COPYING

+504
Large diffs are not rendered by default.

ChangeLog

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2006-08-25 Brian Nickel <[email protected]>
2+
3+
* Fixed a bug where ByteVector.Find wouldn't find items
4+
at the end of files, resulting in strings with '\0' in
5+
them.
6+
7+
2006-08-25 Brian Nickel <[email protected]>
8+
9+
* Nice big patch by Aaron with:
10+
* New attribute allows automatic support for mime types.
11+
* Make things easier for Banshee with convenience functions
12+
in TagLib.Tag
13+
14+
2006-08-22 Brian Nickel <[email protected]>
15+
16+
* Adopted changes by Aaron Bockover.
17+
* Added TagLib.AudioProperties.Duration
18+
* Marked TagLib.AudioProperties.Length obsolete
19+
* Added support for Windows Media Audio.
20+

Makefile.am

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
SUBDIRS = \
2+
src \
3+
examples \
4+
docs
5+
6+
pkgconfig_in_files = taglib-sharp.pc.in
7+
pkgconfigdir = $(libdir)/pkgconfig
8+
pkgconfig_DATA = $(pkgconfig_in_files:.pc.in=.pc)
9+
10+
EXTRA_DIST = \
11+
$(pkgconfig_in_files) \
12+
taglib-sharp.snk \
13+
taglib-sharp.csproj
14+
15+
DISTCLEANFILES = taglib-sharp.pc
16+
17+
MAINTAINERCLEANFILES = \
18+
compile \
19+
INSTALL \
20+
config.h.in \
21+
aclocal.m4 \
22+
ltmain.sh \
23+
Makefile.in \
24+
depcomp \
25+
missing \
26+
install-sh \
27+
configure \
28+
config.sub \
29+
config.guess \
30+
mkinstalldirs
31+
32+

NEWS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Describe the new features here

README

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
All that your user has to know goes here

autogen.sh

+136
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
#!/bin/sh
2+
# Run this to generate all the initial makefiles, etc.
3+
# Ripped off from GNOME macros version
4+
5+
DIE=0
6+
7+
srcdir=`dirname $0`
8+
test -z "$srcdir" && srcdir=.
9+
10+
if [ -n "$MONO_PATH" ]; then
11+
# from -> /mono/lib:/another/mono/lib
12+
# to -> /mono /another/mono
13+
for i in `echo ${MONO_PATH} | tr ":" " "`; do
14+
i=`dirname ${i}`
15+
if [ -n "{i}" -a -d "${i}/share/aclocal" ]; then
16+
ACLOCAL_FLAGS="-I ${i}/share/aclocal $ACLOCAL_FLAGS"
17+
fi
18+
if [ -n "{i}" -a -d "${i}/bin" ]; then
19+
PATH="${i}/bin:$PATH"
20+
fi
21+
done
22+
export PATH
23+
fi
24+
25+
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
26+
echo
27+
echo "**Error**: You must have \`autoconf' installed to compile Mono."
28+
echo "Download the appropriate package for your distribution,"
29+
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
30+
DIE=1
31+
}
32+
33+
if [ -z "$LIBTOOL" ]; then
34+
LIBTOOL=`which glibtool 2>/dev/null`
35+
if [ ! -x "$LIBTOOL" ]; then
36+
LIBTOOL=`which libtool`
37+
fi
38+
fi
39+
40+
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.ac >/dev/null) && {
41+
($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
42+
echo
43+
echo "**Error**: You must have \`libtool' installed to compile Mono."
44+
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
45+
echo "(or a newer version if it is available)"
46+
DIE=1
47+
}
48+
}
49+
50+
grep "^AM_GNU_GETTEXT" $srcdir/configure.ac >/dev/null && {
51+
grep "sed.*POTFILES" $srcdir/configure.ac >/dev/null || \
52+
(gettext --version) < /dev/null > /dev/null 2>&1 || {
53+
echo
54+
echo "**Error**: You must have \`gettext' installed to compile Mono."
55+
echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
56+
echo "(or a newer version if it is available)"
57+
DIE=1
58+
}
59+
}
60+
61+
(automake --version) < /dev/null > /dev/null 2>&1 || {
62+
echo
63+
echo "**Error**: You must have \`automake' installed to compile Mono."
64+
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
65+
echo "(or a newer version if it is available)"
66+
DIE=1
67+
NO_AUTOMAKE=yes
68+
}
69+
70+
71+
# if no automake, don't bother testing for aclocal
72+
test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
73+
echo
74+
echo "**Error**: Missing \`aclocal'. The version of \`automake'"
75+
echo "installed doesn't appear recent enough."
76+
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
77+
echo "(or a newer version if it is available)"
78+
DIE=1
79+
}
80+
81+
if test "$DIE" -eq 1; then
82+
exit 1
83+
fi
84+
85+
if test -z "$*"; then
86+
echo "**Warning**: I am going to run \`configure' with no arguments."
87+
echo "If you wish to pass any to it, please specify them on the"
88+
echo \`$0\'" command line."
89+
echo
90+
fi
91+
92+
case $CC in
93+
xlc )
94+
am_opt=--include-deps;;
95+
esac
96+
97+
98+
if grep "^AM_PROG_LIBTOOL" configure.ac >/dev/null; then
99+
if test -z "$NO_LIBTOOLIZE" ; then
100+
echo "Running libtoolize..."
101+
${LIBTOOL}ize --force --copy
102+
fi
103+
fi
104+
105+
echo "Running aclocal $ACLOCAL_FLAGS ..."
106+
aclocal $ACLOCAL_FLAGS || {
107+
echo
108+
echo "**Error**: aclocal failed. This may mean that you have not"
109+
echo "installed all of the packages you need, or you may need to"
110+
echo "set ACLOCAL_FLAGS to include \"-I \$prefix/share/aclocal\""
111+
echo "for the prefix where you installed the packages whose"
112+
echo "macros were not found"
113+
exit 1
114+
}
115+
116+
if grep "^AM_CONFIG_HEADER" configure.ac >/dev/null; then
117+
echo "Running autoheader..."
118+
autoheader || { echo "**Error**: autoheader failed."; exit 1; }
119+
fi
120+
121+
echo "Running automake --gnu $am_opt ..."
122+
automake --add-missing --gnu $am_opt ||
123+
{ echo "**Error**: automake failed."; exit 1; }
124+
echo "Running autoconf ..."
125+
autoconf || { echo "**Error**: autoconf failed."; exit 1; }
126+
127+
128+
conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
129+
130+
if test x$NOCONFIGURE = x; then
131+
echo Running $srcdir/configure $conf_flags "$@" ...
132+
$srcdir/configure $conf_flags "$@" \
133+
&& echo Now type \`make\' to compile $PKG_NAME || exit 1
134+
else
135+
echo Skipping configure process.
136+
fi

configure.ac

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
AC_INIT(src/TagLib/File.cs)
2+
AC_CANONICAL_SYSTEM
3+
AM_INIT_AUTOMAKE(taglib, 1.0.0.0)
4+
AM_MAINTAINER_MODE
5+
6+
AC_PROG_INSTALL
7+
8+
MONO_REQUIRED=1.1
9+
MONODOC_REQUIRED=1.1.9
10+
11+
dnl Pkgconfig
12+
PKG_CHECK_MODULES(MONO,
13+
mono >= $MONO_REQUIRED)
14+
15+
dnl Check for Mono
16+
AC_PATH_PROG(MCS, mcs)
17+
if test x$MCS = x; then
18+
AC_MSG_ERROR(You need mcs)
19+
fi
20+
AC_PATH_PROG(MONO, mono)
21+
if test x$MONO = x; then
22+
AC_MSG_ERROR(You need mono)
23+
fi
24+
25+
MCS_FLAGS="-codepage:utf8 -r:Mono.Posix"
26+
MONO_FLAGS=
27+
if test $USE_MAINTAINER_MODE = yes; then
28+
MCS_FLAGS="$MCS_FLAGS -debug"
29+
MONO_FLAGS="$MONO_FLAGS --debug"
30+
fi
31+
AC_SUBST(MCS_FLAGS)
32+
AC_SUBST(MONO_FLAGS)
33+
34+
dnl GAC
35+
AC_PATH_PROG(GACUTIL, gacutil)
36+
if test x$GACUTIL = x; then
37+
AC_MSG_ERROR(You need gacutil)
38+
fi
39+
40+
GACUTIL_FLAGS='/package taglib-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir)'
41+
AC_SUBST(GACUTIL_FLAGS)
42+
43+
AC_ARG_ENABLE(docs, AC_HELP_STRING([--disable-docs], [Do not build documentation]), with_docs=no, with_docs=yes)
44+
45+
dnl Monodoc
46+
if test "x$with_docs" = "xyes"; then
47+
AC_PATH_PROG(MONODOCER, monodocer, no)
48+
if test "x$MONODOCER" = "xno"; then
49+
AC_MSG_ERROR([You need to install monodoc, or pass --disable-docs to configure to skip documentation installation])
50+
fi
51+
52+
AC_PATH_PROG(MDASSEMBLER, mdassembler, no)
53+
if test "x$MDASSEMBLER" = "xno"; then
54+
AC_MSG_ERROR([You need to install mdassembler, or pass --disable-docs to configure to skip documentation installation])
55+
fi
56+
57+
DOCDIR=`$PKG_CONFIG monodoc --variable=sourcesdir`
58+
AC_SUBST(DOCDIR)
59+
AM_CONDITIONAL(BUILD_DOCS, true)
60+
else
61+
AC_MSG_NOTICE([not building Banshee API documentation])
62+
AM_CONDITIONAL(BUILD_DOCS, false)
63+
fi
64+
65+
PKG_CHECK_MODULES(GNOME_SHARP, gnome-sharp-2.0, have_gnome_sharp=yes, have_gnome_sharp=no)
66+
if test "x$have_gnome_sharp" = "xyes"; then
67+
AC_SUBST(GNOME_SHARP_LIBS)
68+
AM_CONDITIONAL(HAVE_GNOME_SHARP, true)
69+
else
70+
AM_CONDITIONAL(HAVE_GNOME_SHARP, false)
71+
fi
72+
73+
AC_OUTPUT([
74+
Makefile
75+
taglib-sharp.pc
76+
src/Makefile
77+
src/AssemblyInfo.cs
78+
examples/Makefile
79+
docs/Makefile
80+
])
81+

docs/Makefile.am

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
DOC_UPDATER = @MONODOCER@ -delete
2+
DOC_ASSEMBLER = @MDASSEMBLER@ --out taglib-sharp-docs --ecma
3+
4+
ASSEMBLIES = \
5+
$(top_builddir)/src/taglib-sharp.dll
6+
7+
ASSEMBLIES_BUILD = $(foreach asm,$(ASSEMBLIES),$(addprefix -assembly:,$(asm)))
8+
9+
if BUILD_DOCS
10+
all: MonodocNodeConfig.exe
11+
12+
MonodocNodeConfig.exe: MonodocNodeConfig.cs
13+
mcs -out:$@ -r:System.Xml $<
14+
15+
docdir = $(DESTDIR)$(DOCDIR)
16+
doc_DATA = \
17+
taglib-sharp-docs.zip \
18+
taglib-sharp-docs.tree \
19+
taglib-sharp-docs.source
20+
21+
update-docs: $(ASSEMBLIES)
22+
$(DOC_UPDATER) $(ASSEMBLIES_BUILD) -path:en
23+
24+
update-html:
25+
if [ -d taglib-sharp-web-docs ]; then \
26+
rm -rf taglib-sharp-web-docs; \
27+
fi; \
28+
mkdir taglib-sharp-web-docs; \
29+
monodocs2html --source en --dest taglib-sharp-web-docs;
30+
31+
taglib-sharp-docs.zip taglib-sharp-docs.tree: $(srcdir)/en/*/*.xml $(srcdir)/en/*.xml
32+
$(DOC_ASSEMBLER) $(srcdir)/en
33+
34+
install-data-hook:
35+
$(MONO) $(top_builddir)/docs/MonodocNodeConfig.exe --insert "TagLib Libraries" classlib-taglib-sharp $(DOCDIR)/../monodoc.xml
36+
37+
uninstall-hook:
38+
$(MONO) $(top_builddir)/docs/MonodocNodeConfig.exe --remove classlib-taglib-sharp $(DOCDIR)/../monodoc.xml
39+
endif
40+
41+
EXTRA_DIST = \
42+
$(srcdir)/en/*.xml \
43+
$(srcdir)/en/*/*.xml \
44+
taglib-sharp-docs.source \
45+
MonodocNodeConfig.cs
46+
47+
DISTCLEANFILES = \
48+
taglib-sharp-docs.zip \
49+
taglib-sharp-docs.tree
50+
51+
MAINTAINERCLEANFILES = \
52+
Makefile.in
53+
54+
CLEANFILES = \
55+
MonodocNodeConfig.exe
56+

0 commit comments

Comments
 (0)