From 4d06f9208a7ebd10076a841899d4f4d5875582d8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 11 Oct 2008 11:02:23 +0000 Subject: [PATCH] merge build system changes from trunk to 8.09 SVN-Revision: 12952 --- package/libnl/patches/150-fix-libnl-pc-config.patch | 13 +++++++++++++ tools/automake/Makefile | 5 ++++- tools/automake/files/aclocal | 10 ++++++++++ tools/pkg-config/files/pkg-config | 2 +- 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 package/libnl/patches/150-fix-libnl-pc-config.patch create mode 100644 tools/automake/files/aclocal diff --git a/package/libnl/patches/150-fix-libnl-pc-config.patch b/package/libnl/patches/150-fix-libnl-pc-config.patch new file mode 100644 index 0000000000..ccdbc355a8 --- /dev/null +++ b/package/libnl/patches/150-fix-libnl-pc-config.patch @@ -0,0 +1,13 @@ +diff --git a/libnl-1.pc.in b/libnl-1.pc.in +index 7ac8413..66a7cd9 100644 +--- a/libnl-1.pc.in ++++ b/libnl-1.pc.in +@@ -1,7 +1,7 @@ + prefix=@prefix@ + exec_prefix=@prefix@ + libdir=@libdir@ +-includedir=@prefix@/include ++includedir=@includedir@ + + Name: libnl + Description: Convenience library for netlink sockets diff --git a/tools/automake/Makefile b/tools/automake/Makefile index cf39cbda8b..2b8a6f3450 100644 --- a/tools/automake/Makefile +++ b/tools/automake/Makefile @@ -1,4 +1,4 @@ -# +# # Copyright (C) 2006 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. @@ -27,6 +27,9 @@ endef define Build/Install $(MAKE) -C $(PKG_BUILD_DIR) install + mv $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal.real + $(INSTALL_BIN) ./files/aclocal $(STAGING_DIR_HOST)/bin + ln -f $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.9 endef define Build/Clean diff --git a/tools/automake/files/aclocal b/tools/automake/files/aclocal new file mode 100644 index 0000000000..60278e2ab0 --- /dev/null +++ b/tools/automake/files/aclocal @@ -0,0 +1,10 @@ +#!/usr/bin/env sh +if [ -d ${STAGING_DIR}/host/share/aclocal ]; then + aclocal_include_dirs="-I ${STAGING_DIR}/host/share/aclocal" +else + aclocal_include_dirs= +fi +if [ -d ${STAGING_DIR}/usr/share/aclocal ]; then + aclocal_include_dirs="$aclocal_include_dirs -I ${STAGING_DIR}/usr/share/aclocal" +fi +aclocal.real $aclocal_include_dirs $@ diff --git a/tools/pkg-config/files/pkg-config b/tools/pkg-config/files/pkg-config index 31cfd0d83d..a3d73700f9 100755 --- a/tools/pkg-config/files/pkg-config +++ b/tools/pkg-config/files/pkg-config @@ -1,3 +1,3 @@ #!/bin/sh -pkg-config.real $@ --define-variable=libdir=${STAGING_DIR}/usr/lib --define-variable=includedir=${STAGING_DIR}/usr/include +pkg-config.real $@ --define-variable=prefix=${STAGING_DIR}/usr/ --define-variable=exec_prefix=${STAGING_DIR}/usr/ -- 2.30.2