aboutsummaryrefslogtreecommitdiff
path: root/gnunet-build/packages/libs/libgcrypt/Buildrules
blob: 991ecacd8fcc0090e31b4e706fd3c23793d5d792 (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
VERSION="1.6.0"
DESCRIPTION="This is a general purpose cryptographic library based on the code from GnuPG."
SOURCE_URI="ftp://ftp.gnupg.org/gcrypt/${NAME}/${NAME}-${VERSION}.tar.bz2"
PATCHES="align"
BDEPENDS="${BDEPENDS} libs/libgpg-error"

pkg_compile() {
        export TEMP_DIR="${T}"
        emconfigure ./configure --prefix=/usr \
                                --sysconfdir=/etc \
				--host=i386-emscripten-linux-gnu \
				--enable-random=linux \
				--disable-threads \
				--disable-asm \
				--disable-avx-support \
				--disable-avx2-support \
				--disable-neon-support \
				--disable-drng-support \
				--disable-padlock-support \
				--disable-amd64-as-feature-detection \
				--with-gpg-error-prefix="${SYSROOT}/usr" \
				ac_cv_sizeof_unsigned_short=2 \
				ac_cv_sizeof_unsigned_int=4 \
				ac_cv_sizeof_unsigned_long=4 \
				ac_cv_sizeof_unsigned_long_long=8 \
				ac_cv_func_syslog=no \
				ac_cv_func_mlock=no \
				gnupg_cv_mlock_is_in_sys_mman=no \
				gcry_cv_have_asm=no \
				gcry_cv_have___asm__=no \
				gcry_cv_gcc_arm_platform_as_ok=no \
				gcry_cv_gcc_inline_asm_bmi2=no \
				gcry_cv_gcc_inline_asm_ssse3=no \
				gcry_cv_gcc_inline_asm_pclmul=no \
				CPPFLAGS="-I${SYSROOT}/usr/include" \
				LDFLAGS="-L${SYSROOT}/usr/lib"
        emmake make SUBDIRS="compat mpi cipher random src" \
		LDFLAGS="${LDFLAGS} -Wc,--ignore-dynamic-linking"
	#emmake make SUBDIRS="tests"
	#touch tests/*.o
	#EMMAKEN_JUST_CONFIGURE=1 EMCONFIGURE_JS=1 emmake make check \
	#  SUBDIRS="tests" \
	#  LDFLAGS="-L${SYSROOT}/usr/lib -Wc,-s,TOTAL_MEMORY=33554432"
        emmake make SUBDIRS="compat mpi cipher random src" \
		DESTDIR="${D}" install
}

# vim: syntax=sh