Browse Source

* added --enable-stripped-jackd option

* updated spec file accordingly -- don't know if this works


git-svn-id: svn+ssh://jackaudio.org/trunk/jack@220 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.109.0
wingo 23 years ago
parent
commit
098b861cfd
3 changed files with 16 additions and 5 deletions
  1. +12
    -0
      configure.in
  2. +1
    -5
      jack.spec.in
  3. +3
    -0
      jackd/Makefile.am

+ 12
- 0
configure.in View File

@@ -66,6 +66,17 @@ AC_ARG_ENABLE(capabilities,

AC_SUBST(JACK_CFLAGS)

STRIPPED_JACKD=false
AC_ARG_ENABLE(stripped-jackd,
[ --enable-stripped-jackd strip jack before computing its md5 sum ],
[ if test "x$USE_CAPABILITIES" != "xtrue" ; then
AC_MSG_WARN([*** capabilities not enabled, stripped jackd has no effect])
elif test "x$enable_stripped_jackd" != "xno"; then
STRIPPED_JACKD=true
fi
]
)

# plugins (just jack_alsa.so at the moment) go in the addon dir.

ADDON_DIR=${libdir}/jack
@@ -131,6 +142,7 @@ AM_CONDITIONAL(HAVE_FLTK, $HAVE_FLTK)
AM_CONDITIONAL(HAVE_SNDFILE, $HAVE_SNDFILE)
AM_CONDITIONAL(HAVE_DOXYGEN, $HAVE_DOXYGEN)
AM_CONDITIONAL(USE_CAPABILITIES, $USE_CAPABILITIES)
AM_CONDITIONAL(STRIPPED_JACKD, $STRIPPED_JACKD)
AC_OUTPUT(
Makefile
jack.pc


+ 1
- 5
jack.spec.in View File

@@ -12,10 +12,6 @@ Source0: %{name}-%{version}.tar.gz
URL: http://jackit.sourceforge.net
BuildRoot: /var/tmp/%{name}-%{version}-root-%(id -u -n)

# disable build root strip policy, otherwise rpm strips the executables
# and the jackd md5 checksum checked by jackstart does not match.
%define __spec_install_post /usr/lib/rpm/brp-compress || :

%description
JACK is a low-latency audio server, written primarily for the Linux
operating system. It can connect a number of different applications to
@@ -50,7 +46,7 @@ Small example clients that use the Jack Audio Connection Kit.

%build
%if "%{enable_capabilities}" == "1"
%configure --enable-capabilities
%configure --enable-capabilities --enable-stripped-jackd
%else
%configure
%endif


+ 3
- 0
jackd/Makefile.am View File

@@ -20,6 +20,9 @@ noinst_HEADERS = jack_md5.h md5.h md5_loc.h
BUILT_SOURCES = jack_md5.h

jack_md5.h: jackd
if STRIPPED_JACKD
strip -R .note -R .comment .libs/jackd
endif
echo "#define JACKD_MD5_SUM \"`md5sum .libs/jackd | awk '{print $$1}'`\"" > jack_md5.h

jackstart_SOURCES = jackstart.c md5.c


Loading…
Cancel
Save