fixup a whole steaming pile of insanity. When packages are configured,
authorEric Andersen <andersen@codepoet.org>
Sun, 14 Jan 2007 03:52:21 +0000 (03:52 -0000)
committerEric Andersen <andersen@codepoet.org>
Sun, 14 Jan 2007 03:52:21 +0000 (03:52 -0000)
they should be configured with --prefix=/usr and we then need to use
make DESTDIR=$(STAGING_DIR) install to get things installed into the
staging directory.  The current situation for many packages, which use
--prefix=$(STAGING_DIR) results in the staging_dir paths getting compiled
into the binary itself.

This also adds in a pile of libtool fixups.  Between broken pkgconfig,
broken libtool handling, and broken --prefix settings, its a wonder
things have worked as well as they have up till now.
 -Erik

103 files changed:
package/argus/argus.mk
package/at/at.mk
package/atk/atk.mk
package/atk/libdir-la.patch [new file with mode: 0644]
package/autoconf/autoconf.mk
package/automake/automake.mk
package/avahi/avahi.mk
package/bash/bash.mk
package/berkeleydb/berkeleydb.mk
package/bind/bind.mk
package/bison/bison.mk
package/boa/boa.mk
package/bridge/bridge.mk
package/cairo/cairo.mk
package/cairo/libdir-la.patch [new file with mode: 0644]
package/coreutils/coreutils.mk
package/cvs/cvs.mk
package/diffutils/diffutils.mk
package/directfb/directfb.mk
package/distcc/distcc.mk
package/dm/dm.mk
package/dmalloc/dmalloc.mk
package/dropbear/dropbear.mk
package/e2fsprogs/e2fsprogs.mk
package/expat/expat.mk
package/expat/libdir-la.patch [new file with mode: 0644]
package/file/file.mk
package/findutils/findutils.mk
package/flex/flex.mk
package/freetype/freetype.mk
package/freetype/libdir-la.patch [new file with mode: 0644]
package/gawk/gawk.mk
package/gettext/gettext.mk
package/gettext/libdir-la.patch [new file with mode: 0644]
package/gmp/gmp.mk
package/grep/grep.mk
package/gzip/gzip.mk
package/jpeg/jpeg.mk
package/kexec/kexec.mk
package/libcgi/libcgi.mk
package/libcgicc/libcgicc.mk
package/libdaemon/libdaemon.mk
package/libglib12/libglib12.mk
package/libglib2/libdir-la.patch [new file with mode: 0644]
package/libglib2/libglib2.mk
package/libgtk12/libgtk12.mk
package/libgtk2/libdir-la.patch [new file with mode: 0644]
package/libgtk2/libgtk2.mk
package/libpcap/libpcap.mk
package/libpng/libdir-la.patch [new file with mode: 0644]
package/libpng/libpng.mk
package/libraw1394/libraw1394.mk
package/libtool/libtool.mk
package/libusb/libusb.mk
package/lighttpd/lighttpd.mk
package/links/links.mk
package/lrzsz/lrzsz.mk
package/ltt/ltt.mk
package/make/make.mk
package/mpfr/mpfr.mk
package/nano/nano.mk
package/ncurses/ncurses.mk
package/newt/newt.mk
package/ntp/ntp.mk
package/openssh/openssh.mk
package/openvpn/openvpn.mk
package/pango/libdir-la.patch [new file with mode: 0644]
package/pango/no-tests.patch
package/pango/pango.mk
package/patch/patch.mk
package/pppd/pppd.mk
package/psmisc/psmisc.mk
package/qte/qte.mk
package/raidtools/raidtools.mk
package/readline/readline.mk
package/rsync/rsync.mk
package/ruby/ruby.mk
package/sdl/sdl.mk
package/sed/sed.mk
package/smartmontools/smartmontools.mk
package/socat/socat.mk
package/sqlite/sqlite.mk
package/strace/strace.mk
package/stunnel/stunnel.mk
package/sudo/sudo.mk
package/tar/tar.mk
package/tcpdump/dhcpdump.mk
package/tcpdump/tcpdump.mk
package/tftpd/tftpd.mk
package/thttpd/thttpd.mk
package/tiff/tiff.mk
package/tn5250/tn5250.mk
package/usbutils/usbutils.mk
package/util-linux/util-linux.mk
package/valgrind/valgrind.mk
package/vtun/vtun.mk
package/wget/wget.mk
package/which/which.mk
package/xorg/Config.in
package/xorg/libXfont-1.1.0-noftinternals.patch [new file with mode: 0644]
package/xorg/libdir-la.patch [new file with mode: 0644]
package/xorg/xorg-config.patch
package/xorg/xorg.mk

index 991fc3eccf11edcb053c1077267ff20d445cfbbc..ee6993e120bd6e33292bfd0a58b6efd775d10038 100644 (file)
@@ -50,7 +50,7 @@ endif
 
 $(ARGUS_DIR)/.configured: $(ARGUS_DIR)/.unpacked
        (cd $(ARGUS_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                $(ARGUS_TRAP_CHECK) \
                ./configure \
index 40e4debebcae3ef68add6e8d9ee987e74549b3e9..58a7cb4639138a4afc3c240755674d363431839b 100644 (file)
@@ -29,6 +29,7 @@ $(AT_DIR)/.configured: $(AT_DIR)/.unpacked
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --localstatedir=/var \
index a3147f8c8213ea60660f75e43a4c7945e530bc41..06eba8dabd80754eaecc3bcb622fbba421896a92 100644 (file)
@@ -30,7 +30,6 @@ $(ATK_DIR)/.unpacked: $(DL_DIR)/$(ATK_SOURCE)
 $(ATK_DIR)/.configured: $(ATK_DIR)/.unpacked
        (cd $(ATK_DIR); rm -rf config.cache; \
                $(TARGET_CONFIGURE_OPTS) \
-               PKG_CONFIG=$(STAGING_DIR)/usr/bin/pkg-config \
                ac_cv_c_bigendian=$(ATK_BE) \
                ac_cv_func_posix_getpwuid_r=yes \
                glib_cv_stack_grows=no \
@@ -90,18 +89,19 @@ $(ATK_DIR)/.configured: $(ATK_DIR)/.unpacked
                gl_cv_c_restrict=no \
                ac_cv_path_GLIB_GENMARSHAL=/usr/bin/glib-genmarshal \
                ./configure \
+               --target=$(GNU_TARGET_NAME) \
                --host=$(REAL_GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
-               --prefix=$(STAGING_DIR) \
-               --exec_prefix=$(STAGING_DIR) \
-               --libdir=$(STAGING_DIR)/lib \
-               --includedir=$(STAGING_DIR)/include \
+               --prefix=/usr \
+               --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
+               --includedir=/include \
                --mandir=/usr/man \
                --infodir=/usr/info \
                --enable-shared \
@@ -120,21 +120,8 @@ $(ATK_DIR)/atk/.libs/$(ATK_BINARY): $(ATK_DIR)/.configured
        touch -c $(ATK_DIR)/atk/.libs/$(ATK_BINARY)
 
 $(STAGING_DIR)/lib/$(ATK_BINARY): $(ATK_DIR)/atk/.libs/$(ATK_BINARY)
-       $(MAKE) prefix=$(STAGING_DIR) \
-           exec_prefix=$(STAGING_DIR) \
-           bindir=$(STAGING_DIR)/bin \
-           sbindir=$(STAGING_DIR)/sbin \
-           libexecdir=$(STAGING_DIR)/libexec \
-           datadir=$(STAGING_DIR)/share \
-           sysconfdir=$(STAGING_DIR)/etc \
-           sharedstatedir=$(STAGING_DIR)/com \
-           localstatedir=$(STAGING_DIR)/var \
-           libdir=$(STAGING_DIR)/lib \
-           includedir=$(STAGING_DIR)/include \
-           oldincludedir=$(STAGING_DIR)/include \
-           infodir=$(STAGING_DIR)/info \
-           mandir=$(STAGING_DIR)/man \
-           -C $(ATK_DIR) install;
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(ATK_DIR) install
+       $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" $(STAGING_DIR)/lib/libatk-1.0.la
        touch -c $(STAGING_DIR)/lib/$(ATK_BINARY)
 
 $(TARGET_DIR)/lib/libatk-1.0.so.0: $(STAGING_DIR)/lib/$(ATK_BINARY)
@@ -143,7 +130,7 @@ $(TARGET_DIR)/lib/libatk-1.0.so.0: $(STAGING_DIR)/lib/$(ATK_BINARY)
        $(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libatk-1.0.so.0.*
        touch -c $(TARGET_DIR)/lib/libatk-1.0.so.0
 
-atk: libglib2 $(TARGET_DIR)/lib/libatk-1.0.so.0
+atk: libglib2 pkgconfig $(TARGET_DIR)/lib/libatk-1.0.so.0
 
 atk-clean:
        rm -f $(TARGET_DIR)/lib/$(ATK_BINARY)
diff --git a/package/atk/libdir-la.patch b/package/atk/libdir-la.patch
new file mode 100644 (file)
index 0000000..dfaf2e9
--- /dev/null
@@ -0,0 +1,77 @@
+--- atk-1.9.1/ltmain.sh.orig   2004-11-23 09:19:19.000000000 -0700
++++ atk-1.9.1/ltmain.sh        2007-01-13 14:36:53.000000000 -0700
+@@ -231,8 +231,9 @@
+       # line option must be used.
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+-        $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit $EXIT_FAILURE
++        $echo "$modename: defaulting to \`CC'"
++        $echo "$modename: if this is not correct, specify a tag with \`--tag'"
++#       exit $EXIT_FAILURE
+ #        else
+ #          $echo "$modename: using $tagname tagged configuration"
+       fi
+@@ -2279,8 +2280,14 @@
+           absdir="$abs_ladir"
+           libdir="$abs_ladir"
+         else
+-          dir="$libdir"
+-          absdir="$libdir"
++            # Adding 'libdir' from the .la file to our library search paths
++            # breaks crosscompilation horribly.  We cheat here and don't add
++            # it, instead adding the path where we found the .la.  -CL
++          dir="$abs_ladir"
++          absdir="$abs_ladir"
++          libdir="$abs_ladir"
++          #dir="$libdir"
++          #absdir="$libdir"
+         fi
+       else
+         if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+@@ -2754,6 +2761,16 @@
+               esac
+               if grep "^installed=no" $deplib > /dev/null; then
+                 path="$absdir/$objdir"
++#             This interferes with crosscompilation. -CL
++#             else
++#               eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
++#               if test -z "$libdir"; then
++#                 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
++#                 exit 1
++#               fi
++#               if test "$absdir" != "$libdir"; then
++#                 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
++#               fi
+               else
+                 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                 if test -z "$libdir"; then
+@@ -5141,6 +5158,10 @@
+           # Replace all uninstalled libtool libraries with the installed ones
+           newdependency_libs=
+           for deplib in $dependency_libs; do
++              # Replacing uninstalled with installed can easily break crosscompilation,
++              # since the installed path is generally the wrong architecture.  -CL
++              newdependency_libs="$newdependency_libs $deplib"
++              continue
+             case $deplib in
+             *.la)
+               name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
+@@ -5459,10 +5480,13 @@
+         # At present, this check doesn't affect windows .dll's that
+         # are installed into $libdir/../bin (currently, that works fine)
+         # but it's something to keep an eye on.
+-        if test "$inst_prefix_dir" = "$destdir"; then
+-          $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+-          exit $EXIT_FAILURE
+-        fi
++        #
++        # This breaks install into our staging area.  -PB
++        # 
++        # if test "$inst_prefix_dir" = "$destdir"; then
++        #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
++        #   exit $EXIT_FAILURE
++        # fi
+         if test -n "$inst_prefix_dir"; then
+           # Stick the inst_prefix_dir data into the link command.
index 2beef2a748475a00352770bae5b5e8834e688c52..83109f4008e18826ca724805b4d496b2fe915a3a 100644 (file)
@@ -32,6 +32,7 @@ $(AUTOCONF_DIR)/.configured: $(AUTOCONF_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index be3384b2970597dae53f880c9860450cf3c84c95..c49d28f0d63420cf6ba439c7b70ae5d4749c02b3 100644 (file)
@@ -33,6 +33,7 @@ $(AUTOMAKE_DIR)/.configured: $(AUTOMAKE_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index c53f5f10cf49c243fd9c27aebf46a430ab1da61d..f939e7b7ea142eafad6e6cf375dc2e6ca082d8c8 100644 (file)
@@ -34,7 +34,6 @@ $(AVAHI_DIR)/.configured: $(AVAHI_DIR)/.unpacked
                CFLAGS="$(TARGET_CFLAGS)" \
                LIBDAEMON_CFLAGS="-I$(STAGING_DIR)/include" \
                LIBDAEMON_LIBS="-L$(STAGING_DIR)/lib -ldaemon" \
-               PKG_CONFIG_PATH="$(LIBDAEMON_DIR)" \
                ac_cv_func_strtod=yes \
                ac_fsusage_space=yes \
                fu_cv_sys_stat_statfs2_bsize=yes \
@@ -90,19 +89,20 @@ $(AVAHI_DIR)/.configured: $(AVAHI_DIR)/.unpacked
                ac_use_included_regex=no \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
-               --host=$(GNU_TARGET_NAME) \
+               --host=$(REAL_GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
-               --libexecdir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
+               --includedir=/include \
                --mandir=/usr/man \
                --infodir=/usr/info \
-               --includedir=$(STAGING_DIR)/include \
                $(DISABLE_NLS) \
                $(DISABLE_LARGEFILE) \
                --disable-glib \
@@ -130,15 +130,7 @@ $(AVAHI_DIR)/.compiled: $(AVAHI_DIR)/.configured
        touch $(AVAHI_DIR)/.compiled
 
 $(STAGING_DIR)/sbin/avahi-autoipd: $(AVAHI_DIR)/.compiled
-       $(MAKE) \
-               -C $(AVAHI_DIR)/avahi-autoipd \
-               prefix=$(STAGING_DIR) \
-               exec_prefix=$(STAGING_DIR) \
-               bindir=$(STAGING_DIR)/bin \
-               datadir=$(STAGING_DIR)/share \
-               sbindir=$(STAGING_DIR)/sbin \
-               sysconfdir=$(STAGING_DIR)/etc \
-               install
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(AVAHI_DIR)/avahi-autoipd install
        touch -c $(STAGING_DIR)/sbin/avahi-autoipd
 
 $(TARGET_DIR)/usr/sbin/avahi-autoipd: $(STAGING_DIR)/sbin/avahi-autoipd
index ccb28f18cbd12a22cedde5d0289efa6d7eb288fe..cd531f69ac58f74c88829df1d3963f05087baee4 100644 (file)
@@ -28,7 +28,7 @@ $(BASH_DIR)/.unpacked: $(DL_DIR)/$(BASH_SOURCE)
 $(BASH_DIR)/.configured: $(BASH_DIR)/.unpacked
        #               bash_cv_have_mbstate_t=yes
        (cd $(BASH_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                ac_cv_func_setvbuf_reversed=no \
                ./configure \
@@ -39,6 +39,7 @@ $(BASH_DIR)/.configured: $(BASH_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index c20d2bca3ef42e5bca997c2a1bc2135444d1ff9a..3690442194a14381198ab6fd1d338bf37f94a2aa 100644 (file)
@@ -30,10 +30,12 @@ $(DB_DIR)/.configured: $(DB_DIR)/.dist
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
+               --includedir=/include \
                --mandir=/usr/man \
                --infodir=/usr/info \
                --with-gnu-ld \
@@ -53,20 +55,7 @@ $(DB_DIR)/build_unix/.libs/$(DB_SHARLIB): $(DB_DIR)/.configured
        $(MAKE) CC=$(TARGET_CC) -C $(DB_DIR)/build_unix
 
 $(STAGING_DIR)/lib/$(DB_SHARLIB): $(DB_DIR)/build_unix/.libs/$(DB_SHARLIB)
-       $(MAKE) \
-           prefix=$(STAGING_DIR) \
-           exec_prefix=$(STAGING_DIR) \
-           bindir=$(STAGING_DIR)/bin \
-           sbindir=$(STAGING_DIR)/sbin \
-           libexecdir=$(STAGING_DIR)/lib \
-           datadir=$(STAGING_DIR)/share \
-           sysconfdir=$(STAGING_DIR)/etc \
-           localstatedir=$(STAGING_DIR)/var \
-           libdir=$(STAGING_DIR)/lib \
-           infodir=$(STAGING_DIR)/info \
-           mandir=$(STAGING_DIR)/man \
-           includedir=$(STAGING_DIR)/include \
-           -C $(DB_DIR)/build_unix install;
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(DB_DIR)/build_unix install
        chmod a-x $(STAGING_DIR)/lib/libdb*so*
        rm -f $(STAGING_DIR)/bin/db_*
        rm -rf $(STAGING_DIR)/share/locale $(STAGING_DIR)/info \
index c0632b9a1c8f9db02fe1dcc409149a9148672a7b..a5cf09d7a2335d3b02fc08374dc743a670158273 100644 (file)
@@ -36,6 +36,7 @@ $(BIND_DIR2)/Makefile: $(BIND_DIR2)/.unpacked
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --libdir=/lib \
                --includedir=/include \
@@ -78,9 +79,9 @@ $(TARGET_DIR)/lib/libdns.so: $(STAGING_DIR)/lib/libdns.so
        cd $(STAGING_DIR)/lib; \
            cp -a libdns*so* libisc*so* libbind9*so* \
            liblwres*so* $(TARGET_DIR)/lib
-                                       
+
 bind-lib: $(STAGING_DIR)/lib/libdns.so $(TARGET_DIR)/lib/libdns.so
-                                     
+
 bind: uclibc bind-bin bind-lib
 
 bind-clean:
index 7f7e5db9377ceab7f7f10397f7117c43bf51296b..2185d20862e149b71ce2e04374db46720ecdbbec 100644 (file)
@@ -33,6 +33,7 @@ $(BISON_DIR)/.configured: $(BISON_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index d01986c484efd2e8d5c4e9c334d404fe17c03f49..275cd8e8cd9bdc32c21fc02bd6efa303b6fd0363 100644 (file)
@@ -38,6 +38,7 @@ $(BOA_WORKDIR)/Makefile: $(BOA_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 92359b1aad371ba1a11dec80202c9c085866005c..a753ff491e5d50d152e81ec086290e840838f7b3 100644 (file)
@@ -30,6 +30,7 @@ $(BRIDGE_BUILD_DIR)/.configured: $(BRIDGE_BUILD_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 7e1eba5c678911d0570ea0336ce05d6fa576d0dc..7259c296a438fb86e4c47cd220398c83dcd718d6 100644 (file)
@@ -30,7 +30,6 @@ $(CAIRO_DIR)/.unpacked: $(DL_DIR)/$(CAIRO_SOURCE)
 $(CAIRO_DIR)/.configured: $(CAIRO_DIR)/.unpacked
        (cd $(CAIRO_DIR); rm -rf config.cache; \
                $(TARGET_CONFIGURE_OPTS) \
-               PKG_CONFIG=$(STAGING_DIR)/usr/bin/pkg-config \
                ac_cv_c_bigendian=$(CAIRO_BE) \
                ac_cv_func_posix_getpwuid_r=yes \
                glib_cv_stack_grows=no \
@@ -90,25 +89,26 @@ $(CAIRO_DIR)/.configured: $(CAIRO_DIR)/.unpacked
                gl_cv_c_restrict=no \
                ac_cv_path_GLIB_GENMARSHAL=/usr/bin/glib-genmarshal \
                ./configure \
-               --host=$(REAL_GNU_TARGET_NAME) \
+               --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
-               --prefix=$(STAGING_DIR) \
-               --exec_prefix=$(STAGING_DIR) \
-               --libdir=$(STAGING_DIR)/lib \
-               --includedir=$(STAGING_DIR)/include \
+               --prefix=/usr \
+               --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
+               --includedir=/include \
                --mandir=/usr/man \
                --infodir=/usr/info \
                --enable-shared \
                --enable-static \
                --with-x \
-               --x-includes=$(STAGING_DIR)/usr/X11R6/include \
-               --x-libraries=$(STAGING_DIR)/usr/X11R6/lib \
+               --x-includes=$(STAGING_DIR)/include \
+               --x-libraries=$(STAGING_DIR)/lib \
                --enable-ps=yes \
                --enable-pdf=yes \
                --enable-svg=no \
@@ -124,21 +124,10 @@ $(CAIRO_DIR)/src/.libs/$(CAIRO_BINARY): $(CAIRO_DIR)/.configured
        touch -c $(CAIRO_DIR)/src/.libs/$(CAIRO_BINARY)
 
 $(STAGING_DIR)/lib/$(CAIRO_BINARY): $(CAIRO_DIR)/src/.libs/$(CAIRO_BINARY)
-       $(MAKE) prefix=$(STAGING_DIR) \
-           exec_prefix=$(STAGING_DIR) \
-           bindir=$(STAGING_DIR)/bin \
-           sbindir=$(STAGING_DIR)/sbin \
-           libexecdir=$(STAGING_DIR)/libexec \
-           datadir=$(STAGING_DIR)/share \
-           sysconfdir=$(STAGING_DIR)/etc \
-           sharedstatedir=$(STAGING_DIR)/com \
-           localstatedir=$(STAGING_DIR)/var \
-           libdir=$(STAGING_DIR)/lib \
-           includedir=$(STAGING_DIR)/include \
-           oldincludedir=$(STAGING_DIR)/include \
-           infodir=$(STAGING_DIR)/info \
-           mandir=$(STAGING_DIR)/man \
-           -C $(CAIRO_DIR) install;
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(CAIRO_DIR) install;
+       $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" $(STAGING_DIR)/lib/libcairo.la
+       $(SED) "s, x11 ,,g" $(STAGING_DIR)/lib/pkgconfig/cairo.pc
+       $(SED) "s, x11 ,,g" $(STAGING_DIR)/lib/pkgconfig/cairo-xlib.pc
        touch -c $(STAGING_DIR)/lib/$(CAIRO_BINARY)
 
 $(TARGET_DIR)/lib/libcairo.so.2.9.3: $(STAGING_DIR)/lib/$(CAIRO_BINARY)
diff --git a/package/cairo/libdir-la.patch b/package/cairo/libdir-la.patch
new file mode 100644 (file)
index 0000000..c352997
--- /dev/null
@@ -0,0 +1,77 @@
+--- cairo/ltmain.sh.orig       2004-11-23 09:19:19.000000000 -0700
++++ cairo/ltmain.sh    2007-01-13 14:36:53.000000000 -0700
+@@ -231,8 +231,9 @@
+       # line option must be used.
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+-        $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit $EXIT_FAILURE
++        $echo "$modename: defaulting to \`CC'"
++        $echo "$modename: if this is not correct, specify a tag with \`--tag'"
++#       exit $EXIT_FAILURE
+ #        else
+ #          $echo "$modename: using $tagname tagged configuration"
+       fi
+@@ -2279,8 +2280,14 @@
+           absdir="$abs_ladir"
+           libdir="$abs_ladir"
+         else
+-          dir="$libdir"
+-          absdir="$libdir"
++            # Adding 'libdir' from the .la file to our library search paths
++            # breaks crosscompilation horribly.  We cheat here and don't add
++            # it, instead adding the path where we found the .la.  -CL
++          dir="$abs_ladir"
++          absdir="$abs_ladir"
++          libdir="$abs_ladir"
++          #dir="$libdir"
++          #absdir="$libdir"
+         fi
+       else
+         if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+@@ -2754,6 +2761,16 @@
+               esac
+               if grep "^installed=no" $deplib > /dev/null; then
+                 path="$absdir/$objdir"
++#             This interferes with crosscompilation. -CL
++#             else
++#               eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
++#               if test -z "$libdir"; then
++#                 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
++#                 exit 1
++#               fi
++#               if test "$absdir" != "$libdir"; then
++#                 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
++#               fi
+               else
+                 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                 if test -z "$libdir"; then
+@@ -5141,6 +5158,10 @@
+           # Replace all uninstalled libtool libraries with the installed ones
+           newdependency_libs=
+           for deplib in $dependency_libs; do
++              # Replacing uninstalled with installed can easily break crosscompilation,
++              # since the installed path is generally the wrong architecture.  -CL
++              newdependency_libs="$newdependency_libs $deplib"
++              continue
+             case $deplib in
+             *.la)
+               name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
+@@ -5459,10 +5480,13 @@
+         # At present, this check doesn't affect windows .dll's that
+         # are installed into $libdir/../bin (currently, that works fine)
+         # but it's something to keep an eye on.
+-        if test "$inst_prefix_dir" = "$destdir"; then
+-          $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+-          exit $EXIT_FAILURE
+-        fi
++        #
++        # This breaks install into our staging area.  -PB
++        # 
++        # if test "$inst_prefix_dir" = "$destdir"; then
++        #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
++        #   exit $EXIT_FAILURE
++        # fi
+         if test -n "$inst_prefix_dir"; then
+           # Stick the inst_prefix_dir data into the link command.
index 7d3408922259bff8ac99ccde195d291023317617..1ece80e246b09bc0e9c0321f4faf8eb7d23ed1a5 100644 (file)
@@ -90,6 +90,7 @@ $(COREUTILS_DIR)/.configured: $(COREUTILS_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index d4f9936f509ec8688f95bcb6390934c0fe13242e..5fc42fa5b5b1d1fbbb3741e4ae3d1ff7ca55a4a0 100644 (file)
@@ -22,7 +22,7 @@ $(CVS_DIR)/.unpacked: $(DL_DIR)/$(CVS_SOURCE)
 
 $(CVS_DIR)/.configured: $(CVS_DIR)/.unpacked
        (cd $(CVS_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                cvs_cv_func_printf_ptr=yes \
                ./configure \
index 7d12ab76ee41d8e9221f645e432a41521519d8a0..00f0260e68822bf70d58478455383e63db184db0 100644 (file)
@@ -86,6 +86,7 @@ $(DIFFUTILS_DIR)/.configured: $(DIFFUTILS_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 4fb9a36b7d7f431aaaa552580bd918d92f8b6de6..38a6403a5eb1e117720454c1e6a2779f9b87fc16 100644 (file)
@@ -27,21 +27,32 @@ $(DIRECTFB_DIR)/.configured: $(DIRECTFB_DIR)/.unpacked
        ac_cv_header_linux_wm97xx_h=no \
        ac_cv_header_linux_sisfb_h=no \
        ./configure \
-       --target=$(GNU_TARGET_NAME) \
-       --host=$(GNU_TARGET_NAME) \
-       --build=$(GNU_HOST_NAME) \
-       --prefix=/usr \
-       --with-gfxdrivers=cle266,unichrome \
-       --enable-jpeg \
-       --enable-png \
-       --enable-linux-input \
-       --enable-zlib \
-       --enable-freetype \
-       --enable-sysfs \
-       --disable-sdl \
-       --disable-video4linux \
-       --disable-video4linux2 \
-       --disable-fusion );
+               --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
+               --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --includedir=/usr/include \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
+               --with-gfxdrivers=cle266,unichrome \
+               --enable-jpeg \
+               --enable-png \
+               --enable-linux-input \
+               --enable-zlib \
+               --enable-freetype \
+               --enable-sysfs \
+               --disable-sdl \
+               --disable-video4linux \
+               --disable-video4linux2 \
+               --disable-fusion );
        touch $(DIRECTFB_DIR)/.configured
 
 $(DIRECTFB_DIR)/.compiled: $(DIRECTFB_DIR)/.configured
@@ -49,7 +60,7 @@ $(DIRECTFB_DIR)/.compiled: $(DIRECTFB_DIR)/.configured
        touch $(DIRECTFB_DIR)/.compiled
 
 $(STAGING_DIR)/usr/lib/libdirectfb.so: $(DIRECTFB_DIR)/.compiled
-       $(MAKE) -C $(DIRECTFB_DIR) install prefix=$(STAGING_DIR)/usr exec_prefix=$(STAGING_DIR)/usr
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(DIRECTFB_DIR) install
        touch -c $(STAGING_DIR)/lib/libdirectfb.so
 
 $(TARGET_DIR)/usr/lib/libdirectfb.so: $(STAGING_DIR)/usr/lib/libdirectfb.so
index d9a88e70619c067d440f36279a2493bb861e8cb7..6dc6e5353ce70a18bf5c405300447ec6c7b154a6 100644 (file)
@@ -22,7 +22,7 @@ $(DISTCC_DIR)/.unpacked: $(DL_DIR)/$(DISTCC_SOURCE)
 
 $(DISTCC_DIR)/.configured: $(DISTCC_DIR)/.unpacked
        (cd $(DISTCC_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
@@ -31,6 +31,7 @@ $(DISTCC_DIR)/.configured: $(DISTCC_DIR)/.unpacked
                --prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 33830a7bd0d243a9ed1ce390318aa0b44236c63a..cf88ccd74fc4c7cd9c26eaad844ae7c630ccf72e 100644 (file)
@@ -62,6 +62,17 @@ $(DM_DIR)/.configured: $(DM_DIR)/.unpacked
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --includedir=/include \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
                $(DISABLE_NLS) \
                $(DISABLE_LARGEFILE) \
                --with-user=$(shell id -un) --with-group=$(shell id -gn) \
@@ -72,8 +83,8 @@ $(DM_DIR)/$(DM_BINARY): dm-build
 $(DM_DIR)/$(DM_LIBRARY): dm-build
 
 $(DM_STAGING_BINARY) $(DM_STAGING_LIBRARY): $(DM_DIR)/.configured
-       $(MAKE) CC=$(TARGET_CC) DESTDIR=$(STAGING_DIR) -C $(DM_DIR)
-       $(MAKE) -C $(DM_DIR) install prefix=$(STAGING_DIR)
+       $(MAKE) CC=$(TARGET_CC) -C $(DM_DIR)
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(DM_DIR) install
 
 # Install dmsetup from staging to target
 $(DM_TARGET_BINARY): $(DM_STAGING_BINARY)
index 360a66f7e024db3dfb5efccf0718d95478afab5a..31aea34b7b6823969bc8e5c79700dcc18f6db40f 100644 (file)
@@ -34,6 +34,17 @@ $(DMALLOC_DIR)/.configured: $(DMALLOC_DIR)/.unpacked
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --includedir=/include \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
                --enable-threads \
                --enable-shlib \
        );
@@ -43,12 +54,7 @@ $(DMALLOC_DIR)/$(DMALLOC_BINARY): $(DMALLOC_DIR)/.configured
        $(MAKE) -C $(DMALLOC_DIR)
 
 $(TARGET_DIR)/$(DMALLOC_TARGET_BINARY): $(DMALLOC_DIR)/$(DMALLOC_BINARY)
-       $(MAKE) prefix=$(STAGING_DIR)/usr \
-               exec_prefix=$(TARGET_DIR)/usr \
-               libdir=$(STAGING_DIR)/usr/lib \
-               shlibdir=$(TARGET_DIR)/usr/lib \
-               includedir=$(STAGING_DIR)/include \
-               -C $(DMALLOC_DIR) install
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(DMALLOC_DIR) install
        (cd $(STAGING_DIR)/usr/lib; \
                mv libdmalloc*.so $(TARGET_DIR)/usr/lib);
        touch $(TARGET_DIR)/$(DMALLOC_TARGET_BINARY)
index 870cacfc2dfd585d264602f578e45691c7af2584..16da531fd415f403c8b78fd75a863ba54485a575 100644 (file)
@@ -35,6 +35,7 @@ $(DROPBEAR_DIR)/.configured: $(DROPBEAR_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 29147e268dbbde40de5d577dd8f7b91e49db69bd..deee42b0ff55fe01750e791296e5e64d52147846 100644 (file)
@@ -39,6 +39,7 @@ $(E2FSPROGS_DIR)/.configured: $(E2FSPROGS_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/bin \
                --sbindir=/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index d14d3674f5aecff5abd267ce69137fcdca12cdc8..82708978cd44f9e1fad8761f542bc58dae4b8c9c 100644 (file)
@@ -29,13 +29,15 @@ $(EXPAT_DIR)/.configured: $(EXPAT_DIR)/.unpacked
                --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
-               --bindir=$(STAGING_DIR)/usr/bin \
-               --sbindir=$(STAGING_DIR)/usr/sbin \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
-               --mandir=$(STAGING_DIR)/man \
+               --includedir=/include \
+               --mandir=/usr/man \
                --infodir=/usr/info \
                --enable-shared \
        );
@@ -46,8 +48,8 @@ $(EXPAT_DIR)/.libs/libexpat.a: $(EXPAT_DIR)/.configured
        touch -c $(EXPAT_DIR)/.libs/libexpat.a
 
 $(STAGING_DIR)/lib/libexpat.so.1: $(EXPAT_DIR)/.libs/libexpat.a
-       $(MAKE) -C $(EXPAT_DIR) prefix=$(STAGING_DIR) \
-               exec_prefix=$(STAGING_DIR) mandir=$(STAGING_DIR)/man install
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(EXPAT_DIR) install
+       $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" $(STAGING_DIR)/lib/libexpat.la
        touch -c $(STAGING_DIR)/lib/libexpat.so.1
 
 $(TARGET_DIR)/lib/libexpat.so.1: $(STAGING_DIR)/lib/libexpat.so.1
@@ -56,7 +58,7 @@ $(TARGET_DIR)/lib/libexpat.so.1: $(STAGING_DIR)/lib/libexpat.so.1
        -$(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libexpat.so.0.5.0
        touch -c $(TARGET_DIR)/lib/libexpat.so.1
 
-expat: uclibc $(TARGET_DIR)/lib/libexpat.so.1
+expat: uclibc pkgconfig $(TARGET_DIR)/lib/libexpat.so.1
 
 expat-clean:
        rm -f $(EXPAT_DIR)/.configured
diff --git a/package/expat/libdir-la.patch b/package/expat/libdir-la.patch
new file mode 100644 (file)
index 0000000..1c8930e
--- /dev/null
@@ -0,0 +1,77 @@
+--- expat-2.0.0/conftools/ltmain.sh.orig       2007-01-13 14:39:51.000000000 -0700
++++ expat-2.0.0/conftools/ltmain.sh    2007-01-13 14:39:56.000000000 -0700
+@@ -273,8 +273,9 @@
+       # line option must be used.
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+-        $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit $EXIT_FAILURE
++        $echo "$modename: defaulting to \`CC'"
++        $echo "$modename: if this is not correct, specify a tag with \`--tag'"
++#       exit $EXIT_FAILURE
+ #        else
+ #          $echo "$modename: using $tagname tagged configuration"
+       fi
+@@ -2404,8 +2405,14 @@
+           absdir="$abs_ladir"
+           libdir="$abs_ladir"
+         else
+-          dir="$libdir"
+-          absdir="$libdir"
++            # Adding 'libdir' from the .la file to our library search paths
++            # breaks crosscompilation horribly.  We cheat here and don't add
++            # it, instead adding the path where we found the .la.  -CL
++          dir="$abs_ladir"
++          absdir="$abs_ladir"
++          libdir="$abs_ladir"
++          #dir="$libdir"
++          #absdir="$libdir"
+         fi
+         test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
+       else
+@@ -2886,6 +2893,16 @@
+               esac
+               if grep "^installed=no" $deplib > /dev/null; then
+                 path="$absdir/$objdir"
++#             This interferes with crosscompilation. -CL
++#             else
++#               eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
++#               if test -z "$libdir"; then
++#                 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
++#                 exit 1
++#               fi
++#               if test "$absdir" != "$libdir"; then
++#                 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
++#               fi
+               else
+                 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                 if test -z "$libdir"; then
+@@ -5598,6 +5615,10 @@
+           # Replace all uninstalled libtool libraries with the installed ones
+           newdependency_libs=
+           for deplib in $dependency_libs; do
++              # Replacing uninstalled with installed can easily break crosscompilation,
++              # since the installed path is generally the wrong architecture.  -CL
++              newdependency_libs="$newdependency_libs $deplib"
++              continue
+             case $deplib in
+             *.la)
+               name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
+@@ -5919,10 +5940,13 @@
+         # At present, this check doesn't affect windows .dll's that
+         # are installed into $libdir/../bin (currently, that works fine)
+         # but it's something to keep an eye on.
+-        if test "$inst_prefix_dir" = "$destdir"; then
+-          $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+-          exit $EXIT_FAILURE
+-        fi
++        #
++        # This breaks install into our staging area.  -PB
++        # 
++        # if test "$inst_prefix_dir" = "$destdir"; then
++        #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
++        #   exit $EXIT_FAILURE
++        # fi
+         if test -n "$inst_prefix_dir"; then
+           # Stick the inst_prefix_dir data into the link command.
index 37806c6ff5dcc3f6103f77ea61eea4b90f7c2adf..3837bcf998005544f6b677b0e3129cd9b7dd0a06 100644 (file)
@@ -69,6 +69,7 @@ $(FILE_DIR2)/.configured: $(FILE_SOURCE_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share/misc \
index c04d4ab1a3921f33fcaa52855292b07b947cbac2..f1d60fef41692dbee05ad31a5df584ec802c6b03 100644 (file)
@@ -35,6 +35,7 @@ $(FINDUTILS_DIR)/.configured: $(FINDUTILS_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib/locate \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index ba7c480172ee24854b97a2ebcf26823f0e1ae88b..c1ea1ba79d22e6acb5c224c0ac1cf169265ad686 100644 (file)
@@ -36,6 +36,7 @@ $(FLEX_DIR)/.configured: $(FLEX_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index d397c5a7772023229b620ab09146c96c8a3c616a..c6b8eacf44f8e8c987c54fae8859f792f3f0f843 100644 (file)
@@ -3,7 +3,7 @@
 # freetype
 #
 #############################################################
-FREETYPE_VERSION:=2.1.9
+FREETYPE_VERSION:=2.2.1
 FREETYPE_SOURCE:=freetype-$(FREETYPE_VERSION).tar.bz2
 FREETYPE_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/freetype
 FREETYPE_CAT:=$(BZCAT)
@@ -22,26 +22,45 @@ $(FREETYPE_DIR)/.configured: $(FREETYPE_DIR)/.unpacked
        (cd $(FREETYPE_DIR); \
        $(TARGET_CONFIGURE_OPTS) \
        CFLAGS="$(TARGET_CFLAGS) " \
+       CCexe="$(HOSTCC)" \
        ./configure \
-       --target=$(GNU_TARGET_NAME) \
-       --host=$(GNU_TARGET_NAME) \
-       --build=$(GNU_HOST_NAME) \
-       --prefix=$(STAGING_DIR) );
+               --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
+               --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --includedir=/include \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
+       );
        touch $(FREETYPE_DIR)/.configured
 
 $(FREETYPE_DIR)/.compiled: $(FREETYPE_DIR)/.configured
-       $(MAKE) -C $(FREETYPE_DIR) 
+       $(MAKE) CCexe="$(HOSTCC)" -C $(FREETYPE_DIR)
        touch $(FREETYPE_DIR)/.compiled
 
 $(STAGING_DIR)/lib/libfreetype.so: $(FREETYPE_DIR)/.compiled
-       $(MAKE) -C $(FREETYPE_DIR) install
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(FREETYPE_DIR) install
+       $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" $(STAGING_DIR)/lib/libfreetype.la
+       $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)\',g" \
+               -e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
+               -e "s,^includedir=.*,includedir=\'$(STAGING_DIR)/include\',g" \
+               "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" \
+               $(STAGING_DIR)/usr/bin/freetype-config
        touch -c $(STAGING_DIR)/lib/libfreetype.so
 
 $(TARGET_DIR)/lib/libfreetype.so: $(STAGING_DIR)/lib/libfreetype.so
        cp -dpf $(STAGING_DIR)/lib/libfreetype.so* $(TARGET_DIR)/lib/
        -$(STRIP) --strip-unneeded $(TARGET_DIR)/lib/libfreetype.so
 
-freetype: uclibc $(TARGET_DIR)/lib/libfreetype.so
+freetype: uclibc pkgconfig $(TARGET_DIR)/lib/libfreetype.so
 
 freetype-clean:
        $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(FREETYPE_DIR) uninstall
diff --git a/package/freetype/libdir-la.patch b/package/freetype/libdir-la.patch
new file mode 100644 (file)
index 0000000..ffe5741
--- /dev/null
@@ -0,0 +1,77 @@
+--- freetype-2.2.1/builds/unix/ltmain.sh.orig  2006-04-20 08:27:27.000000000 -0600
++++ freetype-2.2.1/builds/unix/ltmain.sh       2007-01-13 14:26:01.000000000 -0700
+@@ -273,8 +273,9 @@
+       # line option must be used.
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+-        $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit $EXIT_FAILURE
++        $echo "$modename: defaulting to \`CC'"
++        $echo "$modename: if this is not correct, specify a tag with \`--tag'"
++#       exit $EXIT_FAILURE
+ #        else
+ #          $echo "$modename: using $tagname tagged configuration"
+       fi
+@@ -2404,8 +2405,14 @@
+           absdir="$abs_ladir"
+           libdir="$abs_ladir"
+         else
+-          dir="$libdir"
+-          absdir="$libdir"
++            # Adding 'libdir' from the .la file to our library search paths
++            # breaks crosscompilation horribly.  We cheat here and don't add
++            # it, instead adding the path where we found the .la.  -CL
++          dir="$abs_ladir"
++          absdir="$abs_ladir"
++          libdir="$abs_ladir"
++          #dir="$libdir"
++          #absdir="$libdir"
+         fi
+         test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
+       else
+@@ -2886,6 +2893,16 @@
+               esac
+               if grep "^installed=no" $deplib > /dev/null; then
+                 path="$absdir/$objdir"
++#             This interferes with crosscompilation. -CL
++#             else
++#               eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
++#               if test -z "$libdir"; then
++#                 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
++#                 exit 1
++#               fi
++#               if test "$absdir" != "$libdir"; then
++#                 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
++#               fi
+               else
+                 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                 if test -z "$libdir"; then
+@@ -5598,6 +5615,10 @@
+           # Replace all uninstalled libtool libraries with the installed ones
+           newdependency_libs=
+           for deplib in $dependency_libs; do
++              # Replacing uninstalled with installed can easily break crosscompilation,
++              # since the installed path is generally the wrong architecture.  -CL
++              newdependency_libs="$newdependency_libs $deplib"
++              continue
+             case $deplib in
+             *.la)
+               name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
+@@ -5919,10 +5940,13 @@
+         # At present, this check doesn't affect windows .dll's that
+         # are installed into $libdir/../bin (currently, that works fine)
+         # but it's something to keep an eye on.
+-        if test "$inst_prefix_dir" = "$destdir"; then
+-          $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+-          exit $EXIT_FAILURE
+-        fi
++        #
++        # This breaks install into our staging area.  -PB
++        # 
++        # if test "$inst_prefix_dir" = "$destdir"; then
++        #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
++        #   exit $EXIT_FAILURE
++        # fi
+         if test -n "$inst_prefix_dir"; then
+           # Stick the inst_prefix_dir data into the link command.
index cfe4e90c153679a6b33db8e9fd165509a650cf81..ae88f8827c227269172ff12b65b846e8a3eaeab0 100644 (file)
@@ -34,6 +34,7 @@ $(GAWK_DIR)/.configured: $(GAWK_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index eb73d8aa5ed6ac77200f3ce88b191a8af5e40af9..3da4cd9e130e94110e85a23bccc0a45db02755ae 100644 (file)
@@ -82,10 +82,18 @@ $(GETTEXT_DIR)/.configured: $(GETTEXT_DIR)/.unpacked
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
-               --prefix=$(STAGING_DIR) \
-               --exec_prefix=$(STAGING_DIR) \
-               --libdir=$(STAGING_DIR)/lib \
-               --includedir=$(STAGING_DIR)/include \
+               --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/bin \
+               --sbindir=/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --includedir=/include \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
                --disable-libasprintf \
        );
        touch $(GETTEXT_DIR)/.configured
@@ -95,9 +103,17 @@ $(GETTEXT_DIR)/$(GETTEXT_BINARY): $(GETTEXT_DIR)/.configured
        touch -c $(GETTEXT_DIR)/$(GETTEXT_BINARY)
 
 $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY): $(GETTEXT_DIR)/$(GETTEXT_BINARY)
-       $(MAKE) -C $(GETTEXT_DIR) install;
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(GETTEXT_DIR) install
+       $(SED) 's,/lib/,$(STAGING_DIR)/lib/,g' $(STAGING_DIR)/lib/libgettextlib.la
+       $(SED) 's,/lib/,$(STAGING_DIR)/lib/,g' $(STAGING_DIR)/lib/libgettextpo.la
+       $(SED) 's,/lib/,$(STAGING_DIR)/lib/,g' $(STAGING_DIR)/lib/libgettextsrc.la
+       $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" $(STAGING_DIR)/lib/libgettextlib.la
+       $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" $(STAGING_DIR)/lib/libgettextpo.la
+       $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" $(STAGING_DIR)/lib/libgettextsrc.la
+       $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" $(STAGING_DIR)/lib/libintl.la
+       touch -c $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY)
 
-gettext: uclibc $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY)
+gettext: uclibc pkgconfig $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY)
 
 gettext-clean:
        $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GETTEXT_DIR) uninstall
@@ -114,17 +130,17 @@ gettext-dirclean:
 
 gettext-target: $(GETTEXT_DIR)/$(GETTEXT_BINARY)
        $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GETTEXT_DIR) install
-       chmod +x $(TARGET_DIR)/usr/lib/libintl.so.3.4.3 # identify as needing to be stipped
+       chmod +x $(TARGET_DIR)/lib/libintl.so.3.4.3 # identify as needing to be stipped
        rm -rf  $(TARGET_DIR)/usr/info \
                $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc \
                $(TARGET_DIR)/usr/doc $(TARGET_DIR)/usr/share/aclocal \
                $(TARGET_DIR)/usr/include/libintl.h
        -rmdir $(TARGET_DIR)/usr/include
 
-libintl: $(TARGET_DIR)/usr/lib/libintl.so
+libintl: $(TARGET_DIR)/lib/libintl.so
 
-$(TARGET_DIR)/usr/lib/libintl.so: $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY)
-       cp -a $(STAGING_DIR)/usr/lib/libintl.so* $(TARGET_DIR)/usr/lib
+$(TARGET_DIR)/lib/libintl.so: $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY)
+       cp -a $(STAGING_DIR)/lib/libintl.so* $(TARGET_DIR)/lib
        touch $@
 
 #############################################################
diff --git a/package/gettext/libdir-la.patch b/package/gettext/libdir-la.patch
new file mode 100644 (file)
index 0000000..d5076c1
--- /dev/null
@@ -0,0 +1,154 @@
+--- gettext-0.14.6/autoconf-lib-link/build-aux/ltmain.sh.orig  2007-01-13 14:33:23.000000000 -0700
++++ gettext-0.14.6/autoconf-lib-link/build-aux/ltmain.sh       2007-01-13 14:35:10.000000000 -0700
+@@ -234,8 +234,9 @@
+       # line option must be used.
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+-        $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit $EXIT_FAILURE
++        $echo "$modename: defaulting to \`CC'"
++        $echo "$modename: if this is not correct, specify a tag with \`--tag'"
++#       exit $EXIT_FAILURE
+ #        else
+ #          $echo "$modename: using $tagname tagged configuration"
+       fi
+@@ -2324,8 +2325,14 @@
+           absdir="$abs_ladir"
+           libdir="$abs_ladir"
+         else
+-          dir="$libdir"
+-          absdir="$libdir"
++            # Adding 'libdir' from the .la file to our library search paths
++            # breaks crosscompilation horribly.  We cheat here and don't add
++            # it, instead adding the path where we found the .la.  -CL
++          dir="$abs_ladir"
++          absdir="$abs_ladir"
++          libdir="$abs_ladir"
++          #dir="$libdir"
++          #absdir="$libdir"
+         fi
+         test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
+       else
+@@ -2800,6 +2807,16 @@
+               esac
+               if grep "^installed=no" $deplib > /dev/null; then
+                 path="$absdir/$objdir"
++#             This interferes with crosscompilation. -CL
++#             else
++#               eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
++#               if test -z "$libdir"; then
++#                 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
++#                 exit 1
++#               fi
++#               if test "$absdir" != "$libdir"; then
++#                 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
++#               fi
+               else
+                 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                 if test -z "$libdir"; then
+@@ -5210,6 +5227,10 @@
+           # Replace all uninstalled libtool libraries with the installed ones
+           newdependency_libs=
+           for deplib in $dependency_libs; do
++              # Replacing uninstalled with installed can easily break crosscompilation,
++              # since the installed path is generally the wrong architecture.  -CL
++              newdependency_libs="$newdependency_libs $deplib"
++              continue
+             case $deplib in
+             *.la)
+               name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
+@@ -5528,10 +5549,13 @@
+         # At present, this check doesn't affect windows .dll's that
+         # are installed into $libdir/../bin (currently, that works fine)
+         # but it's something to keep an eye on.
+-        if test "$inst_prefix_dir" = "$destdir"; then
+-          $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+-          exit $EXIT_FAILURE
+-        fi
++        #
++        # This breaks install into our staging area.  -PB
++        # 
++        # if test "$inst_prefix_dir" = "$destdir"; then
++        #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
++        #   exit $EXIT_FAILURE
++        # fi
+         if test -n "$inst_prefix_dir"; then
+           # Stick the inst_prefix_dir data into the link command.
+--- gettext-0.14.6/build-aux/ltmain.sh.orig    2005-05-20 15:03:38.000000000 -0600
++++ gettext-0.14.6/build-aux/ltmain.sh 2007-01-13 14:34:27.000000000 -0700
+@@ -234,8 +234,9 @@
+       # line option must be used.
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+-        $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit $EXIT_FAILURE
++        $echo "$modename: defaulting to \`CC'"
++        $echo "$modename: if this is not correct, specify a tag with \`--tag'"
++#       exit $EXIT_FAILURE
+ #        else
+ #          $echo "$modename: using $tagname tagged configuration"
+       fi
+@@ -2324,8 +2325,14 @@
+           absdir="$abs_ladir"
+           libdir="$abs_ladir"
+         else
+-          dir="$libdir"
+-          absdir="$libdir"
++            # Adding 'libdir' from the .la file to our library search paths
++            # breaks crosscompilation horribly.  We cheat here and don't add
++            # it, instead adding the path where we found the .la.  -CL
++          dir="$abs_ladir"
++          absdir="$abs_ladir"
++          libdir="$abs_ladir"
++          #dir="$libdir"
++          #absdir="$libdir"
+         fi
+         test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
+       else
+@@ -2800,6 +2807,16 @@
+               esac
+               if grep "^installed=no" $deplib > /dev/null; then
+                 path="$absdir/$objdir"
++#             This interferes with crosscompilation. -CL
++#             else
++#               eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
++#               if test -z "$libdir"; then
++#                 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
++#                 exit 1
++#               fi
++#               if test "$absdir" != "$libdir"; then
++#                 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
++#               fi
+               else
+                 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                 if test -z "$libdir"; then
+@@ -5210,6 +5227,10 @@
+           # Replace all uninstalled libtool libraries with the installed ones
+           newdependency_libs=
+           for deplib in $dependency_libs; do
++              # Replacing uninstalled with installed can easily break crosscompilation,
++              # since the installed path is generally the wrong architecture.  -CL
++              newdependency_libs="$newdependency_libs $deplib"
++              continue
+             case $deplib in
+             *.la)
+               name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
+@@ -5528,10 +5549,13 @@
+         # At present, this check doesn't affect windows .dll's that
+         # are installed into $libdir/../bin (currently, that works fine)
+         # but it's something to keep an eye on.
+-        if test "$inst_prefix_dir" = "$destdir"; then
+-          $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+-          exit $EXIT_FAILURE
+-        fi
++        #
++        # This breaks install into our staging area.  -PB
++        # 
++        # if test "$inst_prefix_dir" = "$destdir"; then
++        #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
++        #   exit $EXIT_FAILURE
++        # fi
+         if test -n "$inst_prefix_dir"; then
+           # Stick the inst_prefix_dir data into the link command.
index ff5015074b01606183e49599d065d6e03df43375..3fad0b1e1f504389980288b44faae996a1412ab3 100644 (file)
@@ -31,22 +31,22 @@ $(GMP_DIR)/.unpacked: $(DL_DIR)/$(GMP_SOURCE)
 $(GMP_DIR)/.configured: $(GMP_DIR)/.unpacked
        (cd $(GMP_DIR); rm -rf config.cache; \
                $(TARGET_CONFIGURE_OPTS) \
-               CC_FOR_BUILD="$(HOSTCC)" \
                CFLAGS="$(TARGET_CFLAGS)" \
                ac_cv_c_bigendian=$(GMP_BE) \
                ./configure \
-               --host=$(REAL_GNU_TARGET_NAME) \
+               --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
-               --prefix=$(STAGING_DIR) \
-               --exec_prefix=$(STAGING_DIR) \
-               --libdir=$(STAGING_DIR)/lib \
-               --includedir=$(STAGING_DIR)/include \
+               --prefix=/usr \
+               --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
+               --includedir=/include \
                --mandir=/usr/man \
                --infodir=/usr/info \
                --enable-shared \
@@ -62,7 +62,7 @@ $(STAGING_DIR)/lib/$(GMP_BINARY): $(GMP_DIR)/.libs/$(GMP_BINARY)
            exec_prefix=$(STAGING_DIR) \
            bindir=$(STAGING_DIR)/bin \
            sbindir=$(STAGING_DIR)/sbin \
-           libexecdir=$(STAGING_DIR)/libexec \
+           libexecdir=$(STAGING_DIR)/bin \
            datadir=$(STAGING_DIR)/share \
            sysconfdir=$(STAGING_DIR)/etc \
            sharedstatedir=$(STAGING_DIR)/com \
@@ -72,7 +72,7 @@ $(STAGING_DIR)/lib/$(GMP_BINARY): $(GMP_DIR)/.libs/$(GMP_BINARY)
            oldincludedir=$(STAGING_DIR)/include \
            infodir=$(STAGING_DIR)/info \
            mandir=$(STAGING_DIR)/man \
-           -C $(GMP_DIR) install;
+            -C $(GMP_DIR) install
 
 $(TARGET_DIR)/lib/libgmp.so.$(GMP_LIBVERSION): $(STAGING_DIR)/lib/$(GMP_BINARY)
        cp -a $(STAGING_DIR)/lib/libgmp.so* $(STAGING_DIR)/lib/libgmp.a \
@@ -103,16 +103,19 @@ $(GMP_DIR2)/.configured: $(GMP_DIR)/.unpacked
                CC="$(HOSTCC)" \
                CFLAGS="$(HOST_CFLAGS)" \
                $(GMP_DIR)/configure \
-               --prefix=$(STAGING_DIR) \
-               --exec_prefix=$(STAGING_DIR) \
-               --libdir=$(STAGING_DIR)/lib \
-               --includedir=$(STAGING_DIR)/include \
+               --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
+               --prefix=/usr \
+               --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
+               --includedir=/usr/include \
                --mandir=/usr/man \
                --infodir=/usr/info \
                --enable-shared \
index 9cc2b3de6d5ec5803f5f621f35168368afa8ed4d..87b8a93ecba72db75e308d11be7282930f28c8e4 100644 (file)
@@ -35,6 +35,7 @@ $(GNUGREP_DIR)/.configured: $(GNUGREP_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 712dad790a455c85ec877f79de872c679d132d5c..e08eb9e024297100e09a3042fbaf0de369f1e63a 100644 (file)
@@ -33,6 +33,7 @@ $(GZIP_DIR)/.configured: $(GZIP_DIR)/.unpacked
                --exec-prefix=/ \
                --bindir=/bin \
                --sbindir=/bin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share/misc \
index 24cebfbd6fa5c8fb1ef6f8846f838ba59bb77f2c..5ef3b4134c23062ce6497da2285832dc45d83640 100644 (file)
@@ -43,7 +43,18 @@ $(JPEG_DIR)/.configured: $(JPEG_DIR)/.unpacked
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
-               --prefix=$(STAGING_DIR) \
+               --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --includedir=/include \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
                --enable-shared \
                --enable-static \
                --without-x \
@@ -55,7 +66,7 @@ $(JPEG_DIR)/.libs/libjpeg.a: $(JPEG_DIR)/.configured
        touch -c $(JPEG_DIR)/.libs/libjpeg.a
 
 $(STAGING_DIR)/lib/libjpeg.a: $(JPEG_DIR)/.libs/libjpeg.a
-       $(MAKE) -C $(JPEG_DIR) install-headers install-lib
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(JPEG_DIR) install-headers install-lib
        rm $(STAGING_DIR)/lib/libjpeg.la
        touch -c $(STAGING_DIR)/lib/libjpeg.a
 
index 9bc0c55a605214e2d4ea719da7235c8bd9ce891f..f9582a5dfa4206c1cfcbc8f6b1a636578e01fe24 100644 (file)
@@ -42,7 +42,7 @@ endif
 
 $(KEXEC_DIR)/.configured: $(KEXEC_DIR)/.unpacked
        (cd $(KEXEC_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                --host=$(GNU_TARGET_NAME) \
index 14110088919f2674390bf1bd20796a35719b92a5..b7ea5c18629768e8e3f35da5e2845f6787a11b06 100644 (file)
@@ -26,8 +26,18 @@ $(LIBCGI_DIR)/.configured: $(LIBCGI_DIR)/.source
                        --target=$(GNU_TARGET_NAME) \
                        --host=$(GNU_TARGET_NAME) \
                        --build=$(GNU_HOST_NAME) \
-                       --prefix=$(STAGING_DIR) \
+                       --prefix=/usr \
+                       --exec-prefix=/usr \
+                       --bindir=/usr/bin \
+                       --sbindir=/usr/sbin \
+                       --libdir=/lib \
+                       --libexecdir=/usr/lib \
                        --sysconfdir=/etc \
+                       --datadir=/usr/share \
+                       --localstatedir=/var \
+                       --includedir=/include \
+                       --mandir=/usr/man \
+                       --infodir=/usr/info \
        );
        touch $(LIBCGI_DIR)/.configured;
 
@@ -35,7 +45,7 @@ $(LIBCGI_DIR)/$(LIBCGI_LIBRARY): $(LIBCGI_DIR)/.configured
        $(MAKE) CC=$(TARGET_CC) -C $(LIBCGI_DIR)
 
 $(STAGING_DIR)/lib/libcgi.so: $(LIBCGI_DIR)/$(LIBCGI_LIBRARY)
-       $(MAKE) -C $(LIBCGI_DIR) install
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBCGI_DIR) install
        touch -c $(STAGING_DIR)/lib/libcgi.so
 
 $(TARGET_DIR)/$(LIBCGI_TARGET_LIBRARY): $(STAGING_DIR)/lib/libcgi.so
index ed8461f3398f34acb2817b6f7912a42fd9771256..2de095973d23bd3360ad11aaf7c3da736938aea6 100644 (file)
@@ -27,7 +27,18 @@ $(LIBCGICC_DIR)/.configured: $(LIBCGICC_DIR)/.unpacked
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
-               --prefix=$(STAGING_DIR) \
+               --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --includedir=/include \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
        );
        touch $(LIBCGICC_DIR)/.configured
 
@@ -36,7 +47,7 @@ $(LIBCGICC_DIR)/.compiled: $(LIBCGICC_DIR)/.configured
        touch $(LIBCGICC_DIR)/.compiled
 
 $(STAGING_DIR)/lib/libcgicc.so: $(LIBCGICC_DIR)/.compiled
-       $(MAKE) -C $(LIBCGICC_DIR) install
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBCGICC_DIR) install
        touch -c $(STAGING_DIR)/lib/libcgicc.so
 
 $(TARGET_DIR)/usr/lib/libcgicc.so: $(STAGING_DIR)/lib/libcgicc.so
index ad1cda585b0d90157eb0ad9d96a33a190861f721..766cfa309822c59f86ab2d1972cf934fc9efb99a 100644 (file)
@@ -41,13 +41,14 @@ $(LIBDAEMON_DIR)/.configured: $(LIBDAEMON_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
-               --libexecdir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
+               --includedir=/include \
                --mandir=/usr/man \
                --infodir=/usr/info \
-               --includedir=$(STAGING_DIR)/include \
                $(DISABLE_NLS) \
                $(DISABLE_LARGEFILE) \
                --disable-lynx \
@@ -60,13 +61,7 @@ $(LIBDAEMON_DIR)/.compiled: $(LIBDAEMON_DIR)/.configured
        touch $(LIBDAEMON_DIR)/.compiled
 
 $(STAGING_DIR)/lib/libdaemon.a: $(LIBDAEMON_DIR)/.compiled
-       $(MAKE) \
-               -C $(LIBDAEMON_DIR) \
-               prefix=$(STAGING_DIR) \
-               exec_prefix=$(STAGING_DIR) \
-               bindir=$(STAGING_DIR)/bin \
-               datadir=$(STAGING_DIR)/share \
-               install
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBDAEMON_DIR) install
        touch -c $(STAGING_DIR)/lib/libdaemon.a
 
 #$(TARGET_DIR)/usr/lib/libdaemon.a: $(STAGING_DIR)/lib/libdaemon.a
index f70e344752e9c3ddb5c6ff75c88a68629337f95d..0e628a01a81c1d8d2d779fa18f135adc7f038c6b 100644 (file)
@@ -31,18 +31,19 @@ $(LIBGLIB12_DIR)/.configured: $(LIBGLIB12_DIR)/.unpacked
                $(TARGET_CONFIGURE_OPTS) \
                ac_cv_c_bigendian=$(LIBGLIB12_BE) \
                ./configure \
-               --host=$(REAL_GNU_TARGET_NAME) \
+               --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
-               --prefix=$(STAGING_DIR) \
-               --exec_prefix=$(STAGING_DIR) \
-               --libdir=$(STAGING_DIR)/lib \
-               --includedir=$(STAGING_DIR)/include \
+               --prefix=/usr \
+               --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
+               --includedir=/include \
                --mandir=/usr/man \
                --infodir=/usr/info \
                --enable-shared \
@@ -58,7 +59,7 @@ $(STAGING_DIR)/lib/$(LIBGLIB12_BINARY): $(LIBGLIB12_DIR)/.libs/$(LIBGLIB12_BINAR
            exec_prefix=$(STAGING_DIR) \
            bindir=$(STAGING_DIR)/bin \
            sbindir=$(STAGING_DIR)/sbin \
-           libexecdir=$(STAGING_DIR)/libexec \
+           libexecdir=$(STAGING_DIR)/bin \
            datadir=$(STAGING_DIR)/share \
            sysconfdir=$(STAGING_DIR)/etc \
            sharedstatedir=$(STAGING_DIR)/com \
diff --git a/package/libglib2/libdir-la.patch b/package/libglib2/libdir-la.patch
new file mode 100644 (file)
index 0000000..4bbd670
--- /dev/null
@@ -0,0 +1,77 @@
+--- glib/ltmain.sh.orig        2006-07-13 01:12:13.000000000 -0600
++++ glib/ltmain.sh     2007-01-13 13:59:13.000000000 -0700
+@@ -283,8 +283,9 @@
+       # line option must be used.
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+-        $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit $EXIT_FAILURE
++        $echo "$modename: defaulting to \`CC'"
++        $echo "$modename: if this is not correct, specify a tag with \`--tag'"
++#       exit $EXIT_FAILURE
+ #        else
+ #          $echo "$modename: using $tagname tagged configuration"
+       fi
+@@ -2434,8 +2435,14 @@
+           absdir="$abs_ladir"
+           libdir="$abs_ladir"
+         else
+-          dir="$libdir"
+-          absdir="$libdir"
++            # Adding 'libdir' from the .la file to our library search paths
++            # breaks crosscompilation horribly.  We cheat here and don't add
++            # it, instead adding the path where we found the .la.  -CL
++          dir="$abs_ladir"
++          absdir="$abs_ladir"
++          libdir="$abs_ladir"
++          #dir="$libdir"
++          #absdir="$libdir"
+         fi
+         test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
+       else
+@@ -2918,6 +2925,16 @@
+               esac
+               if grep "^installed=no" $deplib > /dev/null; then
+                 path="$absdir/$objdir"
++#             This interferes with crosscompilation. -CL
++#             else
++#               eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
++#               if test -z "$libdir"; then
++#                 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
++#                 exit 1
++#               fi
++#               if test "$absdir" != "$libdir"; then
++#                 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
++#               fi
+               else
+                 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                 if test -z "$libdir"; then
+@@ -5641,6 +5658,10 @@
+           # Replace all uninstalled libtool libraries with the installed ones
+           newdependency_libs=
+           for deplib in $dependency_libs; do
++              # Replacing uninstalled with installed can easily break crosscompilation,
++              # since the installed path is generally the wrong architecture.  -CL
++              newdependency_libs="$newdependency_libs $deplib"
++              continue
+             case $deplib in
+             *.la)
+               name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
+@@ -5962,10 +5983,13 @@
+         # At present, this check doesn't affect windows .dll's that
+         # are installed into $libdir/../bin (currently, that works fine)
+         # but it's something to keep an eye on.
+-        if test "$inst_prefix_dir" = "$destdir"; then
+-          $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+-          exit $EXIT_FAILURE
+-        fi
++        #
++        # This breaks install into our staging area.  -PB
++        # 
++        # if test "$inst_prefix_dir" = "$destdir"; then
++        #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
++        #   exit $EXIT_FAILURE
++        # fi
+         if test -n "$inst_prefix_dir"; then
+           # Stick the inst_prefix_dir data into the link command.
index d8b502cf5e689f920e9c1d7162887897725f7724..abf03968ee2e63f7d3aae91fbd2a31a4ae6cbf96 100644 (file)
@@ -90,18 +90,19 @@ $(LIBGLIB2_DIR)/.configured: $(LIBGLIB2_DIR)/.unpacked
                gl_cv_c_restrict=no \
                ac_cv_path_GLIB_GENMARSHAL=/usr/bin/glib-genmarshal \
                ./configure \
-               --host=$(REAL_GNU_TARGET_NAME) \
+               --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
-               --prefix=$(STAGING_DIR) \
-               --exec_prefix=$(STAGING_DIR) \
-               --libdir=$(STAGING_DIR)/lib \
-               --includedir=$(STAGING_DIR)/include \
+               --prefix=/usr \
+               --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
+               --includedir=/include \
                --mandir=/usr/man \
                --infodir=/usr/info \
                --enable-shared \
@@ -115,21 +116,11 @@ $(LIBGLIB2_DIR)/glib/.libs/$(LIBGLIB2_BINARY): $(LIBGLIB2_DIR)/.configured
        touch -c $(LIBGLIB2_DIR)/glib/.libs/$(LIBGLIB2_BINARY)
 
 $(STAGING_DIR)/lib/$(LIBGLIB2_BINARY): $(LIBGLIB2_DIR)/glib/.libs/$(LIBGLIB2_BINARY)
-       $(MAKE) prefix=$(STAGING_DIR) \
-           exec_prefix=$(STAGING_DIR) \
-           bindir=$(STAGING_DIR)/bin \
-           sbindir=$(STAGING_DIR)/sbin \
-           libexecdir=$(STAGING_DIR)/libexec \
-           datadir=$(STAGING_DIR)/share \
-           sysconfdir=$(STAGING_DIR)/etc \
-           sharedstatedir=$(STAGING_DIR)/com \
-           localstatedir=$(STAGING_DIR)/var \
-           libdir=$(STAGING_DIR)/lib \
-           includedir=$(STAGING_DIR)/include \
-           oldincludedir=$(STAGING_DIR)/include \
-           infodir=$(STAGING_DIR)/info \
-           mandir=$(STAGING_DIR)/man \
-           -C $(LIBGLIB2_DIR) install;
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBGLIB2_DIR) install;
+       $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" $(STAGING_DIR)/lib/libglib-2.0.la
+       $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" $(STAGING_DIR)/lib/libgmodule-2.0.la
+       $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" $(STAGING_DIR)/lib/libgobject-2.0.la
+       $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" $(STAGING_DIR)/lib/libgthread-2.0.la
 
 $(TARGET_DIR)/lib/libglib-2.0.so.0.1200.6: $(STAGING_DIR)/lib/$(LIBGLIB2_BINARY)
        cp -a $(STAGING_DIR)/lib/libglib-2.0.so $(TARGET_DIR)/lib/
index 07f5524ccf2249e348648fb0589de96aeffca74b..a96971a8d3a76acd9a7eca80dea5c77d2b696c1e 100644 (file)
@@ -27,18 +27,19 @@ $(LIBGTK12_DIR)/.configured: $(LIBGTK12_DIR)/.unpacked
                GLIB_CONFIG=$(STAGING_DIR)/bin/glib-config \
                ac_cv_func_mmap_fixed_mapped=yes \
                ./configure \
-               --host=$(REAL_GNU_TARGET_NAME) \
+               --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
-               --prefix=$(STAGING_DIR) \
-               --exec_prefix=$(STAGING_DIR) \
-               --libdir=$(STAGING_DIR)/lib \
-               --includedir=$(STAGING_DIR)/include \
+               --prefix=/usr \
+               --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
+               --includedir=/include \
                --mandir=/usr/man \
                --infodir=/usr/info \
                $(DISABLE_NLS) \
@@ -60,7 +61,7 @@ $(STAGING_DIR)/lib/$(LIBGTK12_BINARY): $(LIBGTK12_DIR)/gtk/.libs/$(LIBGTK12_BINA
            exec_prefix=$(STAGING_DIR) \
            bindir=$(STAGING_DIR)/bin \
            sbindir=$(STAGING_DIR)/sbin \
-           libexecdir=$(STAGING_DIR)/libexec \
+           libexecdir=$(STAGING_DIR)/bin \
            datadir=$(STAGING_DIR)/share \
            sysconfdir=$(STAGING_DIR)/etc \
            sharedstatedir=$(STAGING_DIR)/com \
diff --git a/package/libgtk2/libdir-la.patch b/package/libgtk2/libdir-la.patch
new file mode 100644 (file)
index 0000000..9df1c88
--- /dev/null
@@ -0,0 +1,77 @@
+--- gtk/ltmain.sh.orig 2004-11-23 09:19:19.000000000 -0700
++++ gtk/ltmain.sh      2007-01-13 14:36:53.000000000 -0700
+@@ -231,8 +231,9 @@
+       # line option must be used.
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+-        $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit $EXIT_FAILURE
++        $echo "$modename: defaulting to \`CC'"
++        $echo "$modename: if this is not correct, specify a tag with \`--tag'"
++#       exit $EXIT_FAILURE
+ #        else
+ #          $echo "$modename: using $tagname tagged configuration"
+       fi
+@@ -2279,8 +2280,14 @@
+           absdir="$abs_ladir"
+           libdir="$abs_ladir"
+         else
+-          dir="$libdir"
+-          absdir="$libdir"
++            # Adding 'libdir' from the .la file to our library search paths
++            # breaks crosscompilation horribly.  We cheat here and don't add
++            # it, instead adding the path where we found the .la.  -CL
++          dir="$abs_ladir"
++          absdir="$abs_ladir"
++          libdir="$abs_ladir"
++          #dir="$libdir"
++          #absdir="$libdir"
+         fi
+       else
+         if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+@@ -2754,6 +2761,16 @@
+               esac
+               if grep "^installed=no" $deplib > /dev/null; then
+                 path="$absdir/$objdir"
++#             This interferes with crosscompilation. -CL
++#             else
++#               eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
++#               if test -z "$libdir"; then
++#                 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
++#                 exit 1
++#               fi
++#               if test "$absdir" != "$libdir"; then
++#                 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
++#               fi
+               else
+                 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                 if test -z "$libdir"; then
+@@ -5141,6 +5158,10 @@
+           # Replace all uninstalled libtool libraries with the installed ones
+           newdependency_libs=
+           for deplib in $dependency_libs; do
++              # Replacing uninstalled with installed can easily break crosscompilation,
++              # since the installed path is generally the wrong architecture.  -CL
++              newdependency_libs="$newdependency_libs $deplib"
++              continue
+             case $deplib in
+             *.la)
+               name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
+@@ -5459,10 +5480,13 @@
+         # At present, this check doesn't affect windows .dll's that
+         # are installed into $libdir/../bin (currently, that works fine)
+         # but it's something to keep an eye on.
+-        if test "$inst_prefix_dir" = "$destdir"; then
+-          $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+-          exit $EXIT_FAILURE
+-        fi
++        #
++        # This breaks install into our staging area.  -PB
++        # 
++        # if test "$inst_prefix_dir" = "$destdir"; then
++        #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
++        #   exit $EXIT_FAILURE
++        # fi
+         if test -n "$inst_prefix_dir"; then
+           # Stick the inst_prefix_dir data into the link command.
index babd31e924aca16c262d152bf3ef43298c6d9c5c..78845973c14a46fae4fe4906c7bd5fc434ab88da 100644 (file)
@@ -25,7 +25,6 @@ $(LIBGTK2_DIR)/.unpacked: $(DL_DIR)/$(LIBGTK2_SOURCE)
 $(LIBGTK2_DIR)/.configured: $(LIBGTK2_DIR)/.unpacked
        (cd $(LIBGTK2_DIR); rm -rf config.cache; \
                $(TARGET_CONFIGURE_OPTS) \
-               PKG_CONFIG=$(STAGING_DIR)/usr/bin/pkg-config \
                GLIB_CONFIG=$(STAGING_DIR)/bin/glib-config \
                ac_cv_func_mmap_fixed_mapped=yes \
                ac_cv_func_posix_getpwuid_r=yes \
@@ -87,18 +86,19 @@ $(LIBGTK2_DIR)/.configured: $(LIBGTK2_DIR)/.unpacked
                ac_cv_path_GLIB_GENMARSHAL=/usr/bin/glib-genmarshal \
                ac_cv_path_CUPS_CONFIG=no \
                ./configure \
-               --host=$(REAL_GNU_TARGET_NAME) \
+               --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
-               --prefix=$(STAGING_DIR) \
-               --exec_prefix=$(STAGING_DIR) \
-               --libdir=$(STAGING_DIR)/lib \
-               --includedir=$(STAGING_DIR)/include \
+               --prefix=/usr \
+               --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
+               --includedir=/include \
                --mandir=/usr/man \
                --infodir=/usr/info \
                --enable-shared \
@@ -124,7 +124,7 @@ $(STAGING_DIR)/lib/$(LIBGTK2_BINARY): $(LIBGTK2_DIR)/gtk/.libs/$(LIBGTK2_BINARY)
            exec_prefix=$(STAGING_DIR) \
            bindir=$(STAGING_DIR)/bin \
            sbindir=$(STAGING_DIR)/sbin \
-           libexecdir=$(STAGING_DIR)/libexec \
+           libexecdir=$(STAGING_DIR)/bin \
            datadir=$(STAGING_DIR)/share \
            sysconfdir=$(STAGING_DIR)/etc \
            sharedstatedir=$(STAGING_DIR)/com \
index d73c98511ed1c6a977e3573f5cf05668c0cde26a..4e657f302a3d24d8f61f78fd3300854fff5de389 100644 (file)
@@ -48,6 +48,18 @@ $(LIBPCAP_DIR)/.configured: $(LIBPCAP_DIR)/.unpacked
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
+               --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --includedir=/include \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
                --with-build-cc="$(HOSTCC)" \
                --disable-yydebug \
                --prefix=/usr \
@@ -56,19 +68,12 @@ $(LIBPCAP_DIR)/.configured: $(LIBPCAP_DIR)/.unpacked
        touch $(LIBPCAP_DIR)/.configured
 
 $(LIBPCAP_DIR)/libpcap.a: $(LIBPCAP_DIR)/.configured
-       $(MAKE) \
-               CC="$(TARGET_CC)" \
+       $(MAKE) CC="$(TARGET_CC)" \
                AR="$(TARGET_CROSS)ar" \
                -C $(LIBPCAP_DIR)
 
 $(STAGING_DIR)/lib/libpcap.a: $(LIBPCAP_DIR)/libpcap.a
-       $(MAKE) \
-               -C $(LIBPCAP_DIR) \
-               prefix=$(STAGING_DIR) \
-               exec_prefix=$(STAGING_DIR) \
-               bindir=$(STAGING_DIR)/bin \
-               datadir=$(STAGING_DIR)/share \
-               install
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBPCAP_DIR) install
 
 libpcap: uclibc zlib $(STAGING_DIR)/lib/libpcap.a
 
diff --git a/package/libpng/libdir-la.patch b/package/libpng/libdir-la.patch
new file mode 100644 (file)
index 0000000..d2bce4a
--- /dev/null
@@ -0,0 +1,77 @@
+--- libpng-1.2.12/ltmain.sh.orig       2006-06-05 09:12:42.000000000 -0600
++++ libpng-1.2.12/ltmain.sh    2007-01-13 14:39:14.000000000 -0700
+@@ -322,8 +322,9 @@
+       # line option must be used.
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+-        $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit $EXIT_FAILURE
++        $echo "$modename: defaulting to \`CC'"
++        $echo "$modename: if this is not correct, specify a tag with \`--tag'"
++#       exit $EXIT_FAILURE
+ #        else
+ #          $echo "$modename: using $tagname tagged configuration"
+       fi
+@@ -2453,8 +2454,14 @@
+           absdir="$abs_ladir"
+           libdir="$abs_ladir"
+         else
+-          dir="$libdir"
+-          absdir="$libdir"
++            # Adding 'libdir' from the .la file to our library search paths
++            # breaks crosscompilation horribly.  We cheat here and don't add
++            # it, instead adding the path where we found the .la.  -CL
++          dir="$abs_ladir"
++          absdir="$abs_ladir"
++          libdir="$abs_ladir"
++          #dir="$libdir"
++          #absdir="$libdir"
+         fi
+         test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
+       else
+@@ -2935,6 +2942,16 @@
+               esac
+               if grep "^installed=no" $deplib > /dev/null; then
+                 path="$absdir/$objdir"
++#             This interferes with crosscompilation. -CL
++#             else
++#               eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
++#               if test -z "$libdir"; then
++#                 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
++#                 exit 1
++#               fi
++#               if test "$absdir" != "$libdir"; then
++#                 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
++#               fi
+               else
+                 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                 if test -z "$libdir"; then
+@@ -5659,6 +5676,10 @@
+           # Replace all uninstalled libtool libraries with the installed ones
+           newdependency_libs=
+           for deplib in $dependency_libs; do
++              # Replacing uninstalled with installed can easily break crosscompilation,
++              # since the installed path is generally the wrong architecture.  -CL
++              newdependency_libs="$newdependency_libs $deplib"
++              continue
+             case $deplib in
+             *.la)
+               name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
+@@ -6028,10 +6049,13 @@
+         # At present, this check doesn't affect windows .dll's that
+         # are installed into $libdir/../bin (currently, that works fine)
+         # but it's something to keep an eye on.
+-        if test "$inst_prefix_dir" = "$destdir"; then
+-          $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+-          exit $EXIT_FAILURE
+-        fi
++        #
++        # This breaks install into our staging area.  -PB
++        # 
++        # if test "$inst_prefix_dir" = "$destdir"; then
++        #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
++        #   exit $EXIT_FAILURE
++        # fi
+         if test -n "$inst_prefix_dir"; then
+           # Stick the inst_prefix_dir data into the link command.
index df1470aa65918ffaa8c4311bab7310f27209ca87..88f19dfa799b3e6c66c3f7b542f541cf3bf09337 100644 (file)
@@ -38,22 +38,30 @@ $(LIBPNG_DIR)/.unpacked: $(DL_DIR)/$(LIBPNG_SOURCE)
 
 $(LIBPNG_DIR)/.configured: $(LIBPNG_DIR)/.unpacked
        (cd $(LIBPNG_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
-               ./configure \
                ac_cv_func_memcmp_working=yes \
                ac_cv_have_decl_malloc=yes \
                gl_cv_func_malloc_0_nonnull=yes \
                ac_cv_func_malloc_0_nonnull=yes \
                ac_cv_func_calloc_0_nonnull=yes \
                ac_cv_func_realloc_0_nonnull=yes \
+               ./configure \
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
-               --prefix=$(STAGING_DIR) \
-               --exec_prefix=$(STAGING_DIR) \
-               --libdir=$(STAGING_DIR)/lib \
-               --includedir=$(STAGING_DIR)/include \
+               --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --includedir=/include \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
                --without-libpng-compat \
                --without-x \
        );
@@ -64,28 +72,20 @@ $(LIBPNG_DIR)/.compiled: $(LIBPNG_DIR)/.configured
        touch $(LIBPNG_DIR)/.compiled
 
 $(STAGING_DIR)/lib/libpng.so: $(LIBPNG_DIR)/.compiled
-       $(MAKE) prefix=$(STAGING_DIR) \
-           exec_prefix=$(STAGING_DIR) \
-           bindir=$(STAGING_DIR)/bin \
-           sbindir=$(STAGING_DIR)/sbin \
-           libexecdir=$(STAGING_DIR)/libexec \
-           datadir=$(STAGING_DIR)/share \
-           sysconfdir=$(STAGING_DIR)/etc \
-           sharedstatedir=$(STAGING_DIR)/com \
-           localstatedir=$(STAGING_DIR)/var \
-           libdir=$(STAGING_DIR)/lib \
-           includedir=$(STAGING_DIR)/include \
-           oldincludedir=$(STAGING_DIR)/include \
-           infodir=$(STAGING_DIR)/info \
-           mandir=$(STAGING_DIR)/man \
-           -C $(LIBPNG_DIR) install;
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBPNG_DIR) install;
+       $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" $(STAGING_DIR)/lib/libpng12.la
+       $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)\',g" \
+               -e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
+               -e "s,^includedir=.*,includedir=\'$(STAGING_DIR)/include/libpng12\',g" \
+               "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" \
+               $(STAGING_DIR)/usr/bin/libpng12-config
        touch -c $(STAGING_DIR)/lib/libpng.so
 
 $(TARGET_DIR)/usr/lib/libpng.so: $(STAGING_DIR)/lib/libpng.so
        cp -dpf $(STAGING_DIR)/lib/libpng*.so* $(TARGET_DIR)/usr/lib/
        -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libpng.so
 
-png libpng: uclibc zlib $(TARGET_DIR)/usr/lib/libpng.so
+png libpng: uclibc zlib pkgconfig $(TARGET_DIR)/usr/lib/libpng.so
 
 libpng-clean:
        -$(MAKE) -C $(LIBPNG_DIR) clean
index 5eaf80d659e9651e9c40595a9a12adea7b48c6ca..bc962049036572a3abb1ef2d3635335da3ac9720 100644 (file)
@@ -18,13 +18,24 @@ $(LIBRAW1394_DIR)/.source: $(DL_DIR)/$(LIBRAW1394_SOURCE)
 
 $(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.source
        (cd $(LIBRAW1394_DIR); \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
-                       --target=$(GNU_TARGET_NAME) \
-                       --host=$(GNU_TARGET_NAME) \
-                       --build=$(GNU_HOST_NAME) \
-                       --prefix=$(STAGING_DIR) \
+               --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
+               --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --includedir=/include \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
        );
        touch $(LIBRAW1394_DIR)/.configured;
 
@@ -33,7 +44,7 @@ $(LIBRAW1394_DIR)/.compiled: $(LIBRAW1394_DIR)/.configured
        touch $(LIBRAW1394_DIR)/.compiled
 
 $(STAGING_DIR)/lib/libraw1394.so: $(LIBRAW1394_DIR)/.compiled
-       make -C $(LIBRAW1394_DIR)/src install
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBRAW1394_DIR)/src install
 
 $(TARGET_DIR)/usr/lib/libraw1394.so: $(STAGING_DIR)/lib/libraw1394.so
        cp -dpf $(STAGING_DIR)/lib/libraw1394.so* $(TARGET_DIR)/usr/lib/
index 1d0d7d635419981fdd2a07608cb67fc7c7263ebf..b977cd1161708ce4a215048be098af867318777a 100644 (file)
@@ -32,6 +32,7 @@ $(LIBTOOL_DIR)/.configured: $(LIBTOOL_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 043a0b970f0143df4a007b6099cafdde822366cb..cafabcb05bf150debbade07e123bf4bffc33cdbb 100644 (file)
@@ -29,7 +29,7 @@ $(LIBUSB_DIR)/.unpacked: $(DL_DIR)/$(LIBUSB_SOURCE)
 
 $(LIBUSB_DIR)/.configured: $(LIBUSB_DIR)/.unpacked
        (cd $(LIBUSB_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                ac_cv_header_regex_h=no \
                ac_cv_c_bigendian=$(LIBUSB_BE) \
index 18d840483833ecfdb9b3d58f1573f6dbfed2c133..a3840e431f3b719cc1c97a67be7ee43c1c674282 100644 (file)
@@ -35,6 +35,7 @@ $(LIGHTTPD_DIR)/.configured: $(LIGHTTPD_DIR)/.unpacked
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --localstatedir=/var \
index df06111dca8b06577791c14ca8abaf5761bc8037..6f4e6aa266044825a61d54d4b480cfd3b57511e9 100644 (file)
@@ -28,6 +28,7 @@ $(LINKS_DIR)/.configured: $(LINKS_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 5cfe6f898fa461c1f15436d9227444a8e5be5325..8ca73920b76137256657faeed931e00e9b337f1a 100644 (file)
@@ -45,6 +45,7 @@ $(LRZSZ_DIR)/.configured: $(LRZSZ_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 9198997acc3ccf36098aa5dee589300b4265112c..4fddae3b7a3f3b80a0daf4ca39032b04a1944865 100644 (file)
@@ -77,6 +77,7 @@ $(LTT_DIR2)/.configured: $(LTT_DIR2)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 22f9b7e8f288c6f432f43122ba0ee79fb09ad440..c568575ab993b62f5e587707841a3e7c20485cb9 100644 (file)
@@ -35,6 +35,7 @@ $(GNUMAKE_DIR)/.configured: $(GNUMAKE_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index e3bd3c624ce50dd788df65e6dffac96416ad9717..bab52974aefa745f8c7de273d9c7392e40d3f078 100644 (file)
@@ -40,18 +40,19 @@ $(MPFR_DIR)/.configured: $(MPFR_DIR)/.unpacked $(STAGING_DIR)/lib/$(GMP_BINARY)
                CFLAGS="$(TARGET_CFLAGS)" \
                ac_cv_c_bigendian=$(MPFR_BE) \
                ./configure \
-               --host=$(REAL_GNU_TARGET_NAME) \
+               --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
-               --prefix=$(STAGING_DIR) \
-               --exec_prefix=$(STAGING_DIR) \
-               --libdir=$(STAGING_DIR)/lib \
-               --includedir=$(STAGING_DIR)/include \
+               --prefix=/usr \
+               --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
+               --includedir=/include \
                --mandir=/usr/man \
                --infodir=/usr/info \
                --enable-shared \
@@ -68,7 +69,7 @@ $(STAGING_DIR)/lib/$(MPFR_BINARY): $(MPFR_DIR)/.libs/$(MPFR_BINARY)
            exec_prefix=$(STAGING_DIR) \
            bindir=$(STAGING_DIR)/bin \
            sbindir=$(STAGING_DIR)/sbin \
-           libexecdir=$(STAGING_DIR)/libexec \
+           libexecdir=$(STAGING_DIR)/bin \
            datadir=$(STAGING_DIR)/share \
            sysconfdir=$(STAGING_DIR)/etc \
            sharedstatedir=$(STAGING_DIR)/com \
@@ -115,6 +116,7 @@ $(MPFR_DIR2)/.configured: $(MPFR_DIR)/.unpacked $(GMP_HOST_DIR)/lib/$(GMP_BINARY
                --includedir=$(STAGING_DIR)/include \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index fa0e8a811a01cbf0be05932fdbdbb1e70bec413b..0c6ce2b06c87a7865c42b86299e378f4e89f86bd 100644 (file)
@@ -22,7 +22,7 @@ $(NANO_DIR)/.unpacked: $(DL_DIR)/$(NANO_SOURCE)
 
 $(NANO_DIR)/.configured: $(NANO_DIR)/.unpacked
        (cd $(NANO_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                ac_cv_header_regex_h=no \
                ./configure \
index ac9f8ad48932fcbb233fda5decc7d70fa23042a2..11cc87c7b410dcef3647626eccba58aead6acae9 100644 (file)
@@ -48,20 +48,22 @@ $(NCURSES_DIR)/.configured: $(NCURSES_DIR)/.dist
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
-               --host=$(GNU_TARGET_NAME) \
+               --host=$(REAL_GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
+               --includedir=/include \
                --mandir=/usr/man \
                --infodir=/usr/info \
                --with-terminfo-dirs=/usr/share/terminfo \
                --with-default-terminfo-dir=/usr/share/terminfo \
-               --libdir=$(STAGING_DIR)/lib \
                --with-shared --without-cxx --without-cxx-binding \
                --without-ada --without-progs $(DISABLE_NLS) \
                --without-profile --without-debug --disable-rpath \
index 58b6592d52f82209bf70ab407b9b641c362a008b..f48956959cbf4ca5dfc82417c1de556a3e259481 100644 (file)
@@ -33,6 +33,7 @@ $(NEWT_DIR)/.configured: $(NEWT_DIR)/.source
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 3fa122d0f0c7e7b39275b31dacdf8d1132cbfee6..afdbdb74f27b5efcd467668fa6536921a036f275 100644 (file)
@@ -36,6 +36,7 @@ $(NTP_DIR)/.configured: $(NTP_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 059552146f92de836859e648a162abf6d8aa66ab..8b47cb9201adfd6c6f80020aa88a5c492f123534 100644 (file)
@@ -29,6 +29,7 @@ $(OPENSSH_DIR)/.configured: $(OPENSSH_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/sbin \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 2a7ba5ce4428b08700e29fc87afc0bd8c1baede8..d0cedf1006d1ddcb73d000ceaa28cda5a5726965 100644 (file)
@@ -44,6 +44,7 @@ $(OPENVPN_DIR)/.configured: $(OPENVPN_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
diff --git a/package/pango/libdir-la.patch b/package/pango/libdir-la.patch
new file mode 100644 (file)
index 0000000..35d9776
--- /dev/null
@@ -0,0 +1,77 @@
+--- pango/ltmain.sh.orig       2004-11-23 09:19:19.000000000 -0700
++++ pango/ltmain.sh    2007-01-13 14:36:53.000000000 -0700
+@@ -231,8 +231,9 @@
+       # line option must be used.
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+-        $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit $EXIT_FAILURE
++        $echo "$modename: defaulting to \`CC'"
++        $echo "$modename: if this is not correct, specify a tag with \`--tag'"
++#       exit $EXIT_FAILURE
+ #        else
+ #          $echo "$modename: using $tagname tagged configuration"
+       fi
+@@ -2279,8 +2280,14 @@
+           absdir="$abs_ladir"
+           libdir="$abs_ladir"
+         else
+-          dir="$libdir"
+-          absdir="$libdir"
++            # Adding 'libdir' from the .la file to our library search paths
++            # breaks crosscompilation horribly.  We cheat here and don't add
++            # it, instead adding the path where we found the .la.  -CL
++          dir="$abs_ladir"
++          absdir="$abs_ladir"
++          libdir="$abs_ladir"
++          #dir="$libdir"
++          #absdir="$libdir"
+         fi
+       else
+         if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+@@ -2754,6 +2761,16 @@
+               esac
+               if grep "^installed=no" $deplib > /dev/null; then
+                 path="$absdir/$objdir"
++#             This interferes with crosscompilation. -CL
++#             else
++#               eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
++#               if test -z "$libdir"; then
++#                 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
++#                 exit 1
++#               fi
++#               if test "$absdir" != "$libdir"; then
++#                 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
++#               fi
+               else
+                 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                 if test -z "$libdir"; then
+@@ -5141,6 +5158,10 @@
+           # Replace all uninstalled libtool libraries with the installed ones
+           newdependency_libs=
+           for deplib in $dependency_libs; do
++              # Replacing uninstalled with installed can easily break crosscompilation,
++              # since the installed path is generally the wrong architecture.  -CL
++              newdependency_libs="$newdependency_libs $deplib"
++              continue
+             case $deplib in
+             *.la)
+               name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
+@@ -5459,10 +5480,13 @@
+         # At present, this check doesn't affect windows .dll's that
+         # are installed into $libdir/../bin (currently, that works fine)
+         # but it's something to keep an eye on.
+-        if test "$inst_prefix_dir" = "$destdir"; then
+-          $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+-          exit $EXIT_FAILURE
+-        fi
++        #
++        # This breaks install into our staging area.  -PB
++        # 
++        # if test "$inst_prefix_dir" = "$destdir"; then
++        #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
++        #   exit $EXIT_FAILURE
++        # fi
+         if test -n "$inst_prefix_dir"; then
+           # Stick the inst_prefix_dir data into the link command.
index b382126129c8f1a58f89d553dc29892d7f7dc347..52d2ffa0148ece95cc0a4779e4c2c71254cd2c4f 100644 (file)
@@ -9,7 +9,7 @@
  ## Process this file with automake to create Makefile.in.
  
 -SUBDIRS= pango modules examples docs tools tests
-+SUBDIRS= pango modules examples docs tools 
++SUBDIRS= pango modules tools 
  
  EXTRA_DIST =          \
        pango.pc.in     \
index 683622c7db5704bd8a98c4cce69265077e9842eb..bae8d02bdf6e35be797bb50a6ced5f059aeeed5a 100644 (file)
@@ -4,10 +4,9 @@
 #
 #############################################################
 PANGO_VERSION:=1.13.5
-#PANGO_VERSION:=1.14.8
+#PANGO_VERSION:=1.15.3
 PANGO_SOURCE:=pango-$(PANGO_VERSION).tar.bz2
-#PANGO_SITE:=ftp://ftp.gtk.org/pub/pango/1.14
-PANGO_SITE:=ftp://ftp.gtk.org/pub/pango/1.13
+PANGO_SITE:=http://ftp.gnome.org/pub/GNOME/sources/pango/1.13
 PANGO_CAT:=$(BZCAT)
 PANGO_DIR:=$(BUILD_DIR)/pango-$(PANGO_VERSION)
 PANGO_BINARY:=libpango-1.0.a
@@ -19,7 +18,6 @@ PANGO_BE:=no
 endif
 
 PANGO_BUILD_ENV=$(TARGET_CONFIGURE_OPTS) \
-               PKG_CONFIG=$(STAGING_DIR)/usr/bin/pkg-config \
                ac_cv_c_bigendian=$(PANGO_BE) \
                ac_cv_func_posix_getpwuid_r=yes \
                glib_cv_stack_grows=no \
@@ -78,7 +76,7 @@ PANGO_BUILD_ENV=$(TARGET_CONFIGURE_OPTS) \
                ac_use_included_regex=no \
                gl_cv_c_restrict=no \
                ac_cv_path_GLIB_GENMARSHAL=/usr/bin/glib-genmarshal \
-               ac_cv_path_FREETYPE_CONFIG=$(STAGING_DIR)/bin/freetype-config
+               ac_cv_path_FREETYPE_CONFIG=$(STAGING_DIR)/usr/bin/freetype-config
 
 $(DL_DIR)/$(PANGO_SOURCE):
         $(WGET) -P $(DL_DIR) $(PANGO_SITE)/$(PANGO_SOURCE)
@@ -95,25 +93,26 @@ $(PANGO_DIR)/.configured: $(PANGO_DIR)/.unpacked
        (cd $(PANGO_DIR); rm -rf config.cache; \
                 $(PANGO_BUILD_ENV) \
                ./configure \
-               --host=$(REAL_GNU_TARGET_NAME) \
+               --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
-               --prefix=$(STAGING_DIR) \
-               --exec_prefix=$(STAGING_DIR) \
-               --libdir=$(STAGING_DIR)/lib \
-               --includedir=$(STAGING_DIR)/include \
+               --prefix=/usr \
+               --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
                --localstatedir=/var \
+               --includedir=/include \
                --mandir=/usr/man \
                --infodir=/usr/info \
                --enable-shared \
                --enable-static \
                --with-x \
-               --x-includes=$(STAGING_DIR)/usr/X11R6/include \
-               --x-libraries=$(STAGING_DIR)/usr/X11R6/lib \
+               --x-includes=$(STAGING_DIR)/include \
+               --x-libraries=$(STAGING_DIR)/lib \
                --disable-glibtest \
                --enable-explicit-deps=no \
                --disable-debug \
@@ -125,21 +124,8 @@ $(PANGO_DIR)/pango/.libs/$(PANGO_BINARY): $(PANGO_DIR)/.configured
        touch -c $(PANGO_DIR)/pango/.libs/$(PANGO_BINARY)
 
 $(STAGING_DIR)/lib/$(PANGO_BINARY): $(PANGO_DIR)/pango/.libs/$(PANGO_BINARY)
-       $(MAKE) prefix=$(STAGING_DIR) \
-           exec_prefix=$(STAGING_DIR) \
-           bindir=$(STAGING_DIR)/bin \
-           sbindir=$(STAGING_DIR)/sbin \
-           libexecdir=$(STAGING_DIR)/libexec \
-           datadir=$(STAGING_DIR)/share \
-           sysconfdir=$(STAGING_DIR)/etc \
-           sharedstatedir=$(STAGING_DIR)/com \
-           localstatedir=$(STAGING_DIR)/var \
-           libdir=$(STAGING_DIR)/lib \
-           includedir=$(STAGING_DIR)/include \
-           oldincludedir=$(STAGING_DIR)/include \
-           infodir=$(STAGING_DIR)/info \
-           mandir=$(STAGING_DIR)/man \
-           -C $(PANGO_DIR) install;
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(PANGO_DIR) install;
+       $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" $(STAGING_DIR)/lib/libpango.la
 
 $(TARGET_DIR)/lib/libpango-1.0.so.0: $(STAGING_DIR)/lib/$(PANGO_BINARY)
        cp -a $(STAGING_DIR)/lib/libpango-1.0.so $(TARGET_DIR)/lib/
index 33456be5fa30394131bd2c5a556b1ad294a7860b..f0b47e4e896bbb53e5bce2c9eef0a9362fe9c007 100644 (file)
@@ -31,6 +31,7 @@ $(GNUPATCH_DIR)/.configured: $(GNUPATCH_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index aeeae46cabc6acdb265f23f7af0e3e205e3c6176..66f7d0868a63762e26ab2d92cf4f592020064688 100644 (file)
@@ -39,6 +39,7 @@ $(PPPD_DIR)/.configured: $(PPPD_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 354c66662570d40da7ce23e6ccb00e4ec0d0b632..acc6516695110c5719d8890e06ba19e54ac58324 100644 (file)
@@ -19,7 +19,7 @@ $(PSMISC_DIR)/.unpacked: $(DL_DIR)/$(PSMISC_SOURCE)
 
 $(PSMISC_DIR)/.configured: $(PSMISC_DIR)/.unpacked
        (cd $(PSMISC_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
index fbc75a1894a5d072972f42bbe4a6f1ff311bb7ad..8e434bae5eebfbb7bf2643a81f0bb599fe5d8bb2 100644 (file)
@@ -136,7 +136,7 @@ $(QTE_QTOPIA_DIR)/.unpacked: $(DL_DIR)/$(QTE_QTOPIA_SOURCE)
 $(QTE_QTE_DIR)/.configured: $(QTE_QTE_DIR)/.unpacked $(QTE_TMAKE_DIR)/.unpacked $(QTE_QTE_DIR)/$(QTE_UIC_BINARY) $(QTE_QTE_DIR)/$(QTE_QVFB_BINARY) $(QTE_QTOPIA_DIR)/.unpacked
        cp $(QTE_QTOPIA_DIR)/src/qt/qconfig-qpe.h $(QTE_QTE_DIR)/src/tools/
        (cd $(@D); export QTDIR=`pwd`; export TMAKEPATH=$(QTE_TMAKE_DIR)/lib/qws/linux-x86-g++; export PATH=$(STAGING_DIR)/bin:$$QTDIR/bin:$$PATH; export LD_LIBRARY_PATH=$$QTDIR/lib:$$LD_LIBRARY_PATH; echo 'yes' | \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                $(QTE_QTE_CONFIGURE) -qconfig qpe -keypad-mode -qvfb -depths 4,8,16,32 -xplatform $(BR2_QTE_CROSS_PLATFORM) \
@@ -156,7 +156,7 @@ endif
 
 $(QTE_QVFB_DIR)/.configured: $(QTE_QVFB_DIR)/.unpacked $(QTE_TMAKE_DIR)/.unpacked
        (cd $(@D); export QTDIR=`pwd`; export TMAKEPATH=$(QTE_TMAKE_DIR)/lib/linux-g++; export $$QTDIR/bin:$$PATH; export LD_LIBRARY_PATH=$$QTDIR/lib:$$LD_LIBRARY_PATH; echo 'yes' | \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                $(QTE_QVFB_CONFIGURE) \
@@ -171,7 +171,7 @@ $(QTE_QVFB_DIR)/.configured: $(QTE_QVFB_DIR)/.unpacked $(QTE_TMAKE_DIR)/.unpacke
 
 $(QTE_QTOPIA_DIR)/.configured: $(QTE_QTOPIA_DIR)/.unpacked $(QTE_TMAKE_DIR)/.unpacked $(QTE_QTE_DIR)/$(QTE_UIC_BINARY) $(QTE_QTE_DIR)/$(QTE_QVFB_BINARY) $(QTE_QT3_DIR)/.configured
        (cd $(@D); export QTDIR=$(QTE_QTE_DIR); export QPEDIR=$(QTE_QTOPIA_DIR); export PATH=$(STAGING_DIR)/bin:$$QTDIR/bin:$$PATH; QT3DIR=$(QTE_QTE_DIR); echo 'yes' | \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                $(QTE_QTOPIA_CONFIGURE) --edition phone -no-qtopiadesktop -dqt $(QTE_QT3_DIR) -arch generic -displaysize 160-240 -languages en_US \
index 28dbf8e10d42b911ac44e52b543c4631eabb76ae..235b74760558dde1e62db608a9a8045258974aa0 100644 (file)
@@ -30,6 +30,7 @@ $(RAIDTOOLS2_DIR)/.configured: $(RAIDTOOLS2_DIR)/.unpacked
                 --exec-prefix=/usr \
                 --bindir=/usr/bin \
                 --sbindir=/usr/sbin \
+               --libdir=/lib \
                 --libexecdir=/usr/lib \
                 --sysconfdir=/etc \
                 --datadir=/usr/share/misc \
index ff0a683ec20d3ca94161ba57162f9a1f3ebbe160..17f6c6386071b6ab0bab5e0203fbc1c37ff9d373 100644 (file)
@@ -22,13 +22,24 @@ $(READLINE_DIR)/.unpacked: $(DL_DIR)/$(READLINE_SOURCE)
 
 $(READLINE_DIR)/.configured: $(READLINE_DIR)/.unpacked
        (cd $(READLINE_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
-               --prefix=$(STAGING_DIR) \
+               --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --includedir=/include \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
        );
        touch $(READLINE_DIR)/.configured
 
@@ -43,30 +54,14 @@ $(STAGING_DIR)/$(READLINE_TARGET_BINARY): $(READLINE_DIR)/.configured
 # Install to Staging area
 $(STAGING_DIR)/include/readline/readline.h: $(READLINE_DIR)/$(READLINE_BINARY)
        BUILD_CC=$(TARGET_CC) HOSTCC="$(HOSTCC)" CC=$(TARGET_CC) \
-        $(MAKE1) \
-            prefix=$(STAGING_DIR) \
-            exec_prefix=$(STAGING_DIR) \
-            bindir=$(STAGING_DIR)/bin \
-            sbindir=$(STAGING_DIR)/sbin \
-            libexecdir=$(STAGING_DIR)/lib \
-            datadir=$(STAGING_DIR)/usr/share \
-            sysconfdir=$(STAGING_DIR)/etc \
-            localstatedir=$(STAGING_DIR)/var \
-            libdir=$(STAGING_DIR)/lib \
-            infodir=$(STAGING_DIR)/info \
-            mandir=$(STAGING_DIR)/man \
-            includedir=$(STAGING_DIR)/include \
-            -C $(READLINE_DIR) install;
+       $(MAKE1) DESTDIR=$(STAGING_DIR) -C $(READLINE_DIR) install;
        touch -c $(STAGING_DIR)/include/readline/readline.h
 
 
 # Install only run-time to Target directory
 $(TARGET_DIR)/include/readline/readline.h: $(READLINE_DIR)/$(READLINE_BINARY)
        BUILD_CC=$(TARGET_CC) HOSTCC="$(HOSTCC)" CC=$(TARGET_CC) \
-       $(MAKE1) \
-            prefix=$(TARGET_DIR) \
-            libdir=$(TARGET_DIR)/lib \
-       -C $(READLINE_DIR) install-shared
+       $(MAKE1) DESTDIR=$(TARGET_DIR) -C $(READLINE_DIR) install-shared
        touch -c $(TARGET_DIR)/include/readline/readline.h
 
 readline: $(STAGING_DIR)/include/readline/readline.h
index 90dbfe6349d46708859aaae8f76630a1b5417d0e..aed105cda9c7f3ff37bd618fb0140c6100a21351 100644 (file)
@@ -23,7 +23,7 @@ $(RSYNC_DIR)/.unpacked: $(DL_DIR)/$(RSYNC_SOURCE)
 
 $(RSYNC_DIR)/.configured: $(RSYNC_DIR)/.unpacked
        (cd $(RSYNC_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
index 46366a106e23c4479926254c6c275b6005474e40..9ec020190508da94058a89265cf082d70b0060d0 100644 (file)
@@ -33,6 +33,7 @@ $(RUBY_DIR)/.configured: $(RUBY_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 66ca6bbc1f2ff5311ae47965d83f96afe02968fe..e25d60acba721692118974401c1852305877be33 100644 (file)
@@ -23,14 +23,25 @@ $(SDL_DIR)/.configured: $(SDL_DIR)/.unpacked
        $(TARGET_CONFIGURE_OPTS) \
        CFLAGS="$(TARGET_CFLAGS)" \
        ./configure \
-       --target=$(GNU_TARGET_NAME) \
-       --host=$(GNU_TARGET_NAME) \
-       --build=$(GNU_HOST_NAME) \
-       --prefix=$(STAGING_DIR)/usr \
-       --disable-arts \
-       --disable-esd \
-       --disable-nasm \
-       --disable-video-x11 );
+               --target=$(GNU_TARGET_NAME) \
+               --host=$(GNU_TARGET_NAME) \
+               --build=$(GNU_HOST_NAME) \
+               --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --includedir=/include \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
+               --disable-arts \
+               --disable-esd \
+               --disable-nasm \
+               --disable-video-x11 );
        touch $(SDL_DIR)/.configured
 
 $(SDL_DIR)/.compiled: $(SDL_DIR)/.configured
@@ -38,7 +49,7 @@ $(SDL_DIR)/.compiled: $(SDL_DIR)/.configured
        touch $(SDL_DIR)/.compiled
 
 $(STAGING_DIR)/usr/lib/libSDL.so: $(SDL_DIR)/.compiled
-       $(MAKE) -C $(SDL_DIR) install
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(SDL_DIR) install;
        touch -c $(STAGING_DIR)/usr/lib/libSDL.so
 
 $(TARGET_DIR)/usr/lib/libSDL.so: $(STAGING_DIR)/usr/lib/libSDL.so
index 1c98ab13fe4f7a428b72daf986c09d411dccbc4c..875689d8e5a1f204180755265ad28b7d7db3c68c 100644 (file)
@@ -112,6 +112,7 @@ $(SED_DIR2)/.configured: $(SED_DIR2)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index f167a0f3415d6b6a0fae8f568c06bb6f1c7e9208..df749b7c093f6d05dad614f0da39393b4384863c 100644 (file)
@@ -35,6 +35,7 @@ $(SMARTMONTOOLS_DIR)/.configured: $(SMARTMONTOOLS_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 77e68c84fead77064c222672b6d4c556612887ed..7c62392356173c1e2182e5def442990856736e4e 100644 (file)
@@ -37,6 +37,7 @@ $(SOCAT_WORKDIR)/Makefile: $(SOCAT_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 254abbd5ec22f8d03e473de8a52be48ecf8b7d17..8946577d4fb0bdc7ccfaa11797ad926c3d5d5076 100644 (file)
@@ -30,7 +30,17 @@ $(SQLITE_DIR)/.configured: $(SQLITE_DIR)/.unpacked
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
                --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
                --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --includedir=/include \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
                --enable-shared \
                --enable-static \
                --disable-tcl \
@@ -44,7 +54,7 @@ $(SQLITE_DIR)/sqlite3: $(SQLITE_DIR)/.configured
        $(MAKE) -C $(SQLITE_DIR)
 
 $(STAGING_DIR)/bin/sqlite3: $(SQLITE_DIR)/sqlite3
-       $(MAKE) prefix=$(STAGING_DIR) -C $(SQLITE_DIR) install
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(SQLITE_DIR) install
 
 $(TARGET_DIR)/usr/bin/sqlite3: $(STAGING_DIR)/bin/sqlite3
        cp -a $(STAGING_DIR)/bin/sqlite3 $(TARGET_DIR)/usr/bin
index f4e8dfb9f24e47d35fc2fe6eb80b8de395012302..00aa2482dedc49361ce169237471def83a994fc6 100644 (file)
@@ -33,6 +33,7 @@ $(STRACE_DIR)/.configured: $(STRACE_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 7665e6be4fb1a865375f6863d1d150d16383eb7c..bc1e810679099addacbc9eada97753d62cb22c05 100644 (file)
@@ -36,6 +36,7 @@ $(STUNNEL_DIR)/.configured: $(STUNNEL_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 26216512d86edcfb32fefacd720ad7223603126b..2de748ac43cca221720ac04c08cd333e14bd71b0 100644 (file)
@@ -32,6 +32,7 @@ $(SUDO_DIR)/.configured: $(SUDO_DIR)/.unpacked $(SUDO_CONFIG_FILE)
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 754d04c03ad182b2e08407e26a39b7cba262981d..b8986a6013c271f0c61f4cbe2b908a7acec9274e 100644 (file)
@@ -35,6 +35,7 @@ $(GNUTAR_DIR)/.configured: $(GNUTAR_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 7585b0749aa6cd4c0dec1c61b13a3157897b5f5a..3c6283214dafa2f52d4a327f0a186d596ec60fb2 100644 (file)
@@ -31,10 +31,19 @@ $(DHCPDUMP_DIR)/.configured: $(DHCPDUMP_DIR)/.unpacked
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
+               --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --includedir=/include \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
                --with-build-cc="$(HOSTCC)" \
-               --prefix=$(STAGING_DIR) \
-               --libdir=$(STAGING_DIR)/lib \
-               --includedir=$(STAGING_DIR)/include \
        )
        touch $(DHCPDUMP_DIR)/.configured
 
index 0cadc786f92e8e21020d29e8f313beaff47995c5..456e9dc8b7fd6e9370ed612df907bacd3a907e8c 100644 (file)
@@ -32,23 +32,31 @@ $(TCPDUMP_DIR)/.configured: $(TCPDUMP_DIR)/.unpacked
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
+               --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --includedir=/include \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
                --with-build-cc="$(HOSTCC)" \
-               --prefix=$(STAGING_DIR) \
-               --libdir=$(STAGING_DIR)/lib \
-               --includedir=$(STAGING_DIR)/include \
                --without-crypto \
        )
        $(SED) '/HAVE_PCAP_DEBUG/d' $(TCPDUMP_DIR)/config.h
        touch $(TCPDUMP_DIR)/.configured
 
 $(TCPDUMP_DIR)/tcpdump: $(TCPDUMP_DIR)/.configured
-       $(MAKE) \
-               CC="$(TARGET_CC)" \
+       $(MAKE) CC="$(TARGET_CC)" \
                LDFLAGS="-L$(STAGING_DIR)/lib" \
                LIBS="-lpcap" \
                INCLS="-I. -I$(STAGING_DIR)/include" \
                -C $(TCPDUMP_DIR)
-       
+
 $(TARGET_DIR)/sbin/tcpdump: $(TCPDUMP_DIR)/tcpdump
        cp -af $< $@
 
index 451ae9a9ca55d004da9aaf84d79441cc7a60203d..6bd901df709c4802a052265a2ba6bb0d1f78324b 100644 (file)
@@ -33,6 +33,7 @@ $(TFTP_HPA_DIR)/.configured: $(TFTP_HPA_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index f4db4911001b69e212fc52c405e864d1f3d39672..6bb7263adab60119af3f56d025ea9c5a78719c58 100644 (file)
@@ -24,7 +24,7 @@ $(THTTPD_DIR)/.unpacked: $(DL_DIR)/$(THTTPD_SOURCE)
 
 $(THTTPD_DIR)/.configured: $(THTTPD_DIR)/.unpacked
        (cd $(THTTPD_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
index d2e2883d2ecc243c7da3f9d1343ad65f0d34fbb7..c47415ddd1818ebdbd25a545a888ffd26f9c9fb3 100644 (file)
@@ -27,7 +27,18 @@ $(TIFF_DIR)/.configured: $(TIFF_DIR)/.unpacked
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \
                --build=$(GNU_HOST_NAME) \
-               --prefix=$(STAGING_DIR) \
+               --prefix=/usr \
+               --exec-prefix=/usr \
+               --bindir=/usr/bin \
+               --sbindir=/usr/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --datadir=/usr/share \
+               --localstatedir=/var \
+               --includedir=/include \
+               --mandir=/usr/man \
+               --infodir=/usr/info \
                --enable-shared \
                --enable-static \
                --disable-cxx \
@@ -44,7 +55,8 @@ $(TIFF_DIR)/libtiff/.libs/libtiff.a: $(TIFF_DIR)/.configured
        touch -c $(TIFF_DIR)/libtiff/.libs/libtiff.a
 
 $(STAGING_DIR)/lib/libtiff.so.$(TIFF_VER): $(TIFF_DIR)/libtiff/.libs/libtiff.a
-       $(MAKE) -C $(TIFF_DIR) install
+       $(MAKE) DESTDIR=$(STAGING_DIR) -C $(TIFF_DIR) install
+       $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/lib\',g" $(STAGING_DIR)/lib/libtiff.la
        touch -c $(STAGING_DIR)/lib/libtiff.so.$(TIFF_VER)
 
 $(TARGET_DIR)/lib/libtiff.so.$(TIFF_VER): $(STAGING_DIR)/lib/libtiff.so.$(TIFF_VER)
index 8477bebbf7f72f38f5eb1809f3d1de1c21478898..8f19c64fc423dd941256f96ff7e9705c0b8ef6a7 100644 (file)
@@ -21,6 +21,7 @@ $(TN5250_DIR)/.configured: $(TN5250_DIR)/.dist
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 25656fc08b56c9c4258acb017c1161345a4521ee..392c232b05430d2421804123389f34125e32da76 100644 (file)
@@ -23,7 +23,7 @@ $(USBUTILS_DIR)/.unpacked: $(DL_DIR)/$(USBUTILS_SOURCE)
 
 $(USBUTILS_DIR)/.configured: $(USBUTILS_DIR)/.unpacked
        (cd $(USBUTILS_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS) -I$(TARGET_DIR)/usr/include" \
                LDFLAGS="-L$(TARGET_DIR)/usr/lib" \
                ac_cv_func_malloc_0_nonnull=yes \
index 45774f148992b11bbcb21229cbccb19c3ef192f1..a7fd1bcb62246ef08a14336659240b6fbe57b5eb 100644 (file)
@@ -8,8 +8,8 @@ UTIL-LINUX_SOURCE:=util-linux-$(UTIL-LINUX_VER).tar.bz2
 UTIL-LINUX_SITE:=http://www.kernel.org/pub/linux/utils/util-linux
 UTIL-LINUX_DIR:=$(BUILD_DIR)/util-linux-$(UTIL-LINUX_VER)
 UTIL-LINUX_CAT:=$(BZCAT)
-UTIL-LINUX_BINARY:=$(UTIL-LINUX_DIR)/misc-utils/mcookie
-UTIL-LINUX_TARGET_BINARY:=$(TARGET_DIR)/usr/bin/mcookie
+UTIL-LINUX_BINARY:=$(UTIL-LINUX_DIR)/misc-utils/chkdupexe
+UTIL-LINUX_TARGET_BINARY:=$(TARGET_DIR)/usr/bin/chkdupexe
 
 $(DL_DIR)/$(UTIL-LINUX_SOURCE):
        $(WGET) -P $(DL_DIR) $(UTIL-LINUX_SITE)/$(UTIL-LINUX_SOURCE)
@@ -32,6 +32,7 @@ $(UTIL-LINUX_DIR)/.configured: $(UTIL-LINUX_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index a147dc664487c82d3627e5c1ca8cc459d23f89b2..f96517cb05ced9559746a5fdf41bd5b82bd5917e 100644 (file)
@@ -32,6 +32,7 @@ $(VALGRIND_DIR)/.configured: $(VALGRIND_DIR)/.patched
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index 4a51a9ea36772d2b474222cd3a3abca960cdd053..a002af4dc8f53eca7608c358a2dec8a9c21f190a 100644 (file)
@@ -35,6 +35,7 @@ $(VTUN_DIR)/.configured: $(VTUN_DIR)/.unpacked
                --exec-prefix=/usr \
                --bindir=/usr/bin \
                --sbindir=/usr/sbin \
+               --libdir=/lib \
                --libexecdir=/usr/lib \
                --sysconfdir=/etc \
                --datadir=/usr/share \
index c2273549af17ffcbe87a5c5499ff06dbeee3e987..c266afcb4486b8751e936f039dec9a7c03a33499 100644 (file)
@@ -22,7 +22,7 @@ $(WGET_DIR)/.unpacked: $(DL_DIR)/$(WGET_SOURCE)
 
 $(WGET_DIR)/.configured: $(WGET_DIR)/.unpacked
        (cd $(WGET_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
index 0bec965436dec6bb274529765824e00c7d938e31..c284f7978dfb7f7cd420e160c63cc329c0ba446c 100644 (file)
@@ -22,7 +22,7 @@ $(WHICH_DIR)/.unpacked: $(DL_DIR)/$(WHICH_SOURCE)
 
 $(WHICH_DIR)/.configured: $(WHICH_DIR)/.unpacked
        (cd $(WHICH_DIR); rm -rf config.cache; \
-               $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
+               $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
index 5dec3e94c5af2084c0c36d045b529f42629da377..7b35c1980e2cd0af35f438f58e5ae19a94f7c225 100644 (file)
@@ -4,8 +4,8 @@ config BR2_PACKAGE_XORG
        depends !BR2_PACKAGE_TINYX
        select BR2_PACKAGE_ZLIB
        select BR2_PACKAGE_LIBPNG
-       select BR2_PACKAGE_FREETYPE
        select BR2_PACKAGE_EXPAT
+       select BR2_PACKAGE_FONTCONFIG
        select BR2_PACKAGE_PKGCONFIG
        help
          The official X Window system and server.
diff --git a/package/xorg/libXfont-1.1.0-noftinternals.patch b/package/xorg/libXfont-1.1.0-noftinternals.patch
new file mode 100644 (file)
index 0000000..846410d
--- /dev/null
@@ -0,0 +1,294 @@
+diff -urbN libXfont-1.1.0/src/FreeType/ftfuncs.c libXfont-1.1.0.new/src/FreeType/ftfuncs.c
+--- xc/lib/font/FreeType/ftfuncs.c     2005-10-24 02:32:05.000000000 +0800
++++ xc/lib/font/FreeType/ftfuncs.c     2006-06-25 10:56:24.221147322 +0800
+@@ -54,10 +54,7 @@
+ #include FT_TYPE1_TABLES_H
+ #include FT_XFREE86_H
+ #include FT_BBOX_H
+-#include FT_INTERNAL_TRUETYPE_TYPES_H
+ #include FT_TRUETYPE_TAGS_H
+-#include FT_INTERNAL_SFNT_H
+-#include FT_INTERNAL_STREAM_H
+ /*
+  *  If you want to use FT_Outline_Get_CBox instead of 
+  *  FT_Outline_Get_BBox, define here.
+@@ -123,6 +120,25 @@
+ };
++/* read 2-byte value from a SFNT table */
++static FT_UShort
++sfnt_get_ushort( FT_Face     face,
++                 FT_ULong    table_tag,
++                 FT_ULong    table_offset )
++{
++  FT_Byte    buff[2];
++  FT_ULong   len = sizeof(buff);
++  FT_UShort  result = 0;
++
++  if ( !FT_Load_Sfnt_Table( face, table_tag, table_offset, buff, &len ) );
++    result = (FT_UShort)( (buff[0] << 8) | buff[1] );
++
++  return result;
++}
++
++#define  sfnt_get_short(f,t,o)  ((FT_Short)sfnt_get_ushort((f),(t),(o)))
++
++
+ static int ftypeInitP = 0;      /* is the engine initialised? */
+ FT_Library ftypeLibrary;
+@@ -211,6 +227,10 @@
+         if(maxp && maxp->maxContours == 0)
+             face->bitmap = 1;
+     }
++
++    face->num_hmetrics = (FT_UInt) sfnt_get_ushort( face->face,
++                                                    TTAG_hhea, 34 );
++
+     /* Insert face in hashtable and return it */
+     face->next = faceTable[bucket];
+     faceTable[bucket] = face;
+@@ -462,6 +482,34 @@
+     }
+     if( FT_IS_SFNT( face->face ) ) {
++#if 1
++        FT_F26Dot6  tt_char_width, tt_char_height, tt_dim_x, tt_dim_y;
++        FT_UInt     nn;
++
++        instance->strike_index=0xFFFFU;
++
++        tt_char_width  = (FT_F26Dot6)(trans->scale*(1<<6) + 0.5);
++        tt_char_height = (FT_F26Dot6)(trans->scale*(1<<6) + 0.5);
++
++        tt_dim_x = FLOOR64( ( tt_char_width  * trans->xres + 36 ) / 72 + 32 );
++        tt_dim_y = FLOOR64( ( tt_char_height * trans->yres + 36 ) / 72 + 32 );
++
++      if ( tt_dim_x && !tt_dim_y )
++          tt_dim_y = tt_dim_x;
++      else if ( !tt_dim_x && tt_dim_y )
++          tt_dim_x = tt_dim_y;
++
++        for ( nn = 0; nn < face->face->num_fixed_sizes; nn++ )
++        {
++          FT_Bitmap_Size*  sz = &face->face->available_sizes[nn];
++
++          if ( tt_dim_x == FLOOR64(sz->x_ppem + 32) && tt_dim_y == FLOOR64(sz->y_ppem + 32) )
++          {
++            instance->strike_index = nn;
++            break;
++          }
++        }
++#else
+       /* See Set_Char_Sizes() in ttdriver.c */
+       FT_Error err;
+       TT_Face tt_face;
+@@ -486,6 +534,7 @@
+       sfnt   = (SFNT_Service)tt_face->sfnt;
+       err = sfnt->set_sbit_strike(tt_face,tt_x_ppem,tt_y_ppem,&instance->strike_index);
+       if ( err ) instance->strike_index=0xFFFFU;
++#endif
+     }
+     /* maintain a linked list of instances */
+@@ -803,31 +852,61 @@
+  * parse the htmx field in TrueType font.
+  */
+-/* from src/truetype/ttgload.c */
+ static void
+-tt_get_metrics( TT_HoriHeader*  header,
++tt_get_metrics( FT_Face         face,
+               FT_UInt         idx,
++              FT_UInt         num_hmetrics,
+               FT_Short*       bearing,
+               FT_UShort*      advance )
+-/*  Copyright 1996-2001, 2002 by                      */
+-/*  David Turner, Robert Wilhelm, and Werner Lemberg. */
+ {
+-    TT_LongMetrics  longs_m;
+-    FT_UShort       k = header->number_Of_HMetrics;
++   /* read the metrics directly from the horizontal header, we
++    * parse the SFNT table directly through the standard FreeType API.
++    * this works with any version of the library and doesn't need to
++    * peek at its internals. Maybe a bit less
++    */
++    FT_UInt  count  = num_hmetrics;
++    FT_ULong length = 0;
++    FT_ULong offset = 0;
++    FT_Error error;
+-    if ( k == 0 ) {
+-      *bearing = *advance = 0;
+-      return;
+-    }
++    error = FT_Load_Sfnt_Table( face, TTAG_hmtx, 0, NULL, &length );
+-    if ( idx < (FT_UInt)k ) {
+-      longs_m  = (TT_LongMetrics )header->long_metrics + idx;
+-      *bearing = longs_m->bearing;
+-      *advance = longs_m->advance;
++    if ( count == 0 || error )
++    {
++      *advance = 0;
++      *bearing = 0;
++    }
++    else if ( idx < count )
++    {
++      offset = idx * 4L;
++      if ( offset + 4 > length )
++      {
++          *advance = 0;
++          *bearing = 0;
++      }
++      else
++      {
++          *advance = sfnt_get_ushort( face, TTAG_hmtx, offset );
++          *bearing = sfnt_get_short ( face, TTAG_hmtx, offset+2 );
++      }
++    }
++    else
++    {
++      offset = 4L * (count - 1);
++      if ( offset + 4 > length )
++      {
++          *advance = 0;
++          *bearing = 0;
++      }
++      else
++      {
++          *advance = sfnt_get_ushort ( face, TTAG_hmtx, offset );
++          offset += 4 + 2 * ( idx - count );
++          if ( offset + 2 > length)
++              *bearing = 0;
++          else
++              *bearing = sfnt_get_short ( face, TTAG_hmtx, offset );
+     }
+-    else {
+-      *bearing = ((TT_ShortMetrics*)header->short_metrics)[idx - k];
+-      *advance = ((TT_LongMetrics )header->long_metrics)[k - 1].advance;
+     }
+ }
+@@ -835,6 +914,7 @@
+ ft_get_very_lazy_bbox( FT_UInt index,
+                      FT_Face face,
+                      FT_Size size,
++                     FT_UInt num_hmetrics,
+                      double slant,
+                      FT_Matrix *matrix,
+                      FT_BBox *bbox,
+@@ -842,15 +922,14 @@
+                      FT_Long *vertAdvance)
+ {
+     if ( FT_IS_SFNT( face ) ) {
+-      TT_Face   ttface = (TT_Face)face;
+       FT_Size_Metrics *smetrics = &size->metrics;
+       FT_Short  leftBearing = 0;
+       FT_UShort advance = 0;
+       FT_Vector p0, p1, p2, p3;
+       /* horizontal */
+-      tt_get_metrics(&ttface->horizontal, index,
+-                     &leftBearing, &advance);
++      tt_get_metrics( face, index, num_hmetrics,
++                     &leftBearing, &advance );
+ #if 0
+       fprintf(stderr,"x_scale=%f y_scale=%f\n",
+@@ -910,7 +989,27 @@
+                   FT_UShort glyph_index, FT_Glyph_Metrics *metrics_return,
+                   int *sbitchk_incomplete_but_exist )
+ {
+-#if (FREETYPE_VERSION >= 2001008)
++#if 1
++    if ( strike_index != 0xFFFFU && ft_face->available_sizes != NULL )
++    {
++      FT_Error         error;
++      FT_Bitmap_Size*  sz = &ft_face->available_sizes[strike_index];
++
++      error = FT_Set_Pixel_Sizes( ft_face, sz->x_ppem/64, sz->y_ppem/64 );
++      if ( !error )
++      {
++        error = FT_Load_Glyph( ft_face, glyph_index, FT_LOAD_SBITS_ONLY );
++        if ( !error )
++        {
++          if ( metrics_return != NULL )
++            *metrics_return = ft_face->glyph->metrics;
++
++          return 0;
++        }
++      }
++    }
++    return -1;
++#elif (FREETYPE_VERSION >= 2001008)
+     SFNT_Service       sfnt;
+     TT_Face            face;
+     FT_Error           error;
+@@ -1043,6 +1142,7 @@
+           if( bitmap_metrics == NULL ) {
+               if ( sbitchk_incomplete_but_exist==0 && (instance->ttcap.flags & TTCAP_IS_VERY_LAZY) ) {
+                   if( ft_get_very_lazy_bbox( idx, face->face, instance->size, 
++                                             face->num_hmetrics,
+                                              instance->ttcap.vl_slant,
+                                              &instance->transformation.matrix,
+                                              &bbox, &outline_hori_advance, 
+@@ -1207,10 +1307,27 @@
+       }
+       if( face->face->glyph->format != FT_GLYPH_FORMAT_BITMAP ) {
++#ifdef USE_GET_CBOX
++          FT_Outline_Get_CBox(&face->face->glyph->outline, &bbox);
++          ftrc = 0;
++#else
++          ftrc = FT_Outline_Get_BBox(&face->face->glyph->outline, &bbox);
++#endif
++          if( ftrc != 0 ) return FTtoXReturnCode(ftrc);
++          bbox.yMin = FLOOR64( bbox.yMin );
++          bbox.yMax = CEIL64 ( bbox.yMax );
++          ht_actual = ( bbox.yMax - bbox.yMin ) >> 6;
++          /* FreeType think a glyph with 0 height control box is invalid. 
++           * So just let X to create a empty bitmap instead. */
++          if ( ht_actual == 0 )
++              is_outline = -1;
++          else
++          {
+           ftrc = FT_Render_Glyph(face->face->glyph,FT_RENDER_MODE_MONO);
+           if( ftrc != 0 ) return FTtoXReturnCode(ftrc);
+           is_outline = 1;
+       }
++      }
+       else{
+           is_outline=0;
+       }
+@@ -1221,6 +1338,7 @@
+       if( is_outline == 1 ){
+           if( correct ){
+               if( ft_get_very_lazy_bbox( idx, face->face, instance->size, 
++                                         face->num_hmetrics,
+                                          instance->ttcap.vl_slant,
+                                          &instance->transformation.matrix,
+                                          &bbox, &outline_hori_advance, 
+diff -urbN libXfont-1.1.0/src/FreeType/ftfuncs.h libXfont-1.1.0.new/src/FreeType/ftfuncs.h
+--- xc/lib/font/FreeType/ftfuncs.h     2005-07-07 22:59:47.000000000 +0800
++++ xc/lib/font/FreeType/ftfuncs.h     2006-06-21 21:05:28.533849804 +0800
+@@ -47,6 +47,7 @@
+     char *filename;
+     FT_Face face;
+     int bitmap;
++    FT_UInt num_hmetrics;
+     struct _FTInstance *instances;
+     struct _FTInstance *active_instance;
+     struct _FTFace *next;       /* link to next face in bucket */
+diff -urbN libXfont-1.1.0/src/FreeType/ftsystem.c libXfont-1.1.0.new/src/FreeType/ftsystem.c
+--- xc/lib/font/FreeType/ftsystem.c    2005-07-09 14:36:10.000000000 +0800
++++ xc/lib/font/FreeType/ftsystem.c    2006-06-21 21:05:28.534849622 +0800
+@@ -35,7 +35,6 @@
+ #endif
+ #include <ft2build.h>
+ #include FT_CONFIG_CONFIG_H
+-#include FT_INTERNAL_DEBUG_H
+ #include FT_SYSTEM_H
+ #include FT_ERRORS_H
+ #include FT_TYPES_H
diff --git a/package/xorg/libdir-la.patch b/package/xorg/libdir-la.patch
new file mode 100644 (file)
index 0000000..90b0444
--- /dev/null
@@ -0,0 +1,153 @@
+--- xc/lib/Xft/ltmain.sh.orig  2004-04-23 12:43:42.000000000 -0600
++++ xc/lib/Xft/ltmain.sh       2007-01-13 15:04:20.000000000 -0700
+@@ -548,7 +548,7 @@
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+         $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit 1
++        #exit 1
+ #        else
+ #          $echo "$modename: using $tagname tagged configuration"
+       fi
+@@ -1652,7 +1652,7 @@
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+         $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit 1
++        #exit 1
+ #       else
+ #         $echo "$modename: using $tagname tagged configuration"
+       fi
+@@ -5362,10 +5362,13 @@
+         # At present, this check doesn't affect windows .dll's that
+         # are installed into $libdir/../bin (currently, that works fine)
+         # but it's something to keep an eye on.
+-        if test "$inst_prefix_dir" = "$destdir"; then
+-          $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+-          exit 1
+-        fi
++        #
++        # This breaks install into our staging area.  -PB
++        # 
++        #if test "$inst_prefix_dir" = "$destdir"; then
++        #  $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
++        #  exit 1
++        #fi
+         if test -n "$inst_prefix_dir"; then
+           # Stick the inst_prefix_dir data into the link command.
+--- xc/extras/fontconfig/ltmain.sh.orig        2004-04-23 12:43:42.000000000 -0600
++++ xc/extras/fontconfig/ltmain.sh     2007-01-13 15:04:20.000000000 -0700
+@@ -548,7 +548,7 @@
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+         $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit 1
++        #exit 1
+ #        else
+ #          $echo "$modename: using $tagname tagged configuration"
+       fi
+@@ -1652,7 +1652,7 @@
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+         $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit 1
++        #exit 1
+ #       else
+ #         $echo "$modename: using $tagname tagged configuration"
+       fi
+@@ -5362,10 +5362,13 @@
+         # At present, this check doesn't affect windows .dll's that
+         # are installed into $libdir/../bin (currently, that works fine)
+         # but it's something to keep an eye on.
+-        if test "$inst_prefix_dir" = "$destdir"; then
+-          $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+-          exit 1
+-        fi
++        #
++        # This breaks install into our staging area.  -PB
++        # 
++        #if test "$inst_prefix_dir" = "$destdir"; then
++        #  $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
++        #  exit 1
++        #fi
+         if test -n "$inst_prefix_dir"; then
+           # Stick the inst_prefix_dir data into the link command.
+--- xc/extras/freetype2/builds/unix/ltmain.sh.orig     2007-01-13 15:05:47.000000000 -0700
++++ xc/extras/freetype2/builds/unix/ltmain.sh  2007-01-13 15:07:55.000000000 -0700
+@@ -226,8 +226,9 @@
+       # line option must be used.
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+-        $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit $EXIT_FAILURE
++        $echo "$modename: defaulting to \`CC'"
++        $echo "$modename: if this is not correct, specify a tag with \`--tag'"
++#       exit $EXIT_FAILURE
+ #        else
+ #          $echo "$modename: using $tagname tagged configuration"
+       fi
+@@ -2147,8 +2148,14 @@
+           absdir="$abs_ladir"
+           libdir="$abs_ladir"
+         else
+-          dir="$libdir"
+-          absdir="$libdir"
++            # Adding 'libdir' from the .la file to our library search paths
++            # breaks crosscompilation horribly.  We cheat here and don't add
++            # it, instead adding the path where we found the .la.  -CL
++          dir="$abs_ladir"
++          absdir="$abs_ladir"
++          libdir="$abs_ladir"
++          #dir="$libdir"
++          #absdir="$libdir"
+         fi
+       else
+         dir="$ladir/$objdir"
+@@ -2615,6 +2622,16 @@
+               esac
+               if grep "^installed=no" $deplib > /dev/null; then
+                 path="$absdir/$objdir"
++#             This interferes with crosscompilation. -CL
++#             else
++#               eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
++#               if test -z "$libdir"; then
++#                 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
++#                 exit 1
++#               fi
++#               if test "$absdir" != "$libdir"; then
++#                 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
++#               fi
+               else
+                 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                 if test -z "$libdir"; then
+@@ -5165,6 +5182,10 @@
+           # Replace all uninstalled libtool libraries with the installed ones
+           newdependency_libs=
+           for deplib in $dependency_libs; do
++              # Replacing uninstalled with installed can easily break crosscompilation,
++              # since the installed path is generally the wrong architecture.  -CL
++              newdependency_libs="$newdependency_libs $deplib"
++              continue
+             case $deplib in
+             *.la)
+               name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
+@@ -5483,10 +5504,13 @@
+         # At present, this check doesn't affect windows .dll's that
+         # are installed into $libdir/../bin (currently, that works fine)
+         # but it's something to keep an eye on.
+-        if test "$inst_prefix_dir" = "$destdir"; then
+-          $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+-          exit $EXIT_FAILURE
+-        fi
++        #
++        # This breaks install into our staging area.  -PB
++        # 
++        # if test "$inst_prefix_dir" = "$destdir"; then
++        #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
++        #   exit $EXIT_FAILURE
++        # fi
+         if test -n "$inst_prefix_dir"; then
+           # Stick the inst_prefix_dir data into the link command.
index 9bfd567263946f2b685356b196573e2988419471..389801e1d8d01775355119eee35b1710c1d5511a 100644 (file)
@@ -1,6 +1,6 @@
 --- xc/config/cf/host.def~     Thu May 12 15:28:01 MDT 2005
 +++ xc/config/cf/host.def      Thu May 12 15:28:01 MDT 2005
-@@ -0,0 +1,44 @@
+@@ -0,0 +1,45 @@
 +#define KDriveXServer         YES
 +#define TinyXServer           YES
 +#define XfbdevServer          YES
@@ -10,7 +10,8 @@
 +
 +#define HasFreetype2          YES
 +#define Freetype2Dir          REPLACE_STAGING_DIR
-+#define HasFontconfig         NO
++#define HasFontconfig         YES
++#define FontconfigDir         REPLACE_STAGING_DIR
 +#define HasLibpng             YES
 +#define HasZlib               YES
 +#define HaveLib64             NO
index 7477a4606eeba86a180de83f22c075180d170b30..3f913458a75e7efdc99eec6f539c9d3f3a5bc78b 100644 (file)
@@ -12,7 +12,7 @@ XORG_APPS:=xlsfonts/xlsfonts xmodmap/xmodmap xinit/startx \
        mkfontscale/mkfontscale mkfontdir/mkfontdir \
        #xterm/xterm
 
-XORG_LIBS:= Xft fontconfig Xrender Xaw Xmu Xt \
+XORG_LIBS:= Xft Xrender Xaw Xmu Xt \
        SM ICE Xpm Xp Xext X11 Xmuu Xxf86misc
 
 
@@ -73,9 +73,12 @@ endif
 $(DL_DIR)/$(XORG_SOURCE):
        $(WGET) -P $(DL_DIR) $(XORG_SITE)/$(XORG_SOURCE)
 
-$(XORG_DIR)/.configured: $(DL_DIR)/$(XORG_SOURCE)
+$(XORG_DIR)/.unpacked: $(DL_DIR)/$(XORG_SOURCE)
        $(XORG_CAT) $(DL_DIR)/$(XORG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
        toolchain/patch-kernel.sh $(XORG_DIR) package/xorg/ \*.patch
+       touch $(XORG_DIR)/.unpacked
+
+$(XORG_DIR)/.configured: $(XORG_DIR)/.unpacked
        $(SED) 's:REPLACE_STAGING_DIR:$(STAGING_DIR):g' $(XORG_HOST_DEF)
        $(SED) 's:REPLACE_GCCINC_DIR:$(shell $(TARGET_CROSS)gcc -print-file-name=include):g' $(XORG_CF)
        $(SED) 's:REPLACE_STAGING_DIR:$(STAGING_DIR):g' $(XORG_CF)
@@ -98,10 +101,10 @@ $(XORG_XSERVER): $(XORG_DIR)/.configured
 
 $(STAGING_DIR)$(TARGET_LIBX)/libX11.so.6.2: $(XORG_XSERVER)
        -mkdir -p $(STAGING_DIR)/usr/X11R6
+       ln -fs ../../include $(STAGING_DIR)/usr/X11R6/include
        ln -fs ../../lib $(STAGING_DIR)$(TARGET_LIBX)
        ( cd $(XORG_DIR); $(MAKE) \
                DESTDIR=$(STAGING_DIR) install XCURSORGEN=xcursorgen MKFONTSCALE=mkfontscale )
-       $(SED) 's,/usr/X11R6,$(STAGING_DIR)/usr/X11R6,' $(STAGING_DIR)/usr/X11R6/lib/pkgconfig/*.pc
        touch -c $(STAGING_DIR)$(TARGET_LIBX)/libX11.so.6.2
 
 $(TARGET_XSERVER): $(XORG_XSERVER)
@@ -146,8 +149,7 @@ $(XORG_LIBX)/libX11.so.6.2: $(TARGET_XSERVER)
 $(TARGET_DIR)/usr/bin/mcookie: package/xorg/mcookie.c
        $(TARGET_CROSS)gcc -Wall -Os -s package/xorg/mcookie.c -o $(TARGET_DIR)/usr/bin/mcookie
 
-xorg: zlib png pkgconfig expat freetype \
-       $(STAGING_DIR)$(TARGET_LIBX)/libX11.so.6.2 \
+xorg: zlib png pkgconfig expat fontconfig $(STAGING_DIR)$(TARGET_LIBX)/libX11.so.6.2 \
        $(XORG_LIBX)/libX11.so.6.2 $(TARGET_DIR)/usr/bin/mcookie
 
 xorg-source: $(DL_DIR)/$(XORG_SOURCE)