summaryrefslogtreecommitdiff
path: root/package/libgpg-error/Makefile
blob: 23067acda55023185990d09a61a199c05c9c8e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${ADK_TOPDIR}/rules.mk

PKG_NAME:=		libgpg-error
PKG_VERSION:=		1.47
PKG_RELEASE:=		1
PKG_HASH:=		9e3c670966b96ecc746c28c2c419541e3bcb787d1a73930f5e5f5e1bcbbb9bdb
PKG_DESCR:=		helper library for common error codes and descriptions
PKG_SECTION:=		libs/misc
PKG_URL:=		http://www.gnupg.org/
PKG_SITES:=		https://www.gnupg.org/ftp/gcrypt/libgpg-error/
PKG_OPTS:=		dev
PKG_NOPARALLEL:=	1

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.bz2

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-unknown-linux-gnu
endif
ifeq ($(ADK_TARGET_ARCH_X86_64),y)
LIBGPG_PREFIX:=		x86_64-unknown-linux-gnu
endif
ifeq ($(ADK_TARGET_ARCH_XTENSA),y)
LIBGPG_PREFIX:=		xtensa-unknown-linux-gnu
endif

CONFIGURE_ARGS+=	--disable-tests \
			--disable-languages

post-extract:
	cd $(WRKSRC)/src/syscfg && ( \
	ln -s lock-obj-pub.$(LIBGPG_PREFIX).h \
		lock-obj-pub.$(GNU_TARGET_NAME).h ; \
	ln -s lock-obj-pub.$(LIBGPG_PREFIX).h \
		lock-obj-pub.$(ADK_TARGET_LINUXTYPE)-$(ADK_TARGET_SUFFIX).h )

libgpg-error-install:
	${INSTALL_DIR} ${IDIR_LIBGPG_ERROR}/usr/lib
	${CP} ${WRKINST}/usr/lib/libgpg-error.so* \
		${IDIR_LIBGPG_ERROR}/usr/lib

include ${ADK_TOPDIR}/mk/pkg-bottom.mk