blob: 593e1bffff8d64c0d7916339f9a317a1f0d22a36 (
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
|
# 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:= opkg
PKG_VERSION:= 0.3.6
PKG_RELEASE:= 1
PKG_HASH:= f607f0e61be8cf8a3bbd0d2dccd9ec9e9b6c21dd4307b671c600d6eeaf84d30b
PKG_DESCR:= embedded package manager
PKG_DEPENDS:= libcurl libarchive gpgme libressl xz
PKG_BUILDDEP:= curl libarchive gpgme xz libressl
HOST_BUILDDEP:= libarchive-host curl-host
PKG_NEEDS:= threads
PKG_SECTION:= sys/misc
PKG_URL:= http://git.yoctoproject.org/cgit/cgit.cgi/opkg/
PKG_SITES:= http://downloads.yoctoproject.org/releases/opkg/
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
include $(ADK_TOPDIR)/mk/host.mk
include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call HOST_template,OPKG,opkg,$(PKG_VERSION)-${PKG_RELEASE}))
$(eval $(call PKG_template,OPKG,opkg,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
AUTOTOOL_STYLE:= autoreconf
HOST_CONFIGURE_ARGS+= --disable-openssl \
--disable-gpg \
--disable-xz \
--disable-ssl-curl
CONFIGURE_ARGS+= --disable-bzip2 \
--enable-ssl-curl \
--enable-openssl \
--enable-xz \
--enable-gpg
opkg-install:
$(INSTALL_DIR) $(IDIR_OPKG)/usr/bin
$(INSTALL_DIR) $(IDIR_OPKG)/usr/lib
$(CP) $(WRKINST)/usr/lib/libopkg.so* \
$(IDIR_OPKG)/usr/lib
$(INSTALL_BIN) $(WRKINST)/usr/bin/opkg* \
$(IDIR_OPKG)/usr/bin
include ${ADK_TOPDIR}/mk/host-bottom.mk
include ${ADK_TOPDIR}/mk/pkg-bottom.mk
|