libgpg-error: fix riscv64
[openadk.git] / package / libgpg-error / Makefile
blobaa139d40e1e3f0ae3e4298ec15263c6e9ae30c3e
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= libgpg-error
7 PKG_VERSION:= 1.47
8 PKG_RELEASE:= 1
9 PKG_HASH:= 9e3c670966b96ecc746c28c2c419541e3bcb787d1a73930f5e5f5e1bcbbb9bdb
10 PKG_DESCR:= helper library for common error codes and descriptions
11 PKG_SECTION:= libs/misc
12 PKG_URL:= http://www.gnupg.org/
13 PKG_SITES:= https://www.gnupg.org/ftp/gcrypt/libgpg-error/
14 PKG_OPTS:= dev
15 PKG_NOPARALLEL:= 1
17 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
19 include ${ADK_TOPDIR}/mk/package.mk
21 $(eval $(call PKG_template,LIBGPG_ERROR,libgpg-error,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
23 ifeq ($(ADK_TARGET_ARCH_AARCH64),y)
24 LIBGPG_PREFIX:= aarch64-unknown-linux-gnu
25 endif
26 ifeq ($(ADK_TARGET_ARCH_ARM),y)
27 LIBGPG_PREFIX:= arm-unknown-linux-gnueabi
28 endif
29 ifeq ($(ADK_TARGET_ARCH_M68K),y)
30 LIBGPG_PREFIX:= m68k-unknown-linux-gnu
31 endif
32 ifeq ($(ADK_TARGET_ARCH_MIPS),y)
33 LIBGPG_PREFIX:= mips-unknown-linux-gnu
34 endif
35 ifeq ($(ADK_TARGET_ARCH_MIPS64),y)
36 LIBGPG_PREFIX:= mips64el-unknown-linux-gnuabi64
37 endif
38 ifeq ($(ADK_TARGET_ARCH_NIOS2),y)
39 LIBGPG_PREFIX:= nios2-unknown-linux-gnu
40 endif
41 ifeq ($(ADK_TARGET_ARCH_PPC),y)
42 LIBGPG_PREFIX:= powerpc-unknown-linux-gnu
43 endif
44 ifeq ($(ADK_TARGET_ARCH_PPC64),y)
45 LIBGPG_PREFIX:= powerpc64-unknown-linux-gnu
46 endif
47 ifeq ($(ADK_TARGET_ARCH_RISCV64),y)
48 LIBGPG_PREFIX:= riscv64-unknown-linux-gnu
49 endif
50 ifeq ($(ADK_TARGET_ARCH_SH),y)
51 LIBGPG_PREFIX:= sh4-unknown-linux-gnu
52 endif
53 ifeq ($(ADK_TARGET_ARCH_SPARC),y)
54 LIBGPG_PREFIX:= sparc-unknown-linux-gnu
55 endif
56 ifeq ($(ADK_TARGET_ARCH_SPARC64),y)
57 LIBGPG_PREFIX:= sparc64-unknown-linux-gnu
58 endif
59 ifeq ($(ADK_TARGET_ARCH_X86),y)
60 LIBGPG_PREFIX:= i686-unknown-linux-gnu
61 endif
62 ifeq ($(ADK_TARGET_ARCH_X86_64),y)
63 LIBGPG_PREFIX:= x86_64-unknown-linux-gnu
64 endif
65 ifeq ($(ADK_TARGET_ARCH_XTENSA),y)
66 LIBGPG_PREFIX:= xtensa-unknown-linux-gnu
67 endif
69 CONFIGURE_ARGS+= --disable-tests \
70 --disable-languages
72 post-extract:
73 cd $(WRKSRC)/src/syscfg && ( \
74 ln -s lock-obj-pub.$(LIBGPG_PREFIX).h \
75 lock-obj-pub.$(GNU_TARGET_NAME).h ; \
76 ln -s lock-obj-pub.$(LIBGPG_PREFIX).h \
77 lock-obj-pub.$(ADK_TARGET_LINUXTYPE)-$(ADK_TARGET_SUFFIX).h )
79 libgpg-error-install:
80 ${INSTALL_DIR} ${IDIR_LIBGPG_ERROR}/usr/lib
81 ${CP} ${WRKINST}/usr/lib/libgpg-error.so* \
82 ${IDIR_LIBGPG_ERROR}/usr/lib
84 include ${ADK_TOPDIR}/mk/pkg-bottom.mk