]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
packaging related changes
authorJaroslav Kysela <perex@perex.cz>
Thu, 24 Mar 2005 10:47:29 +0000 (10:47 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 24 Mar 2005 10:47:29 +0000 (10:47 +0000)
Makefile.am
acinclude.m4 [new file with mode: 0644]
configure.in
cvscompile [new file with mode: 0644]

index 8430c3578e3b6533d02ed949d29fbae214bd33cb..09dae4e89f9ab1507de70fdd0aa1870187d10feb 100644 (file)
@@ -1,2 +1,10 @@
 SUBDIRS = pcm
 AUTOMAKE_OPTIONS = foreign
+
+dist-hook:
+       -chmod -R a+r $(distdir)
+       @if ! test -z "$(AMTAR)"; then \
+               $(AMTAR) --create --verbose --file=- $(distdir) | bzip2 -c -9 > $(distdir).tar.bz2 ; \
+       else \
+               $(TAR) --create --verbose --file=- $(distdir) | bzip2 -c -9 > $(distdir).tar.bz2 ; \
+       fi
diff --git a/acinclude.m4 b/acinclude.m4
new file mode 100644 (file)
index 0000000..46da876
--- /dev/null
@@ -0,0 +1,6 @@
+AC_DEFUN([SAVE_PLUGINS_VERSION], [
+AC_MSG_CHECKING(for plugins version)
+SND_PLUGINS_VERSION=$VERSION
+echo $VERSION > $srcdir/version
+AC_MSG_RESULT($SND_PLUGINS_VERSION)
+])
index 985953e95192c77b2ac7d9649c2f4b4ae73bd288..6af47f2207f2ee70c6cebcb24408b01378ae882e 100644 (file)
@@ -14,6 +14,8 @@ AC_CHECK_LIB(asound, snd_pcm_ioplug_create,,
 
 PKG_CHECK_MODULES(JACK, jack >= 0.98)
 
+SAVE_PLUGINS_VERSION
+
 AC_OUTPUT([
        Makefile
        pcm/Makefile
diff --git a/cvscompile b/cvscompile
new file mode 100644 (file)
index 0000000..41bd1f7
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+touch ltconfig
+libtoolize --force --copy --automake
+aclocal $ACLOCAL_FLAGS
+autoheader
+automake --foreign --copy --add-missing
+touch depcomp          # seems to be missing for old automake
+autoconf
+export CFLAGS='-O2 -Wall -W -pipe -g'
+echo "CFLAGS=$CFLAGS"
+echo "./configure $@"
+./configure $@ || exit 1
+unset CFLAGS
+if [ -z "$CVSCOMPILE_NO_MAKE" ]; then
+  make
+fi