diff options
author | Chris Larson <clarson@kergoth.com> | 2004-01-02 22:16:42 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-01-02 22:16:42 +0000 |
commit | d20d9914ea43abaf0d6c6e9cf18d91faf0431da2 (patch) | |
tree | f767068b61d823ccd539bd164a9d6b7987c54370 | |
parent | c9ba991a3c115f59afea73879ba8ffc8eb13d4a0 (diff) |
Various build bugfixes, as spotted in my recent oemake run.
BKrev: 3ff5edcaWEB85eU9ztdxwMRHWdMo1A
-rw-r--r-- | alsa-lib/alsa-lib_0.9.8.oe | 22 | ||||
-rw-r--r-- | apache/apache_2.0.47.oe | 6 | ||||
-rw-r--r-- | apache/apache_2.0.48.oe | 6 | ||||
-rw-r--r-- | gawk/gawk_3.0.4.oe | 4 | ||||
-rw-r--r-- | libtool/libtool_1.4.3.oe | 26 | ||||
-rw-r--r-- | mutt/mutt-1.5.4i/configure.patch | 303 |
6 files changed, 367 insertions, 0 deletions
diff --git a/alsa-lib/alsa-lib_0.9.8.oe b/alsa-lib/alsa-lib_0.9.8.oe index e69de29bb2..bf1e1e2c61 100644 --- a/alsa-lib/alsa-lib_0.9.8.oe +++ b/alsa-lib/alsa-lib_0.9.8.oe @@ -0,0 +1,22 @@ +DESCRIPTION="Alsa sound library" +MAINTAINER="Lorn Potter <lpotter@trolltech.com>" +LICENSE="GPL" +DEPENDS="virtual/libc" + +SRC_URI="ftp://ftp.alsa-project.org/pub/lib/alsa-lib-${PV}.tar.bz2" + +inherit autotools libtool + +EXTRA_OECONF="--with-cards=pdaudiocf --with-oss=yes" + +do_stage () { + install -m 0755 src/.libs/libasound.so.2.0.0 ${STAGING_LIBDIR}/ + ln -sf libasound.so.2.0.0 ${STAGING_LIBDIR}/libasound.so.2 + ln -sf libasound.so.2.0.0 ${STAGING_LIBDIR}/libasound.so + install -d ${STAGING_DIR}/target/include/alsa/sound + install -m 0644 include/*.h ${STAGING_DIR}/target/include/alsa/ + install -m 0644 include/sound/ainstr*.h ${STAGING_DIR}/target/include/alsa/sound/ + install -d ${PKG_CONFIG_DIR} + install -m 0644 utils/alsa.pc ${PKG_CONFIG_DIR}/ + install -m 0644 utils/alsa.m4 ${STAGING_DIR}/share/aclocal/ +} diff --git a/apache/apache_2.0.47.oe b/apache/apache_2.0.47.oe index 7b130a0588..f22988b62d 100644 --- a/apache/apache_2.0.47.oe +++ b/apache/apache_2.0.47.oe @@ -13,6 +13,12 @@ inherit autotools libtool CFLAGS_append = " -DPATH_MAX=4096" CFLAGS_prepend = "-I${STAGING_DIR}/target/include/openssl " EXTRA_OECONF = --enable-ssl --with-ssl=${STAGING_DIR}/target --enable-dav --enable-dav-fs + +do_configure () { + ./buildconf + oe_runconf +} + do_compile () { touch srclib/apr-util/uri/gen_uri_delims.lo ${BUILD_CC} srclib/apr-util/uri/gen_uri_delims.c -o srclib/apr-util/uri/gen_uri_delims diff --git a/apache/apache_2.0.48.oe b/apache/apache_2.0.48.oe index a6a4ad2b18..2a3fe01f85 100644 --- a/apache/apache_2.0.48.oe +++ b/apache/apache_2.0.48.oe @@ -15,6 +15,12 @@ CFLAGS_prepend = "-I${STAGING_DIR}/target/include/openssl " EXTRA_OECONF = '--enable-ssl --with-ssl=${STAGING_DIR}/target \ --enable-dav --enable-dav-fs \ --with-z=${STAGING_DIR}/target --with-dbm=db3' + +do_configure () { + ./buildconf + oe_runconf +} + do_compile () { touch srclib/apr-util/uri/gen_uri_delims.lo ${BUILD_CC} srclib/apr-util/uri/gen_uri_delims.c -o srclib/apr-util/uri/gen_uri_delims diff --git a/gawk/gawk_3.0.4.oe b/gawk/gawk_3.0.4.oe index 4690c154b6..9cd95ec7eb 100644 --- a/gawk/gawk_3.0.4.oe +++ b/gawk/gawk_3.0.4.oe @@ -9,6 +9,10 @@ inherit autotools EXTRA_OEMAKE = "'bindir=${D}/${bindir}' 'mandir=${D}/${mandir}/man1' 'infodir=${D}/${datadir}/info' \ 'libexecdir=${D}/${libexecdir}' 'datadir=${D}/${datadir}/awk'" +do_configure_prepend () { + mv aclocal.m4 acinclude.m4 +} + do_install_append () { rm -f ${D}/${bindir}/gawk-* } diff --git a/libtool/libtool_1.4.3.oe b/libtool/libtool_1.4.3.oe index e69de29bb2..25a0f545fc 100644 --- a/libtool/libtool_1.4.3.oe +++ b/libtool/libtool_1.4.3.oe @@ -0,0 +1,26 @@ +PR = r0 + +DESCRIPTION = Generic library support script\ + This is GNU libtool, a generic library support script. Libtool hides\ + the complexity of generating special library types (such as shared\ + libraries) behind a consistent interface. To use libtool, add the\ + new generic library building commands to your Makefile, Makefile.in,\ + or Makefile.am. See the documentation for details. Libtool supports\ + building static libraries on all platforms.\ + Libtool supports generation of C, C++ and Java libraries. + +DEPENDS= + +SRC_URI = ${DEBIAN_MIRROR}/main/libt/${PN}/${PN}_${PV}.orig.tar.gz \ + file://${FILESDIR}/debian.patch;patch=1 \ + file://${FILESDIR}/libdir.patch;patch=1 \ + file://${FILESDIR}/sedvar.patch;patch=1 \ + file://${FILESDIR}/libtoolize-staging.patch;patch=1 +S = "${WORKDIR}/${P}" + +inherit autotools + +EXTRA_OECONF = --disable-ltdl-install +do_configure_prepend () { + ./bootstrap +} diff --git a/mutt/mutt-1.5.4i/configure.patch b/mutt/mutt-1.5.4i/configure.patch index e69de29bb2..70cf2b36f0 100644 --- a/mutt/mutt-1.5.4i/configure.patch +++ b/mutt/mutt-1.5.4i/configure.patch @@ -0,0 +1,303 @@ + +# +# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher +# + +--- mutt-1.5.4/./configure.in~configure ++++ mutt-1.5.4/./configure.in +@@ -3,8 +3,9 @@ + dnl !!! WHEN ADDING NEW CONFIGURE TESTS, PLEASE ADD CODE TO MAIN.C !!! + dnl !!! TO DUMP THEIR RESULTS WHEN MUTT -V IS CALLED !!! + +-AC_PREREQ(2.12) +-AC_INIT(mutt.h) ++AC_PREREQ(2.57) ++AC_INIT ++AC_CONFIG_SRCDIR([mutt.h]) + AM_CONFIG_HEADER(config.h) + + mutt_cv_version=`cat $srcdir/VERSION` +@@ -151,7 +152,7 @@ + + AC_ARG_WITH(slang, [ --with-slang[=DIR] Use S-Lang instead of ncurses], + [AC_CACHE_CHECK([if this is a BSD system], mutt_cv_bsdish, +- [AC_TRY_RUN([#include <sys/param.h> ++ [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <sys/param.h> + + main () + { +@@ -160,10 +161,7 @@ + #else + exit (1); + #endif +-}], +- mutt_cv_bsdish=yes, +- mutt_cv_bsdish=no, +- mutt_cv_bsdish=no)]) ++}]])],[mutt_cv_bsdish=yes],[mutt_cv_bsdish=no],[mutt_cv_bsdish=no])]) + + AC_MSG_CHECKING(for S-Lang) + if test $withval = yes; then +@@ -294,7 +292,8 @@ + AC_DEFINE(SIG_ATOMIC_VOLATILE_T, [volatile sig_atomic_t]) + fi + +-AC_DECL_SYS_SIGLIST ++AC_CHECK_DECLS([sys_siglist]) ++ + + dnl For MD5 and SHA1 on 64-bit systems + AC_C_BIGENDIAN +@@ -302,7 +301,7 @@ + dnl This is the method autoconf-2.50's new AC_CHECK_TYPE macro uses. + dnl We need to be backwards compatible to autoconf 2.13, though. -lh + AC_MSG_CHECKING(for uint32_t) +-AC_TRY_COMPILE([ ++AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + #include <sys/types.h> + #if HAVE_INTTYPES_H + #include <inttypes.h> +@@ -310,16 +309,15 @@ + #if HAVE_STDINT_H + #include <stdint.h> + #endif +-#endif], +-[if ((uint32_t *) 0) ++#endif]], [[if ((uint32_t *) 0) + return 0; + if (sizeof (uint32_t)) + return 0; +-],[ ++]])],[ + AC_DEFINE(HAVE_UINT32_T,1,[ Define if you have the uint32_t type. ]) + AC_MSG_RESULT(yes) +- ], AC_MSG_RESULT(no) +-) ++ ],[AC_MSG_RESULT(no) ++]) + AC_CHECK_SIZEOF(int) + AC_CHECK_SIZEOF(long) + +@@ -339,8 +337,7 @@ + AC_CHECK_FUNCS(snprintf, , [mutt_cv_snprintf=yes]) + AC_CHECK_FUNCS(vsnprintf, , [mutt_cv_snprintf=yes]) + if test $mutt_cv_snprintf = yes; then +-# AC_LIBOBJ(snprintf) +- LIBOBJS="$LIBOBJS snprintf.o" ++ AC_LIBOBJ(snprintf) + fi + + dnl SCO uses chsize() instead of ftruncate() +@@ -359,21 +356,19 @@ + if test $mutt_cv_regex = no ; then + AC_CACHE_CHECK([whether your system's regexp library is completely broken], + [mutt_cv_regex_broken], +- AC_TRY_RUN([ ++ AC_RUN_IFELSE([AC_LANG_SOURCE([[ + #include <unistd.h> + #include <regex.h> +-main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }], +- mutt_cv_regex_broken=no, mutt_cv_regex_broken=yes, mutt_cv_regex_broken=yes)) ++main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }]])],[mutt_cv_regex_broken=no],[mutt_cv_regex_broken=yes],[mutt_cv_regex_broken=yes])) + if test $mutt_cv_regex_broken = yes ; then +- echo "Using the included GNU regex instead." >&AC_FD_MSG ++ echo "Using the included GNU regex instead." >&AS_MESSAGE_FD([]) + mutt_cv_regex=yes + fi + fi + + if test $mutt_cv_regex = yes; then + AC_DEFINE(USE_GNU_REGEX,1,[ Define if you want to use the included regex.c. ]) +-### AC_LIBOBJ(regex) +- LIBOBJS="$LIBOBJS regex.o" ++ AC_LIBOBJ(regex) + fi + + +@@ -410,7 +405,7 @@ + fi + AC_DEFINE_UNQUOTED(MAILPATH,"$mutt_cv_mailpath",[ Where new mail is spooled. ]) + +- AC_CACHE_CHECK(if $mutt_cv_mailpath is world writable, mutt_cv_worldwrite, [AC_TRY_RUN([#include <sys/types.h> ++ AC_CACHE_CHECK(if $mutt_cv_mailpath is world writable, mutt_cv_worldwrite, [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <sys/types.h> + #include <sys/stat.h> + + int main (int argc, char **argv) +@@ -420,14 +415,14 @@ + stat ("$mutt_cv_mailpath", &s); + if (s.st_mode & S_IWOTH) exit (0); + exit (1); +-}], mutt_cv_worldwrite=yes, mutt_cv_worldwrite=no, mutt_cv_worldwrite=no)]) ++}]])],[mutt_cv_worldwrite=yes],[mutt_cv_worldwrite=no],[mutt_cv_worldwrite=no])]) + + mutt_cv_setgid=no + if test $mutt_cv_worldwrite = yes; then + AC_DEFINE(USE_DOTLOCK,1,[ Define to use dotlocking for mailboxes. ]) + else + +- AC_CACHE_CHECK(if $mutt_cv_mailpath is group writable, mutt_cv_groupwrite, [AC_TRY_RUN([#include <sys/types.h> ++ AC_CACHE_CHECK(if $mutt_cv_mailpath is group writable, mutt_cv_groupwrite, [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <sys/types.h> + #include <sys/stat.h> + + int main (int argc, char **argv) +@@ -437,7 +432,7 @@ + stat ("$mutt_cv_mailpath", &s); + if (s.st_mode & S_IWGRP) exit (0); + exit (1); +-}], mutt_cv_groupwrite=yes, mutt_cv_groupwrite=no, mutt_cv_groupwrite=no)]) ++}]])],[mutt_cv_groupwrite=yes],[mutt_cv_groupwrite=no],[mutt_cv_groupwrite=no])]) + + if test $mutt_cv_groupwrite = yes; then + AC_DEFINE(USE_DOTLOCK,1,[ Define to use dotlocking for mailboxes. ]) +@@ -813,7 +808,7 @@ + AC_CACHE_CHECK([whether this iconv is good enough], mutt_cv_iconv_good, + mutt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" +- AC_TRY_RUN([ ++ AC_RUN_IFELSE([AC_LANG_SOURCE([[ + #include <iconv.h> + int main() + { +@@ -829,10 +824,7 @@ + !(ob == buf && obl == sizeof(buf)) || + iconv_close(cd))); + } +- ], +- mutt_cv_iconv_good=yes, +- mutt_cv_iconv_good=no, +- mutt_cv_iconv_good=yes) ++ ]])],[mutt_cv_iconv_good=yes],[mutt_cv_iconv_good=no],[mutt_cv_iconv_good=yes]) + LIBS="$mutt_save_LIBS") + if test "$mutt_cv_iconv_good" = no; then + AC_MSG_ERROR(Try using libiconv instead) +@@ -844,7 +836,7 @@ + AC_CACHE_CHECK([whether iconv is non-transcribing], mutt_cv_iconv_nontrans, + mutt_save_LIBS="$LIBS" + LIBS="$LIBS $LIBICONV" +- AC_TRY_RUN([ ++ AC_RUN_IFELSE([AC_LANG_SOURCE([[ + #include <iconv.h> + #include <string.h> + int main() +@@ -861,10 +853,7 @@ + return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) || + iconv(cd, &ib, &ibl, &ob, &obl)); + } +- ], +- mutt_cv_iconv_nontrans=no, +- mutt_cv_iconv_nontrans=yes, +- mutt_cv_iconv_nontrans=no) ++ ]])],[mutt_cv_iconv_nontrans=no],[mutt_cv_iconv_nontrans=yes],[mutt_cv_iconv_nontrans=no]) + LIBS="$mutt_save_LIBS") + if test "$mutt_cv_iconv_nontrans" = yes; then + AC_DEFINE(ICONV_NONTRANS, 1) +@@ -888,32 +877,26 @@ + AC_CHECK_HEADERS(wchar.h) + + AC_CACHE_CHECK([for wchar_t], mutt_cv_wchar_t, +- AC_TRY_COMPILE([ ++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + #include <stddef.h> + #include <stdlib.h> + #ifdef HAVE_WCHAR_H + #include <wchar.h> + #endif +- ], +- [ wchar_t wc; return 0; ], +- mutt_cv_wchar_t=yes, +- mutt_cv_wchar_t=no)) ++ ]], [[ wchar_t wc; return 0; ]])],[mutt_cv_wchar_t=yes],[mutt_cv_wchar_t=no])) + + if test "$mutt_cv_wchar_t" = no; then + AC_DEFINE(wchar_t,int,[ Define to 'int' if system headers don't define. ]) + fi + + AC_CACHE_CHECK([for wint_t], mutt_cv_wint_t, +- AC_TRY_COMPILE([ ++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + #include <stddef.h> + #include <stdlib.h> + #ifdef HAVE_WCHAR_H + #include <wchar.h> + #endif +- ], +- [ wint_t wc; return 0; ], +- mutt_cv_wint_t=yes, +- mutt_cv_wint_t=no)) ++ ]], [[ wint_t wc; return 0; ]])],[mutt_cv_wint_t=yes],[mutt_cv_wint_t=no])) + + if test "$mutt_cv_wint_t" = no; then + AC_DEFINE(wint_t,int,[ Define to 'int' if system headers don't define. ]) +@@ -925,16 +908,13 @@ + AC_CHECK_FUNCS(iswxdigit towupper towlower) + + AC_CACHE_CHECK([for mbstate_t], mutt_cv_mbstate_t, +- AC_TRY_COMPILE([ ++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + #include <stddef.h> + #include <stdlib.h> + #ifdef HAVE_WCHAR_H + #include <wchar.h> + #endif +- ], +- [ mbstate_t s; return 0; ], +- mutt_cv_mbstate_t=yes, +- mutt_cv_mbstate_t=no)) ++ ]], [[ mbstate_t s; return 0; ]])],[mutt_cv_mbstate_t=yes],[mutt_cv_mbstate_t=no])) + + if test "$mutt_cv_mbstate_t" = no; then + AC_DEFINE(mbstate_t,int,[ Define to 'int' if system headers don't define. ]) +@@ -947,7 +927,7 @@ + if test "$wc_funcs" != yes -a "$wc_funcs" != no; then + AC_CACHE_CHECK([for wchar_t functions], mutt_cv_wc_funcs, + mutt_cv_wc_funcs=no +- AC_TRY_LINK([ ++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[ + #define _XOPEN_SOURCE 1 + #include <stddef.h> + #include <stdlib.h> +@@ -956,10 +936,8 @@ + #endif + #ifdef HAVE_WCHAR_H + #include <wchar.h> +-#endif], +- [mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0); +- iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)], +- mutt_cv_wc_funcs=yes)) ++#endif]], [[mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0); ++ iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)]])],[mutt_cv_wc_funcs=yes],[])) + wc_funcs=$mutt_cv_wc_funcs + fi + +@@ -968,26 +946,21 @@ + fi + + AC_CACHE_CHECK([for nl_langinfo and CODESET], mutt_cv_langinfo_codeset, +- [AC_TRY_LINK([#include <langinfo.h>], +- [char* cs = nl_langinfo(CODESET);], +- mutt_cv_langinfo_codeset=yes, +- mutt_cv_langinfo_codeset=no)]) ++ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[char* cs = nl_langinfo(CODESET);]])],[mutt_cv_langinfo_codeset=yes],[mutt_cv_langinfo_codeset=no])]) + if test $mutt_cv_langinfo_codeset = yes; then + AC_DEFINE(HAVE_LANGINFO_CODESET,1,[ Define if you have <langinfo.h> and nl_langinfo(CODESET). ]) + fi + + AC_CACHE_CHECK([for nl_langinfo and YESEXPR], mutt_cv_langinfo_yesexpr, +- [AC_TRY_LINK([#include <langinfo.h>], +- [char* cs = nl_langinfo(YESEXPR);], +- mutt_cv_langinfo_yesexpr=yes, +- mutt_cv_langinfo_yesexpr=no)]) ++ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[char* cs = nl_langinfo(YESEXPR);]])],[mutt_cv_langinfo_yesexpr=yes],[mutt_cv_langinfo_yesexpr=no])]) + if test $mutt_cv_langinfo_yesexpr = yes; then + AC_DEFINE(HAVE_LANGINFO_YESEXPR,1,[ Define if you have <langinfo.h> and nl_langinfo(YESEXPR). ]) + fi + +-AC_OUTPUT(Makefile intl/Makefile m4/Makefile ++AC_CONFIG_FILES([Makefile intl/Makefile m4/Makefile + po/Makefile.in doc/Makefile contrib/Makefile + muttbug.sh + imap/Makefile + Muttrc.head +- doc/instdoc.sh) ++ doc/instdoc.sh]) ++AC_OUTPUT |