From 7ef17456a177d5a0e344642c06803dab04173cd6 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 22 Aug 2016 20:16:19 +0200 Subject: libgpg-error: switch to buildroot way and create symlinks --- package/libgpg-error/Makefile | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'package/libgpg-error/Makefile') diff --git a/package/libgpg-error/Makefile b/package/libgpg-error/Makefile index 6a82af05c..3efe09733 100644 --- a/package/libgpg-error/Makefile +++ b/package/libgpg-error/Makefile @@ -20,6 +20,51 @@ include ${ADK_TOPDIR}/mk/package.mk $(eval $(call PKG_template,LIBGPG_ERROR,libgpg-error,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) +ifeq ($(ADK_TARGET_ARCH_AARCH64),y) +LIBGPG_PREFIX:= aarch64-unknown-linux-gnu +endif +ifeq ($(ADK_TARGET_ARCH_ARM),y) +LIBGPG_PREFIX:= arm-unknown-linux-gnueabi +endif +ifeq ($(ADK_TARGET_ARCH_M68K),y) +LIBGPG_PREFIX:= m68k-unknown-linux-gnu +endif +ifeq ($(ADK_TARGET_ARCH_MIPS),y) +LIBGPG_PREFIX:= mips-unknown-linux-gnu +endif +ifeq ($(ADK_TARGET_ARCH_MIPS64),y) +LIBGPG_PREFIX:= mips64el-unknown-linux-gnuabi64 +endif +ifeq ($(ADK_TARGET_ARCH_NIOS2),y) +LIBGPG_PREFIX:= nios2-unknown-linux-gnu +endif +ifeq ($(ADK_TARGET_ARCH_PPC),y) +LIBGPG_PREFIX:= powerpc-unknown-linux-gnu +endif +ifeq ($(ADK_TARGET_ARCH_PPC64),y) +LIBGPG_PREFIX:= powerpc64-unknown-linux-gnu +endif +ifeq ($(ADK_TARGET_ARCH_SH),y) +LIBGPG_PREFIX:= sh4-unknown-linux-gnu +endif +ifeq ($(ADK_TARGET_ARCH_SPARC),y) +LIBGPG_PREFIX:= sparc-unknown-linux-gnu +endif +ifeq ($(ADK_TARGET_ARCH_SPARC64),y) +LIBGPG_PREFIX:= sparc64-unknown-linux-gnu +endif +ifeq ($(ADK_TARGET_ARCH_X86),y) +LIBGPG_PREFIX:= i686-pc-linux-gnu +endif +ifeq ($(ADK_TARGET_ARCH_X86_64),y) +LIBGPG_PREFIX:= x86_64-pc-linux-gnu +endif + +post-extract: + cd $(WRKSRC)/src/syscfg && \ + ln -s lock-obj-pub.$(LIBGPG_PREFIX).h \ + lock-obj-pub.$(GNU_TARGET_NAME).h + libgpg-error-install: ${INSTALL_DIR} ${IDIR_LIBGPG_ERROR}/usr/lib ${CP} ${WRKINST}/usr/lib/libgpg-error.so* \ -- cgit v1.2.3