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
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
/
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
26 ifeq ($(ADK_TARGET_ARCH_ARM
),y
)
27 LIBGPG_PREFIX
:= arm-unknown-linux-gnueabi
29 ifeq ($(ADK_TARGET_ARCH_M68K
),y
)
30 LIBGPG_PREFIX
:= m68k-unknown-linux-gnu
32 ifeq ($(ADK_TARGET_ARCH_MIPS
),y
)
33 LIBGPG_PREFIX
:= mips-unknown-linux-gnu
35 ifeq ($(ADK_TARGET_ARCH_MIPS64
),y
)
36 LIBGPG_PREFIX
:= mips64el-unknown-linux-gnuabi64
38 ifeq ($(ADK_TARGET_ARCH_NIOS2
),y
)
39 LIBGPG_PREFIX
:= nios2-unknown-linux-gnu
41 ifeq ($(ADK_TARGET_ARCH_PPC
),y
)
42 LIBGPG_PREFIX
:= powerpc-unknown-linux-gnu
44 ifeq ($(ADK_TARGET_ARCH_PPC64
),y
)
45 LIBGPG_PREFIX
:= powerpc64-unknown-linux-gnu
47 ifeq ($(ADK_TARGET_ARCH_RISCV64
),y
)
48 LIBGPG_PREFIX
:= riscv64-unknown-linux-gnu
50 ifeq ($(ADK_TARGET_ARCH_SH
),y
)
51 LIBGPG_PREFIX
:= sh4-unknown-linux-gnu
53 ifeq ($(ADK_TARGET_ARCH_SPARC
),y
)
54 LIBGPG_PREFIX
:= sparc-unknown-linux-gnu
56 ifeq ($(ADK_TARGET_ARCH_SPARC64
),y
)
57 LIBGPG_PREFIX
:= sparc64-unknown-linux-gnu
59 ifeq ($(ADK_TARGET_ARCH_X86
),y
)
60 LIBGPG_PREFIX
:= i686-unknown-linux-gnu
62 ifeq ($(ADK_TARGET_ARCH_X86_64
),y
)
63 LIBGPG_PREFIX
:= x86_64-unknown-linux-gnu
65 ifeq ($(ADK_TARGET_ARCH_XTENSA
),y
)
66 LIBGPG_PREFIX
:= xtensa-unknown-linux-gnu
69 CONFIGURE_ARGS
+= --disable-tests \
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
)
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