|
|
|
@ -17,7 +17,6 @@ |
|
|
|
|
MY_NAME=${0##*/} |
|
|
|
|
PROJECT_PATH=$(pwd) |
|
|
|
|
DEFAULT_PROJECT_NAME=${PROJECT_PATH##*/} |
|
|
|
|
|
|
|
|
|
configure=0 |
|
|
|
|
build=0 |
|
|
|
|
overwrite=0 |
|
|
|
@ -101,12 +100,14 @@ GENERATED FILES |
|
|
|
|
* ax_init_standard_project.m4 - auxiliary macro definition file |
|
|
|
|
* ax_cxx_compile_stdcxx_11.m4 - auxiliary macro definition file |
|
|
|
|
* ax_check_qt.m4 - auxiliary macro definition file |
|
|
|
|
* mac-create-app-bundle.sh - script to create apple mac os-x app-bundle |
|
|
|
|
* AUTHORS - replace your name in AUTHORS before first run |
|
|
|
|
* configure.ac - global configuration file template |
|
|
|
|
* makefile.am - global makefile template |
|
|
|
|
* src/makefile.am - if you enabled AX_USE_CXX |
|
|
|
|
* src/version.hxx - if you enabled AX_USE_CXX |
|
|
|
|
* src/version.cxx - if you enabled AX_USE_CXX |
|
|
|
|
* html/makefile.am - if you enabled AX_BUILD_HTML |
|
|
|
|
* scripts/makefile.in - if you enabled AX_USE_SCRIPTS |
|
|
|
|
* doc/makefile.am - if you enabled AX_USE_DOXYGEN |
|
|
|
|
* doc/doxyfile.in - if you enabled AX_USE_DOXYGEN |
|
|
|
@ -121,6 +122,7 @@ GENERATED FILES |
|
|
|
|
* debian/${DEFAULT_PROJECT_NAME}-dev.dirs - if you enabled AX_USE_DEBIAN_PACKAGING |
|
|
|
|
* debian/rules - if you enabled AX_USE_DEBIAN_PACKAGING |
|
|
|
|
* debian/compat - if you enabled AX_USE_DEBIAN_PACKAGING |
|
|
|
|
* ${DEFAULT_PROJECT_NAME}.spec.in - if you enable AX_USE_RPM_PACKAGING |
|
|
|
|
* src/${DEFAULT_PROJECT_NAME}.pc.in - if you enabled AX_USE_LIBTOOL |
|
|
|
|
|
|
|
|
|
REBUILDING FILES |
|
|
|
@ -147,6 +149,7 @@ FILES TO EDIT |
|
|
|
|
* README |
|
|
|
|
* configure.ac |
|
|
|
|
* src/makefile.am |
|
|
|
|
* html/makefile.am |
|
|
|
|
* test/makefile.am |
|
|
|
|
* examples/makefile.am |
|
|
|
|
|
|
|
|
@ -156,6 +159,7 @@ FILE DEPENDENCIES |
|
|
|
|
configuration a dependent, i.e.: |
|
|
|
|
|
|
|
|
|
* test/makefile.am depends on AX_USE_LIBTOOL |
|
|
|
|
* html/makefile.am depends on AX_BUILD_HTML |
|
|
|
|
* doc/doxyfile.in depends on AX_BUILD_EXAMPLES |
|
|
|
|
* debian/control.in depends on AX_USE_DOXYGEN, AX_USE_CPPUNIT, |
|
|
|
|
AX_CXX_QT, AX_CXX_CHECK_QT, AX_USE_LIBTOOL |
|
|
|
@ -163,6 +167,8 @@ FILE DEPENDENCIES |
|
|
|
|
* debian/${DEFAULT_PROJECT_NAME}.dirs depends on AX_USE_LIBTOOL |
|
|
|
|
* debian/${DEFAULT_PROJECT_NAME}-dev.install depends on AX_USE_LIBTOOL |
|
|
|
|
* debian/${DEFAULT_PROJECT_NAME}-dev.dirs depends on AX_USE_LIBTOOL |
|
|
|
|
* ${DEFAULT_PROJECT_NAME}.spec.in dependson AX_USE_RPM_PACKAGING, |
|
|
|
|
AX_USE_LIBTOOL, AX_CXX_CHECK_QT, AX_CXX_QT, AX_USE_CPPUNIT |
|
|
|
|
|
|
|
|
|
FILES |
|
|
|
|
|
|
|
|
@ -189,7 +195,7 @@ FILES |
|
|
|
|
* Enable Scripts: AX_USE_SCRIPTS |
|
|
|
|
* Enable Doxygen documentation generation: AX_USE_DOXYGEN |
|
|
|
|
* Enable Debian packaging by calling "make deb": AX_USE_DEBIAN_PACKAGING |
|
|
|
|
* Not yet implemented: AX_USE_RPM_PACKAGING |
|
|
|
|
* Enable RPM packaging by calling "make rpm": AX_USE_RPM_PACKAGING |
|
|
|
|
* Enable C++ testing using CppUnit: AX_USE_CPPUNIT |
|
|
|
|
* Enable C++ examples, i.e. for libraries: AX_BUILD_EXAMPLES |
|
|
|
|
* Check for C++11 support: AX_CXX_COMPILE_STDCXX_11 (see ax_cxx_compile_stdcxx_11.m4) |
|
|
|
@ -233,6 +239,10 @@ HEADER='## @id '"\$Id\$"' |
|
|
|
|
|
|
|
|
|
' |
|
|
|
|
|
|
|
|
|
notice() { |
|
|
|
|
echo -e "\e[1;33m$*\e[0m" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
run() { |
|
|
|
|
check=1 |
|
|
|
|
while test $# -gt 0; do |
|
|
|
@ -291,7 +301,7 @@ to() { |
|
|
|
|
mode="u=rw,g=rw,o=r" |
|
|
|
|
case "$1" in |
|
|
|
|
(--condition) shift # test for a tag, abort if not set |
|
|
|
|
if ! testtag "$1" configure.ac; then |
|
|
|
|
if ! testtag "$1"; then |
|
|
|
|
return |
|
|
|
|
fi;; |
|
|
|
|
(--mode) shift # test for a tag, abort if not set |
|
|
|
@ -300,7 +310,7 @@ to() { |
|
|
|
|
esac |
|
|
|
|
shift; |
|
|
|
|
done |
|
|
|
|
if checkfile "$1" && test $rebuild -eq 0 \ |
|
|
|
|
if checkfile "$1" && test $rebuild -eq 0 -o "$1" = "configure.ac" \ |
|
|
|
|
&& ! contains "$1" "${rebuildfiles[@]}"; then |
|
|
|
|
# file already exists and must not be rebuilt |
|
|
|
|
return 1 |
|
|
|
@ -367,9 +377,16 @@ copy ${MY_NAME} |
|
|
|
|
copy ax_init_standard_project.m4 |
|
|
|
|
copy ax_cxx_compile_stdcxx_11.m4 |
|
|
|
|
copy ax_check_qt.m4 |
|
|
|
|
copy AUTHORS |
|
|
|
|
copy mac-create-app-bundle.sh |
|
|
|
|
AUTHOR=$(gpg -K | sed -n 's,uid *,,p' | sort | head -1) |
|
|
|
|
if test -z "${AUTHOR}"; then |
|
|
|
|
AUTHOR="FIRSTNAME LASTNAME (URL) <EMAIL>" |
|
|
|
|
fi |
|
|
|
|
to AUTHORS <<EOF && notice "please edit AUTHORS" |
|
|
|
|
$AUTHOR |
|
|
|
|
EOF |
|
|
|
|
to configure.ac <<EOF && \ |
|
|
|
|
( echo "please edit configure.ac, then rerun $0"; exit 0 ) |
|
|
|
|
( notice "please edit configure.ac, then rerun $0"; exit 0 ) |
|
|
|
|
${HEADER}m4_define(x_package_name, ${DEFAULT_PROJECT_NAME}) # project's name |
|
|
|
|
m4_define(x_major, 0) # project's major version |
|
|
|
|
m4_define(x_minor, 0) # project's minor version |
|
|
|
@ -387,16 +404,91 @@ AX_INIT_STANDARD_PROJECT |
|
|
|
|
#AX_USE_RPM_PACKAGING |
|
|
|
|
#AX_USE_CPPUNIT |
|
|
|
|
#AX_BUILD_EXAMPLES |
|
|
|
|
#AX_BUILD_HTML |
|
|
|
|
|
|
|
|
|
# qt features, uncomment, what you need: |
|
|
|
|
#AX_CHECK_QT([QT], [QtCore QtGui QtNetwork], [QtWidgets]) |
|
|
|
|
#AM_CPPFLAGS="${AM_CPPFLAGS} -DQT_NO_KEYWORDS" |
|
|
|
|
#AX_QT_NO_KEYWORDS |
|
|
|
|
|
|
|
|
|
# create output |
|
|
|
|
AC_OUTPUT |
|
|
|
|
EOF |
|
|
|
|
PACKAGE_NAME=$(sed -n 's/.*m4_define *( *x_package_name *, *\([^ ]*\) *).*/\1/p' configure.ac) |
|
|
|
|
echo "${HEADER}MAINTAINERCLEANFILES = makefile.in" | to --condition AX_USE_CXX src/makefile.am |
|
|
|
|
if ! testtag "AX_CHECK_QT" configure.ac && \ |
|
|
|
|
! testtag "AX_REQUIRE_QT" configure.ac; then |
|
|
|
|
echo "${HEADER}MAINTAINERCLEANFILES = makefile.in" | \ |
|
|
|
|
to --condition AX_USE_CXX src/makefile.am |
|
|
|
|
else |
|
|
|
|
to --condition AX_USE_CXX src/makefile.am <<EOF |
|
|
|
|
${HEADER}bin_PROGRAMS = ${PACKAGE_NAME} |
|
|
|
|
|
|
|
|
|
## required to enable the translation feature |
|
|
|
|
LANGUAGE_FILE_BASE = ${PACKAGE_NAME} |
|
|
|
|
|
|
|
|
|
## list here the Qt plugins your project depends on |
|
|
|
|
## required to build Mac OS-X app-bundle |
|
|
|
|
QT_PLUGINS = iconengines imageformats platforms |
|
|
|
|
|
|
|
|
|
#### enable if you deliver a KDE/Gnome desktop file |
|
|
|
|
#applicationsdir = ${datarootdir}/applications |
|
|
|
|
#dist_applications_DATA = ${PACKAGE_NAME}.desktop |
|
|
|
|
|
|
|
|
|
#### enable (ev. instead of bin_PROGRAMS) if you build a library |
|
|
|
|
#lib_LTLIBRARIES = ${PACKAGE_NAME}.la |
|
|
|
|
#${PACKAGE_NAME}_la_SOURCES = libmain.cxx version.cxx |
|
|
|
|
## noop to prevent: |
|
|
|
|
## «src/makefile.am: error: object 'version.\$(OBJEXT)' created both with |
|
|
|
|
## libtool and without» |
|
|
|
|
#${PACKAGE_NAME}_la_CXXFLAGS = \$(AM_CXXFLAGS) |
|
|
|
|
|
|
|
|
|
## list headers that are required for build, but that are not installed |
|
|
|
|
noinst_HEADERS = version.hxx |
|
|
|
|
|
|
|
|
|
## list all %.hxx files with Q_OBJECT as moc_%.cxx |
|
|
|
|
${PACKAGE_NAME//-/_}_MOCFILES = moc_${PACKAGE_NAME}.cxx |
|
|
|
|
|
|
|
|
|
## list all %.ui files as ui_%.hxx |
|
|
|
|
${PACKAGE_NAME//-/_}_UIFILES = ui_${PACKAGE_NAME}.hxx |
|
|
|
|
|
|
|
|
|
## list all %.qrc resource files as qrc_%.cxx |
|
|
|
|
## note: if there exists a directory %, the file %.qrc is generated from that |
|
|
|
|
${PACKAGE_NAME//-/_}_RESOURCES = qrc_languages.cxx qrc_resources.cxx |
|
|
|
|
|
|
|
|
|
## list all final translation files, list all supported languages here |
|
|
|
|
${PACKAGE_NAME//-/_}_TRANSLATIONS = \${LANGUAGE_FILE_BASE}_en.qm \\ |
|
|
|
|
\${LANGUAGE_FILE_BASE}_de.qm \\ |
|
|
|
|
\${LANGUAGE_FILE_BASE}_fr.qm \\ |
|
|
|
|
\${LANGUAGE_FILE_BASE}_it.qm |
|
|
|
|
|
|
|
|
|
## list all C++ files that need translation |
|
|
|
|
${PACKAGE_NAME//-/_}_TR_FILES = main.cxx version.cxx |
|
|
|
|
|
|
|
|
|
## automatic assembly, no need to change |
|
|
|
|
${PACKAGE_NAME//-/_}_SOURCES = ${swisssign_pin_entry_TR_FILES} ${BUILT_SOURCES} |
|
|
|
|
|
|
|
|
|
## automatic assembly, no need to change |
|
|
|
|
BUILT_SOURCES = \${${PACKAGE_NAME//-/_}_MOCFILES} \ |
|
|
|
|
\${${PACKAGE_NAME//-/_}_UIFILES} \ |
|
|
|
|
\${${PACKAGE_NAME//-/_}_TRANSLATIONS} \ |
|
|
|
|
\${${PACKAGE_NAME//-/_}_RESOURCES} |
|
|
|
|
|
|
|
|
|
## automatic assembly, no need to change |
|
|
|
|
EXTRA_DIST_TR = \${${PACKAGE_NAME//-/_}_MOCFILES:moc_%.cxx=%.hxx} \ |
|
|
|
|
\${${PACKAGE_NAME//-/_}_UIFILES:ui_%.hxx=%.ui} |
|
|
|
|
|
|
|
|
|
## automatic assembly, no need to change |
|
|
|
|
## except: adapt the pre-delivered qt_%.qm list (language files you copy from qt |
|
|
|
|
EXTRA_DIST = \${EXTRA_DIST_TR} \ |
|
|
|
|
\${${PACKAGE_NAME//-/_}_RESOURCES:qrc_%.cxx:%.qrc} \ |
|
|
|
|
\${${PACKAGE_NAME//-/_}_TRANSLATIONS:%.qm=%.ts} \ |
|
|
|
|
qt_de.qm qt_fr.qm |
|
|
|
|
|
|
|
|
|
## automatic assembly, no need to change |
|
|
|
|
LANGUAGE_FILES = \${EXTRA_DIST_TR} \${${PACKAGE_NAME//-/_}_TR_FILES} |
|
|
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = makefile.in |
|
|
|
|
EOF |
|
|
|
|
fi |
|
|
|
|
to --condition AX_USE_CXX src/version.hxx <<EOF |
|
|
|
|
/*! @file |
|
|
|
|
|
|
|
|
@ -477,91 +569,102 @@ EOF |
|
|
|
|
echo "${HEADER}MAINTAINERCLEANFILES = makefile.in" | to --condition AX_USE_SCRIPTS scripts/makefile.am |
|
|
|
|
echo "${HEADER}MAINTAINERCLEANFILES = makefile.in" | to --condition AX_USE_DOXYGEN doc/makefile.am |
|
|
|
|
to --condition AX_USE_CPPUNIT test/makefile.am <<EOF |
|
|
|
|
${HEADER}AM_CPPFLAGS = -I${top_srcdir}/src -I${top_builddir}/src |
|
|
|
|
AM_LDFLAGS = -L${top_builddir}/src/.libs |
|
|
|
|
LDADD = -l${PACKAGE_NAME} |
|
|
|
|
${HEADER}AM_CPPFLAGS = -I\${top_srcdir}/src -I\${top_builddir}/src |
|
|
|
|
AM_LDFLAGS = -L\${abs_top_builddir}/src/.libs |
|
|
|
|
LDADD = -l${PACKAGE_NAME#lib} |
|
|
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = makefile.in |
|
|
|
|
EOF |
|
|
|
|
to --condition AX_BUILD_EXAMPLES examples/makefile.am <<EOF |
|
|
|
|
${HEADER}AM_CPPFLAGS = -I${top_srcdir}/src -I${top_builddir}/src |
|
|
|
|
AM_LDFLAGS = -L${top_builddir}/src/.libs |
|
|
|
|
LDADD = -l${PACKAGE_NAME} |
|
|
|
|
${HEADER}AM_CPPFLAGS = -I\${top_srcdir}/src -I\${top_builddir}/src |
|
|
|
|
AM_LDFLAGS = -L\${abs_top_builddir}/src/.libs |
|
|
|
|
LDADD = -l${PACKAGE_NAME#lib} |
|
|
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = makefile.in |
|
|
|
|
EOF |
|
|
|
|
if testtag AX_USE_DOXYGEN && \ |
|
|
|
|
( ! checkfile doc/doxyfile.in || \ |
|
|
|
|
contains doc/doxyfile.in "${rebuildfiles[@]}" ); then |
|
|
|
|
run doxygen -g doc/doxyfile.in |
|
|
|
|
if test $exists -eq 0; then |
|
|
|
|
run svn add doc/doxyfile.in |
|
|
|
|
run svn propset svn:keywords "Id" doc/doxyfile.in |
|
|
|
|
fi |
|
|
|
|
doxyreplace PROJECT_NAME "@PACKAGE_NAME@" |
|
|
|
|
doxyreplace PROJECT_NUMBER "@PACKAGE_VERSION@" |
|
|
|
|
doxyreplace PROJECT_BRIEF "@DESCRIPTION@" |
|
|
|
|
doxyreplace PROJECT_LOGO "@PROJECT_LOGO@" |
|
|
|
|
doxyreplace INLINE_INHERITED_MEMB YES |
|
|
|
|
doxyreplace MULTILINE_CPP_IS_BRIEF YES |
|
|
|
|
doxyreplace TAB_SIZE 2 |
|
|
|
|
doxyreplace ALIASES '"id=\\par File-ID\\n"' |
|
|
|
|
doxyadd ALIASES '"copy=\\par Copyright\\n"' |
|
|
|
|
doxyadd ALIASES '"license=\\par License\\n"' |
|
|
|
|
doxyadd ALIASES '"classmutex=\\par Reentrant:\\nAccess is locked with class static mutex @c "' |
|
|
|
|
doxyadd ALIASES '"instancemutex=\\par Reentrant:\\nAccess is locked with per instance mutex @c "' |
|
|
|
|
doxyadd ALIASES '"mutex=\\par Reentrant:\\nAccess is locked with mutex @c "' |
|
|
|
|
doxyreplace ENABLE_PREPROCESSING YES |
|
|
|
|
doxyreplace MACRO_EXPANSION YES |
|
|
|
|
doxyadd PREDEFINED '"NAMESPACE=@PACKAGE_NAME@"' |
|
|
|
|
doxyreplace BUILTIN_STL_SUPPORT YES |
|
|
|
|
doxyreplace DISTRIBUTE_GROUP_DOC YES |
|
|
|
|
doxyreplace EXTRACT_ALL YES |
|
|
|
|
doxyreplace EXTRACT_PACKAGE YES |
|
|
|
|
doxyreplace EXTRACT_PRIVATE YES |
|
|
|
|
doxyreplace EXTRACT_STATIC YES |
|
|
|
|
doxyreplace EXTRACT_LOCAL_CLASSES YES |
|
|
|
|
doxyreplace EXTRACT_LOCAL_METHODS YES |
|
|
|
|
doxyreplace EXTRACT_ANON_NSPACES YES |
|
|
|
|
doxyreplace SHOW_GROUPED_MEMB_INC YES |
|
|
|
|
doxyreplace SORT_MEMBERS_CTORS_1ST YES |
|
|
|
|
doxyreplace WARN_IF_UNDOCUMENTED NO |
|
|
|
|
doxyreplace WARN_LOGFILE doxygen.errors |
|
|
|
|
doxyreplace INPUT "@top_srcdir@/src" |
|
|
|
|
if testtag AX_USE_SCRIPTS; then |
|
|
|
|
doxyadd INPUT "@top_srcdir@/scripts" |
|
|
|
|
fi |
|
|
|
|
if testtag AX_USE_CPPUNIT; then |
|
|
|
|
doxyadd INPUT "@top_srcdir@/test" |
|
|
|
|
fi |
|
|
|
|
doxyreplace FILE_PATTERNS '*.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.idl *.ddl *.odl *.h *.hh *.hxx *.hpp *.h++ *.cs *.d *.php *.php4 *.php5 *.phtml *.inc *.m *.markdown *.md *.mm *.dox *.py *.f90 *.f *.for *.tcl *.vhd *.vhdl *.ucf *.qsf *.as *.js' |
|
|
|
|
doxyadd FILE_PATTERNS *.wt |
|
|
|
|
doxyreplace RECURSIVE YES |
|
|
|
|
doxyreplace EXCLUDE_PATTERNS "moc_* uic_* qrc_*" |
|
|
|
|
if testtag AX_BUILD_EXAMPLES; then |
|
|
|
|
doxyreplace EXAMPLE_PATH @top_srcdir@/examples |
|
|
|
|
to --condition AX_BUILD_HTML html/makefile.am <<EOF |
|
|
|
|
${HEADER}EXTRA_DIST = \${www_DATA} |
|
|
|
|
|
|
|
|
|
wwwdir = \${pkgdatadir}/html |
|
|
|
|
www_DATA = |
|
|
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = makefile.in |
|
|
|
|
EOF |
|
|
|
|
if testtag AX_USE_DOXYGEN; then |
|
|
|
|
if ! checkfile doc/doxyfile.in || \ |
|
|
|
|
contains doc/doxyfile.in "${rebuildfiles[@]}"; then |
|
|
|
|
run doxygen -g doc/doxyfile.in |
|
|
|
|
if test $exists -eq 0; then |
|
|
|
|
run svn add doc/doxyfile.in |
|
|
|
|
run svn propset svn:keywords "Id" doc/doxyfile.in |
|
|
|
|
fi |
|
|
|
|
doxyreplace PROJECT_NAME "@PACKAGE_NAME@" |
|
|
|
|
doxyreplace PROJECT_NUMBER "@PACKAGE_VERSION@" |
|
|
|
|
doxyreplace PROJECT_BRIEF "@DESCRIPTION@" |
|
|
|
|
doxyreplace PROJECT_LOGO "@PROJECT_LOGO@" |
|
|
|
|
doxyreplace INLINE_INHERITED_MEMB YES |
|
|
|
|
doxyreplace MULTILINE_CPP_IS_BRIEF YES |
|
|
|
|
doxyreplace TAB_SIZE 2 |
|
|
|
|
doxyreplace ALIASES '"id=\\par File-ID\\n"' |
|
|
|
|
doxyadd ALIASES '"copy=\\par Copyright\\n"' |
|
|
|
|
doxyadd ALIASES '"license=\\par License\\n"' |
|
|
|
|
doxyadd ALIASES '"classmutex=\\par Reentrant:\\nAccess is locked with class static mutex @c "' |
|
|
|
|
doxyadd ALIASES '"instancemutex=\\par Reentrant:\\nAccess is locked with per instance mutex @c "' |
|
|
|
|
doxyadd ALIASES '"mutex=\\par Reentrant:\\nAccess is locked with mutex @c "' |
|
|
|
|
doxyreplace ENABLE_PREPROCESSING YES |
|
|
|
|
doxyreplace MACRO_EXPANSION YES |
|
|
|
|
doxyadd PREDEFINED '"NAMESPACE=@PACKAGE_NAME@"' |
|
|
|
|
doxyreplace BUILTIN_STL_SUPPORT YES |
|
|
|
|
doxyreplace DISTRIBUTE_GROUP_DOC YES |
|
|
|
|
doxyreplace EXTRACT_ALL YES |
|
|
|
|
doxyreplace EXTRACT_PACKAGE YES |
|
|
|
|
doxyreplace EXTRACT_PRIVATE YES |
|
|
|
|
doxyreplace EXTRACT_STATIC YES |
|
|
|
|
doxyreplace EXTRACT_LOCAL_CLASSES YES |
|
|
|
|
doxyreplace EXTRACT_LOCAL_METHODS YES |
|
|
|
|
doxyreplace EXTRACT_ANON_NSPACES YES |
|
|
|
|
doxyreplace SHOW_GROUPED_MEMB_INC YES |
|
|
|
|
doxyreplace SORT_MEMBERS_CTORS_1ST YES |
|
|
|
|
doxyreplace WARN_IF_UNDOCUMENTED NO |
|
|
|
|
doxyreplace WARN_LOGFILE doxygen.errors |
|
|
|
|
doxyreplace INPUT "@top_srcdir@/src" |
|
|
|
|
if testtag AX_USE_SCRIPTS; then |
|
|
|
|
doxyadd INPUT "@top_srcdir@/scripts" |
|
|
|
|
fi |
|
|
|
|
if testtag AX_BUILD_HTML; then |
|
|
|
|
doxyadd INPUT "@top_srcdir@/html" |
|
|
|
|
fi |
|
|
|
|
if testtag AX_USE_CPPUNIT; then |
|
|
|
|
doxyadd INPUT "@top_srcdir@/test" |
|
|
|
|
fi |
|
|
|
|
doxyreplace FILE_PATTERNS '*.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.idl *.ddl *.odl *.h *.hh *.hxx *.hpp *.h++ *.cs *.d *.php *.php4 *.php5 *.phtml *.inc *.m *.markdown *.md *.mm *.dox *.py *.f90 *.f *.for *.tcl *.vhd *.vhdl *.ucf *.qsf *.as *.js *.wt' |
|
|
|
|
doxyreplace RECURSIVE YES |
|
|
|
|
doxyreplace EXCLUDE_PATTERNS "moc_* uic_* qrc_*" |
|
|
|
|
if testtag AX_BUILD_EXAMPLES; then |
|
|
|
|
doxyreplace EXAMPLE_PATH @top_srcdir@/examples |
|
|
|
|
fi |
|
|
|
|
doxyreplace EXAMPLE_RECURSIVE YES |
|
|
|
|
doxyreplace FILTER_PATTERNS '*.wt=doxygen-webtester.sed' |
|
|
|
|
doxyreplace SOURCE_BROWSER YES |
|
|
|
|
doxyreplace INLINE_SOURCES YES |
|
|
|
|
doxyreplace GENERATE_TESTLIST YES |
|
|
|
|
doxyreplace GENERATE_TREEVIEW NO |
|
|
|
|
doxyreplace SEARCHENGINE YES |
|
|
|
|
doxyreplace GENERATE_HTML YES |
|
|
|
|
doxyreplace GENERATE_LATEX NO |
|
|
|
|
doxyreplace LATEX_BATCHMODE YES |
|
|
|
|
doxyreplace LATEX_HIDE_INDICES YES |
|
|
|
|
doxyreplace COMPACT_RTF YES |
|
|
|
|
doxyreplace RTF_HYPERLINKS YES |
|
|
|
|
doxyreplace GENERATE_TAGFILE "@PACKAGE_NAME@.doxytag" |
|
|
|
|
doxyreplace HIDE_UNDOC_RELATIONS NO |
|
|
|
|
doxyreplace HAVE_DOT YES |
|
|
|
|
doxyreplace CLASS_GRAPH YES |
|
|
|
|
doxyreplace TEMPLATE_RELATIONS YES |
|
|
|
|
doxyreplace DOT_IMAGE_FORMAT svg |
|
|
|
|
doxyreplace INTERACTIVE_SVG YES |
|
|
|
|
doxyreplace DOT_TRANSPARENT YES |
|
|
|
|
fi |
|
|
|
|
doxyreplace EXAMPLE_RECURSIVE YES |
|
|
|
|
doxyreplace FILTER_PATTERNS '*.wt=doxygen-webtester.sed' |
|
|
|
|
doxyreplace SOURCE_BROWSER YES |
|
|
|
|
doxyreplace INLINE_SOURCES YES |
|
|
|
|
doxyreplace GENERATE_TESTLIST YES |
|
|
|
|
doxyreplace GENERATE_TREEVIEW NO |
|
|
|
|
doxyreplace SEARCHENGINE YES |
|
|
|
|
doxyreplace GENERATE_HTML YES |
|
|
|
|
doxyreplace GENERATE_LATEX NO |
|
|
|
|
doxyreplace LATEX_BATCHMODE YES |
|
|
|
|
doxyreplace LATEX_HIDE_INDICES YES |
|
|
|
|
doxyreplace COMPACT_RTF YES |
|
|
|
|
doxyreplace RTF_HYPERLINKS YES |
|
|
|
|
doxyreplace GENERATE_TAGFILE "@PACKAGE_NAME@.doxytag" |
|
|
|
|
doxyreplace HIDE_UNDOC_RELATIONS NO |
|
|
|
|
doxyreplace HAVE_DOT YES |
|
|
|
|
doxyreplace CLASS_GRAPH YES |
|
|
|
|
doxyreplace TEMPLATE_RELATIONS YES |
|
|
|
|
doxyreplace DOT_IMAGE_FORMAT svg |
|
|
|
|
doxyreplace INTERACTIVE_SVG YES |
|
|
|
|
doxyreplace DOT_TRANSPARENT YES |
|
|
|
|
fi |
|
|
|
|
if testtag AX_USE_DEBIAN_PACKAGING; then |
|
|
|
|
checkdir debian |
|
|
|
@ -576,10 +679,11 @@ EOF |
|
|
|
|
Source: @PACKAGE_NAME@ |
|
|
|
|
Priority: extra |
|
|
|
|
Maintainer: @AUTHOR@ |
|
|
|
|
Build-Depends: debhelper, pkg-config, autotools-dev, lsb-release $(if testtag AX_USE_DOXYGEN; then echo -n ", doxygen, graphviz"; fi; if testtag AX_USE_CPPUNIT; then echo -n ", libcppunit-dev"; fi; if testtag AX_CXX_QT || testtag AX_CXX_CHECK_QT; then echo -n ", qtbase5-dev | libqt4-dev, qtbase5-dev-tools | qt4-dev-tools"; fi) |
|
|
|
|
Build-Depends: debhelper, subversion, pkg-config, autotools-dev, lsb-release $(if testtag AX_USE_DOXYGEN; then echo -n ", doxygen, graphviz, mscgen"; fi; if testtag AX_USE_CPPUNIT; then echo -n ", libcppunit-dev"; fi; if testtag AX_CXX_QT || testtag AX_CXX_CHECK_QT; then echo -n ", qtbase5-dev | libqt4-dev, qtbase5-dev-tools | qt4-dev-tools"; fi) |
|
|
|
|
|
|
|
|
|
Package: @PACKAGE_NAME@ |
|
|
|
|
$(if testtag AX_USE_LIBTOOL; then echo "Section: libs"; fi)Architecture: any |
|
|
|
|
Section: $(if testtag AX_USE_LIBTOOL; then echo "libs"; fi) |
|
|
|
|
Architecture: any |
|
|
|
|
Depends: \${shlibs:Depends}, \${misc:Depends} |
|
|
|
|
Description: @DESCRIPTION@ |
|
|
|
|
@README_DEB@ |
|
|
|
@ -616,8 +720,98 @@ ${HEADER}%: |
|
|
|
|
EOF |
|
|
|
|
echo 7 | to debian/compat |
|
|
|
|
fi |
|
|
|
|
to --condition AX_USE_RPM_PACKAGING ${PACKAGE_NAME}.spec.in <<EOF |
|
|
|
|
Summary: @DESCRIPTION@ |
|
|
|
|
Name: @PACKAGE_NAME@ |
|
|
|
|
Version: @VERSION@ |
|
|
|
|
Release: 1 |
|
|
|
|
License: LGPL |
|
|
|
|
Group: $(if testtag AX_USE_LIBTOOL; then |
|
|
|
|
echo Development/Libraries/C++; |
|
|
|
|
else |
|
|
|
|
echo Applications/...; |
|
|
|
|
fi) |
|
|
|
|
Source0: %{name}-%{version}.tar.gz |
|
|
|
|
BuildRequires: pkg-config, subversion, autotools-devel, lsb-release $(if testtag AX_USE_DOXYGEN; then echo -n ", doxygen, graphviz, mscgen"; fi; if testtag AX_CXX_QT || testtag AX_CXX_CHECK_QT; then echo -n ", qtbase5-devel | libqt4-devel, qtbase5-devel-tools | qt4-devel-tools"; fi) |
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|
|
|
|
$(if testtag AX_USE_CPPUNIT; then |
|
|
|
|
cat <<EOF2 |
|
|
|
|
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} |
|
|
|
|
BuildRequires: cppunit-devel |
|
|
|
|
%else%if 0%{?suse_version} || 0%{?sles_version} |
|
|
|
|
BuildRequires: libcppunit-devel |
|
|
|
|
%endif%endif |
|
|
|
|
EOF2 |
|
|
|
|
fi) |
|
|
|
|
|
|
|
|
|
%description |
|
|
|
|
@README@ |
|
|
|
|
$(if testtag AX_USE_LIBTOOL; then |
|
|
|
|
echo |
|
|
|
|
echo This package contains only the shared libraries required at runtime. |
|
|
|
|
fi) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%setup -q |
|
|
|
|
./configure --prefix=/usr \ |
|
|
|
|
--docdir=/usr/share/doc/packages/@PACKAGE_NAME@ \ |
|
|
|
|
--libdir=/usr/%_lib |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
make |
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
DESTDIR=\$RPM_BUILD_ROOT make install |
|
|
|
|
|
|
|
|
|
%clean |
|
|
|
|
rm -rf \$RPM_BUILD_ROOT |
|
|
|
|
|
|
|
|
|
%files |
|
|
|
|
%defattr(-,root,root,-) |
|
|
|
|
/usr/bin/* |
|
|
|
|
$(if testtag AX_USE_LIBTOOL; then |
|
|
|
|
echo '/usr/%_lib/@PACKAGE_NAME@.so.*' |
|
|
|
|
fi) |
|
|
|
|
%doc |
|
|
|
|
/usr/share/doc/packages/@PACKAGE_NAME@/AUTHORS |
|
|
|
|
/usr/share/doc/packages/@PACKAGE_NAME@/COPYING |
|
|
|
|
/usr/share/doc/packages/@PACKAGE_NAME@/ChangeLog |
|
|
|
|
/usr/share/doc/packages/@PACKAGE_NAME@/INSTALL |
|
|
|
|
/usr/share/doc/packages/@PACKAGE_NAME@/NEWS |
|
|
|
|
/usr/share/doc/packages/@PACKAGE_NAME@/README |
|
|
|
|
|
|
|
|
|
$(if testtag AX_USE_LIBTOOL; then |
|
|
|
|
cat <<EOF2 |
|
|
|
|
%package devel |
|
|
|
|
Summary: C++ Wrapper around OpenSSL, PCSC and Cryptoki (development files) |
|
|
|
|
Group: Development/Libraries/C++ |
|
|
|
|
Requires: @PACKAGE_NAME@ = @VERSION@ |
|
|
|
|
|
|
|
|
|
%description devel |
|
|
|
|
@README@ |
|
|
|
|
|
|
|
|
|
This Package contains all files required for developement. |
|
|
|
|
|
|
|
|
|
%files devel |
|
|
|
|
%defattr(-,root,root,-) |
|
|
|
|
/usr/%_lib/@PACKAGE_NAME@.so |
|
|
|
|
/usr/%_lib/@PACKAGE_NAME@.a |
|
|
|
|
/usr/%_lib/pkgconfig |
|
|
|
|
/usr/%_lib/@PACKAGE_NAME@.la |
|
|
|
|
/usr/include/ |
|
|
|
|
/usr/share/pkgconfig |
|
|
|
|
%doc |
|
|
|
|
/usr/share/doc/packages/@PACKAGE_NAME@/html |
|
|
|
|
/usr/share/doc/packages/@PACKAGE_NAME@/@PACKAGE_NAME@.spec |
|
|
|
|
EOF2 |
|
|
|
|
fi) |
|
|
|
|
|
|
|
|
|
%changelog |
|
|
|
|
|
|
|
|
|
EOF |
|
|
|
|
SUBDIRS="" |
|
|
|
|
for d in src test scripts doc examples; do |
|
|
|
|
for d in src test scripts doc examples html; do |
|
|
|
|
test -d $d && SUBDIRS="${SUBDIRS} $d" |
|
|
|
|
done |
|
|
|
|
to makefile.am<<EOF |
|
|
|
@ -634,7 +828,7 @@ includedir=\${prefix}/include |
|
|
|
|
Name: @PACKAGE_NAME@ |
|
|
|
|
Description: @DESCRIPTION@ |
|
|
|
|
Version: @VERSION@ |
|
|
|
|
Libs: -L\${libdir} -l@PACKAGE_NAME@ @LDFLAGS@ |
|
|
|
|
Libs: -L\${libdir} -l${PACKAGE_NAME#lib} @LDFLAGS@ |
|
|
|
|
Cflags: -I\${includedir} @CPPFLAGS@ |
|
|
|
|
Requires: @PKG_REQUIREMENTS@ |
|
|
|
|
EOF |
|
|
|
|