3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=3585b5b204135e51e0efc9084b3e028b
10 PKG_SOURCE_URL
:=ftp
://ftp.gnutls.org
/pub
/gnutls
/ \
11 ftp
://ftp.gnupg.org
/gcrypt
/alpha
/gnutls
/ \
12 http
://www.mirrors.wiretapped.net
/security
/network-security
/gnutls
/ \
13 ftp
://ftp.mirrors.wiretapped.net
/pub
/security
/network-security
/gnutls
/ \
14 http
://josefsson.org
/gnutls
/releases
/
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
19 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
21 include $(TOPDIR
)/package
/rules.mk
23 $(eval
$(call PKG_template
,LIBGNUTLS
,libgnutls
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
24 $(eval
$(call PKG_template
,GNUTLS_UTILS
,gnutls-utils
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
25 $(eval
$(call PKG_template
,LIBGNUTLS_OPENSSL
,libgnutls-openssl
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
27 $(PKG_BUILD_DIR
)/.configured
:
28 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
29 touch configure.in
; \
30 touch acinclude.m4
; \
35 $(TARGET_CONFIGURE_OPTS
) \
36 CFLAGS
="$(TARGET_CFLAGS)" \
37 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
38 LDFLAGS
="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
40 --target
=$(GNU_TARGET_NAME
) \
41 --host
=$(GNU_TARGET_NAME
) \
42 --build
=$(GNU_HOST_NAME
) \
48 --datadir=/usr
/share \
49 --includedir=/usr
/include \
50 --infodir=/usr
/share
/info \
52 --libexecdir
=/usr
/lib \
53 --localstatedir
=/var \
54 --mandir=/usr
/share
/man \
58 $(DISABLE_LARGEFILE
) \
62 --disable-srp-authentication \
63 --disable-anon-authentication \
64 --disable-openpgp-authentication \
65 --with-included-opencdk
=yes \
66 --with-included-libtasn1
=yes \
67 --with-included-libcfg
=yes \
73 $(PKG_BUILD_DIR
)/.built
:
74 rm -rf
$(PKG_INSTALL_DIR
)
75 mkdir
-p
$(PKG_INSTALL_DIR
)
76 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
77 DESTDIR
="$(PKG_INSTALL_DIR)" \
82 install -m0755
-d
$(IDIR_LIBGNUTLS
)/usr
/lib
83 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libgnutls
{,-extra
}.so.
* $(IDIR_LIBGNUTLS
)/usr
/lib
/
84 $(RSTRIP
) $(IDIR_LIBGNUTLS
)
85 $(IPKG_BUILD
) $(IDIR_LIBGNUTLS
) $(PACKAGE_DIR
)
87 $(IPKG_LIBGNUTLS_OPENSSL
):
88 install -m0755
-d
$(IDIR_LIBGNUTLS_OPENSSL
)/usr
/lib
89 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libgnutls-openssl.so.
* $(IDIR_LIBGNUTLS_OPENSSL
)/usr
/lib
/
90 $(RSTRIP
) $(IDIR_LIBGNUTLS_OPENSSL
)
91 $(IPKG_BUILD
) $(IDIR_LIBGNUTLS_OPENSSL
) $(PACKAGE_DIR
)
94 install -m0755
-d
$(IDIR_GNUTLS_UTILS
)/usr
/bin
95 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/certtool
$(IDIR_GNUTLS_UTILS
)/usr
/bin
/
96 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/gnutls-
{cli
,serv
} $(IDIR_GNUTLS_UTILS
)/usr
/bin
/
97 $(RSTRIP
) $(IDIR_GNUTLS_UTILS
)
98 $(IPKG_BUILD
) $(IDIR_GNUTLS_UTILS
) $(PACKAGE_DIR
)
100 $(STAGING_DIR
)/usr
/lib
/libgnutls.so
: $(PKG_BUILD_DIR
)/.built
101 mkdir
-p
$(STAGING_DIR
)/usr
/bin
102 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/libgnutls
{,-extra
}-config
$(STAGING_DIR
)/usr
/bin
/
103 mkdir
-p
$(STAGING_DIR
)/usr
/include
104 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/gnutls
$(STAGING_DIR
)/usr
/include/
105 mkdir
-p
$(STAGING_DIR
)/usr
/lib
106 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libgnutls
{,-extra
,-openssl
}.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
107 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
108 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/gnutls
{,-extra
}.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
109 mkdir
-p
$(STAGING_DIR
)/usr
/share
/aclocal
110 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/libgnutls
{,-extra
}.m4
$(STAGING_DIR
)/usr
/share
/aclocal
/
113 install-dev
: $(STAGING_DIR
)/usr
/lib
/libgnutls.so
117 $(STAGING_DIR
)/usr
/bin
/libgnutls
{,-extra
}-config \
118 $(STAGING_DIR
)/usr
/include/gnutls \
119 $(STAGING_DIR
)/usr
/lib
/libgnutls
{,-extra
,-openssl
}.
{a
,so
*} \
120 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/gnutls
{,-extra
}.
pc \
121 $(STAGING_DIR
)/usr
/share
/aclocal
/libgnutls
{,-extra
}.m4 \
123 compile-targets
: install-dev
124 clean-targets
: uninstall-dev
127 make
-C
$(PKG_BUILD_DIR
) clean
128 rm -f
$(PKG_BUILD_DIR
)/.built