Commit 06bc3ccb authored by Duncan Macleod's avatar Duncan Macleod

laldetchar: squashed introduction of laldetchar package

Original: 05d18bc1a3e4f2efe3c78d87f4e13964169e994e
parent 619b1096
......@@ -22,6 +22,7 @@ LALSUITE_ENABLE_LALFRAME
LALSUITE_ENABLE_LALMETAIO
LALSUITE_ENABLE_LALXML
LALSUITE_ENABLE_LALSIMULATION
LALSUITE_ENABLE_LALDETCHAR
LALSUITE_ENABLE_LALBURST
LALSUITE_ENABLE_LALINSPIRAL
LALSUITE_ENABLE_LALSTOCHASTIC
......@@ -64,6 +65,12 @@ if test "$lalsimulation" = "true"; then
export LALSIMULATION_LIBS LALSIMULATION_CFLAGS
fi
if test "$laldetchar" = "true"; then
LALDETCHAR_LIBS="${lalsuite_top_builddir}/laldetchar/src/liblaldetchar.la"
LALDETCHAR_CFLAGS="-I${lalsuite_top_builddir}/laldetchar/include"
export LALDETCHAR_LIBS LALDETCHAR_CFLAGS
fi
if test "$lalburst" = "true"; then
LALBURST_LIBS="${lalsuite_top_builddir}/lalburst/src/liblalburst.la"
LALBURST_CFLAGS="-I${lalsuite_top_builddir}/lalburst/include"
......@@ -112,6 +119,10 @@ if test "$lalsimulation" = "true"; then
AC_CONFIG_SUBDIRS([lalsimulation])
fi
if test "$laldetchar" = "true"; then
AC_CONFIG_SUBDIRS([laldetchar])
fi
if test "$lalburst" = "true"; then
AC_CONFIG_SUBDIRS([lalburst])
fi
......
# lalsuite_build.m4 - top level build macros
#
# serial 43
# serial 44
AC_DEFUN([LALSUITE_REQUIRE_CXX],[
# require a C++ compiler
......@@ -296,6 +296,19 @@ AC_ARG_ENABLE(
], [ lalsimulation=${all_lal:-true} ] )
])
AC_DEFUN([LALSUITE_ENABLE_LALDETCHAR],
[AC_REQUIRE([LALSUITE_ENABLE_ALL_LAL])
AC_ARG_ENABLE(
[laldetchar],
AC_HELP_STRING([--enable-laldetchar],[compile code that requires laldetchar library [default=yes]]),
[ case "${enableval}" in
yes) laldetchar=true;;
no) laldetchar=false;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-laldetchar) ;;
esac
], [ laldetchar=${all_lal:-true} ] )
])
AC_DEFUN([LALSUITE_ENABLE_LALBURST],
[AC_REQUIRE([LALSUITE_ENABLE_ALL_LAL])
AC_ARG_ENABLE(
......
*.la
*.lo
*.log
*.o
.deps
.libs
Makefile
Makefile.in
aclocal.m4
autom4te.cache/
config.log
config.lt
config.status
configure
include/config.h
include/config.h.in
include/lal/*.h
include/lal/*.i
include/stamp-h1
laldetchar-*.tar.gz
laldetchar.pc
laldetchar.spec
libtool
src/LALDetCharConfig.h
src/LALDetCharVCSInfo.h
src/laldetchar-user-env.csh
src/laldetchar-user-env.sh
src/laldetchar-user-env.shell
src/stamp-h2
python/__init__.py
#!/bin/sh
# function to report failure
fail () {
echo "!!! 00boot: $1 failed" >&2
exit 1
}
# help message
helpmsg="Usage $0 [options]
Options: [defaults in brackets after description]"
helpmsg="$helpmsg
--help print this message"
helpmsg="$helpmsg
--with-autoreconf=AUTORECONF use autoreconf program AUTORECONF [autoreconf]"
helpmsg="$helpmsg
--with-aclocal=ACLOCAL use aclocal program ACLOCAL [aclocal]"
helpmsg="$helpmsg
--with-autoheader=AUTOHEADER use autoheader program AUTOHEADER [autoheader]"
helpmsg="$helpmsg
--with-automake=AUTOMAKE use automake program AUTOMAKE [automake]"
helpmsg="$helpmsg
--with-autoconf=AUTOCONF use autoconf program AUTOCONF [autoconf]"
# process args
while test $# -gt 0 ; do
option=$1
case "$option" in
-*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $option in
-h | -help | --help ) echo "$helpmsg"; exit 0;;
-with-autoreconf=* | --with-autoreconf=* ) AUTORECONF="$optarg";;
-with-aclocal=* | --with-aclocal=* ) ACLOCAL="$optarg";;
-with-autoheader=* | --with-autoheader=* ) AUTOHEADER="$optarg";;
-with-automake=* | --with-automake=* ) AUTOMAKE="$optarg";;
-with-autoconf=* | --with-autoconf=* ) AUTOCONF="$optarg";;
*) echo "unrecognized option $option"; exit 1;;
esac
shift
done
# check autotools versions
echo "00boot: checking versions of autotools"
AUTORECONF=${AUTORECONF:-"autoreconf"}
ACLOCAL=${ACLOCAL:-"aclocal"}
AUTOHEADER=${AUTOHEADER:-"autoheader"}
AUTOMAKE=${AUTOMAKE:-"automake"}
AUTOCONF=${AUTOCONF:-"autoconf"}
autoreconf_version="`$AUTORECONF --version 2>/dev/null | sed -n '1s/^.* \([0-9.]*\)/\1/p'`"
aclocal_version="`$ACLOCAL --version 2>/dev/null | sed -n '1s/^.* \([0-9.]*\)/\1/p'`"
autoheader_version="`$AUTOHEADER --version 2>/dev/null | sed -n '1s/^.* \([0-9.]*\)/\1/p'`"
automake_version="`$AUTOMAKE --version 2>/dev/null | sed -n '1s/^.* \([0-9.]*\)/\1/p'`"
autoconf_version="`$AUTOCONF --version 2>/dev/null | sed -n '1s/^.* \([0-9.]*\)/\1/p'`"
if test -z "$autoreconf_version"; then
fail "finding program autoreconf"
fi
if test -z "$aclocal_version"; then
fail "finding program aclocal"
fi
if test -z "$autoheader_version"; then
fail "finding program autoheader"
fi
if test -z "$automake_version"; then
fail "finding program automake"
fi
if test -z "$autoconf_version"; then
fail "finding program autoconf"
fi
# report autotools versions
echo "00boot: using:"
printf "00boot:\t%-16s %s\n" "autoreconf-$autoreconf_version:" "`which $AUTORECONF`"
printf "00boot:\t%-16s %s\n" "aclocal-$aclocal_version:" "`which $ACLOCAL`"
printf "00boot:\t%-16s %s\n" "autoheader-$autoheader_version:" "`which $AUTOHEADER`"
printf "00boot:\t%-16s %s\n" "automake-$automake_version:" "`which $AUTOMAKE`"
printf "00boot:\t%-16s %s\n" "autoconf-$autoconf_version:" "`which $AUTOCONF`"
# FIXME: autoreconf from Ubuntu 9.10 (and probably also from recent
# Debian versions) automatically run libtoolize with the --copy option
# therefore over writing the supplied libtool scripts with system
# version. This can lead to unexpected build failures therefore to work
# round this "feature" we set the LIBTOOLIZE enviroment variable to
# point to the the true executable which bypasses the running of
# libtoolize, this will not effect the vast majority of users and those
# it will effect will know how to run libtoolize, if required.
# generate build system
echo "00boot: running autoreconf"
LIBTOOLIZE=true $AUTORECONF || fail "autoreconf"
# report success
echo "00boot: success"
echo "
=================================================================
00boot has been run.
Now run './configure' with appropriate options
to configure LAL DetChar.
================================================================="
This diff is collapsed.
ACLOCAL_AMFLAGS = -I gnuscripts
EXTRA_DIST = \
COPYING \
laldetchar.pc.in \
laldetchar.spec.in \
laldetchar.spec \
aclocal.m4
SUBDIRS = \
gnuscripts \
debian \
include \
src \
python \
swig \
test
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = laldetchar.pc
DISTCLEANFILES = config.lt
distcleancheck_listfiles = find . -type f \! -name "LALDetCharVCSInfo.h" -print
# vcs-clean: more than maintainer-clean, this cleans everything not in
# the vcs archive
vcs-clean: maintainer-clean
-rm -f aclocal.m4
-rm -f configure
-rm -f Makefile.in
-rm -f include/config.h.in
-rm -f include/Makefile.in
-rm -f include/lal/Makefile.in
-rm -r src/Makefile.in
-rm -r swig/Makefile.in
-rm -r swig/octave/Makefile.in
-rm -r swig/python/Makefile.in
-rm -f test/Makefile.in
all-local:
@echo "";\
echo "=================================================================";\
echo "";\
echo " LAL DetChar has now been successfully built.";\
echo " Now run 'make install' to install LAL DetChar.";\
echo "";\
echo "================================================================="
install-exec-local:
@echo "";\
echo "=================================================================";\
echo "";\
echo " LAL DetChar has now been successfully installed.";\
echo "";\
echo " Now you may want to setup your environment:";\
echo "";\
echo " Bourne shell [bash] users: please add the";\
echo " following lines to your .profile file";\
echo "";\
echo ' . $(sysconfdir)/laldetchar-user-env.sh';\
echo "";\
echo " C-shell [tcsh] users: please add the following";\
echo " lines to your .login file";\
echo "";\
echo ' source $(sysconfdir)/laldetchar-user-env.csh';\
echo "";\
echo "================================================================="
AC_PREREQ([2.63])
AC_INIT([laldetchar],[0.0.0.1],[lal-discuss@gravity.phys.uwm.edu])
AM_CONFIG_HEADER([include/config.h src/LALDetCharConfig.h])
AC_CONFIG_SRCDIR([src/LALDetChar.h])
AC_CONFIG_AUX_DIR([gnuscripts])
AC_CONFIG_MACRO_DIR([gnuscripts])
AC_CONFIG_FILES([ \
laldetchar.spec \
laldetchar.pc \
Makefile \
gnuscripts/Makefile \
debian/Makefile \
include/Makefile \
include/lal/Makefile \
src/Makefile \
python/Makefile \
python/__init__.py \
swig/Makefile \
swig/octave/Makefile \
swig/python/Makefile \
test/Makefile
])
AM_INIT_AUTOMAKE([1.11 foreign color-tests parallel-tests])
AC_CANONICAL_HOST
LALSUITE_ARG_VAR
LALSUITE_DISTCHECK_CONFIGURE_FLAGS
# set library api info
# 1. start with version information of "0:0:0" for each libtool library
# 2. update the version information only immediately before a public
# release of your software. More frequent updates are unnecessary,
# and only guarantee that the current interface number gets larger
# faster.
# 3. if the library source code has changed at all since the last
# update, then increment revision ("c:r:a" becomes "c:r+1:a").
# 4. if any interfaces have been added, removed, or changed since the
# last update, increment current, and set revision to 0.
# 5. if any interfaces have been added since the last public release,
# then increment age.
# 6. if any interfaces have been removed since the last public release,
# then set age to 0.
AC_SUBST([LIBCURRENT],[0])
AC_SUBST([LIBREVISION],[0])
AC_SUBST([LIBAGE],[0])
AC_SUBST([LIBVERSION],[${LIBCURRENT}:${LIBREVISION}:${LIBAGE}])
# nightly build
LALSUITE_ENABLE_NIGHTLY
# debug
LALSUITE_ENABLE_DEBUG
# enable strict gcc flags
LALSUITE_ENABLE_GCC_FLAGS
# enable SWIG wrapping modules
LALSUITE_ENABLE_SWIG
# optional lal libraries
LALSUITE_ENABLE_LALFRAME
# put version/configure info in config header
laldetchar_version_major=`echo "$VERSION" | cut -d. -f1`
laldetchar_version_minor=`echo "$VERSION" | cut -d. -f2`
laldetchar_version_micro=`echo "$VERSION" | cut -d. -f3`
laldetchar_version_devel=`echo "$VERSION" | cut -d. -f4-`
test -z "$laldetchar_version_micro" && laldetchar_version_micro=0
test -z "$laldetchar_version_devel" && laldetchar_version_devel=0
laldetchar_configure_date=`date +"%Y-%m-%dT%H:%M:%S%z"`
AC_DEFINE_UNQUOTED([LALDETCHAR_VERSION],["$VERSION"],[LALDetChar Version])
AC_DEFINE_UNQUOTED([LALDETCHAR_VERSION_MAJOR],[$laldetchar_version_major],
[LALDetChar Version Major Number])
AC_DEFINE_UNQUOTED([LALDETCHAR_VERSION_MINOR],[$laldetchar_version_minor],
[LALDetChar Version Minor Number])
AC_DEFINE_UNQUOTED([LALDETCHAR_VERSION_MICRO],[$laldetchar_version_micro],
[LALDetChar Version Micro Number])
AC_DEFINE_UNQUOTED([LALDETCHAR_VERSION_DEVEL],[$laldetchar_version_devel],
[LALDetChar Version Devel Number])
AC_DEFINE_UNQUOTED([LALDETCHAR_CONFIGURE_ARGS],["$ac_configure_args"],
[LALDetChar Configure Arguments])
AC_DEFINE_UNQUOTED([LALDETCHAR_CONFIGURE_DATE],["$laldetchar_configure_date"],
[LALDetChar Configure Date])
# workaround broken libtool multilib support on sl6
LALSUITE_MULTILIB_LIBTOOL_HACK
# use silent build rules
AM_SILENT_RULES([yes])
# check for C/C++ compilers
LALSUITE_PROG_CC_CXX
# checks for programs
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_AWK
AC_PROG_SED
AM_PATH_PYTHON([2.6],,[AC_MSG_ERROR([Python-2.6, or higher, is required])])
# check for supported mac os x version
LALSUITE_OSX_VERSION_CHECK
# link tests using libtool
LALSUITE_USE_LIBTOOL
# check for header files
AC_HEADER_STDC
# check for required libraries
AC_CHECK_LIB([m],[main],,[AC_MSG_ERROR([could not find the math library])])
# check for lal libraries and headers
LALSUITE_CHECK_LIB([LAL],[6.7.0],[LALVersion],[lal/LALStdio.h])
LALSUITE_CHECK_LIB([LALSupport],[6.7.0],[LALOpenDataFile],[lal/FileIO.h])
# configure SWIG wrapping modules
LALSUITE_USE_SWIG([XLAL LAL])
LALSUITE_SWIG_DEPENDS([lal],[true])
# add gcc specific flags
LALSUITE_ADD_GCC_FLAGS
# force all python modules into the exec dir to prevent mixed C and
# pure-python library code from being split across lib and lib64 on
# RedHat-derived systems.
AC_SUBST([pkgpythondir], ["\${pkgpyexecdir}"])
# output
LAL_HEADER_LINK=${ac_aux_dir}/header-link.mk
AC_SUBST_FILE([LAL_HEADER_LINK])
AC_PROG_MAKE_SET
AC_OUTPUT
echo "
=================================================================
LALDetChar has now been successfully configured:
SWIG wrapping module for Octave is $SWIG_OCTAVE_ENABLE_VAL
SWIG wrapping module for Python is $SWIG_PYTHON_ENABLE_VAL
and will be installed under the directory:
${prefix}
Now run 'make' to build LALDetChar
and run 'make install' to install LALDetChar
================================================================="
EXTRA_DIST = \
changelog \
compat \
control \
copyright \
docs \
laldetchar-dev.dirs \
laldetchar-dev.install \
laldetchar.dirs \
laldetchar.install \
rules
laldetchar (0.4.0-1) unstable; urgency=low
* LALSimulation 0.4.0
-- Adam Mercer <adam.mercer@ligo.org> Wed, 13 Jun 2012 16:56:12 +0100
laldetchar (0.3.0-1) unstable; urgency=low
* LALSimulation 0.3.0
-- Adam Mercer <adam.mercer@ligo.org> Fri, 11 May 2012 11:52:29 -0500
laldetchar (0.2.0-1) unstable; urgency=low
* LALSimulation 0.2.0
-- Adam Mercer <adam.mercer@ligo.org> Tue, 10 Apr 2012 11:29:57 -0500
laldetchar (0.1.1-1) unstable; urgency=low
* LALSimulation 0.1.1
* add support for "unicorn" injections
* update to automake-1.11.2
* packaging updates
-- Adam Mercer <adam.mercer@ligo.org> Fri, 06 Jan 2012 09:47:29 -0600
laldetchar (0.1.0-1) unstable; urgency=low
* LALSimulation 0.1.0
-- Adam Mercer <adam.mercer@ligo.org> Tue, 13 Dec 2011 13:01:33 -0600
laldetchar (0.1.0~rc2-1) unstable; urgency=low
* LALSimulation 0.1.0 Release Candidate 2
* packaging updates
-- Adam Mercer <adam.mercer@ligo.org> Fri, 09 Dec 2011 14:22:15 -0600
laldetchar (0.1.0~rc1-1) unstable; urgency=low
* LALSimulation 0.1.0 Release Candidate 1
-- Adam Mercer <adam.mercer@ligo.org> Tue, 06 Dec 2011 15:04:56 -0600
Source: laldetchar
Section: lscsoft
Priority: optional
Maintainer: Adam Mercer <adam.mercer@ligo.org>
Build-Depends: debhelper (>= 5), pkg-config, python (>= 2.6),
zlib1g-dev, libgsl0-dev (>= 1.9), lal-dev (>= 6.7.0)
Standards-Version: 3.7.2
Package: laldetchar
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, zlib1g,
libgsl0 (>= 1.9) | libgsl0ldbl (>= 1.10), lal (>= 6.7.0)
Description: LSC Algorithm Library Simulation
The LSC Algorithm Simulation Library for gravitational wave data analysis.
This package contains the shared-object libraries needed to run applications
that use the LAL Simulation library.
Package: laldetchar-dev
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, zlib1g,
libgsl0-dev (>= 1.9), lal-dev (>= 6.7.0),
laldetchar (= ${binary:Version})
Description: LSC Algorithm Library Simulation Developers
The LSC Algorithm Simulation Library for gravitational wave data analysis.
This package contains files needed build applications that use the LAL
Simulation library.
This package was debianized by Steffen Grunewald <steffen.grunewald@aei.mpg.de> on
Fri, 5 Oct 2007 13:11:00 +0200.
It was checked out from the LSCSOFT CVS.
Official releases can be downloaded from http://lsc-group.phys.uwm.edu/daswg/software
Upstream Authors: LIGO Scientific Collaboration
Copyright:
License:
The Debian packaging is (C) 2007, Steffen Grunewald <steffen.grunewald@aei.mpg.de>.
#NEWS
#README
#README.bugs
#README.contrib
#doc/*.pdf
usr/include
usr/lib/pkgconfig
usr/include/lal*
usr/lib/*.a
usr/lib/pkgconfig
usr/bin
etc
usr/lib
usr/share
usr/bin/lalsim*
etc/*
usr/lib/*.so*
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
PREFIX = /usr
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
config.status: configure
dh_testdir
# LDFLAGS="-Wl,-z,defs"
CFLAGS="$(CFLAGS)" \
PKG_CONFIG_PATH="" \
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
--prefix=$(PREFIX) \
--sysconfdir=/etc \
--mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
--disable-gcc-flags
build: build-stamp
build-stamp: config.status
dh_testdir
$(MAKE) V=1
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp
-$(MAKE) distclean
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
echo "tree after install:"
ls -lR $(CURDIR)/debian
$(MAKE) clean
# only if necessary overwrite user-env scripts
# cp -p debian/laldetchar-user-env.* $(CURDIR)/debian/laldetchar/etc/
binary-common: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_install --sourcedir=debian/tmp
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_python
# dh_installinit
# dh_installcron
# dh_installinfo
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_perl
dh_makeshlibs
dh_installdeb
LD_LIBRARY_PATH=$(PREFIX)/lib dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-common
.PHONY: build clean binary-common binary install