opkg depends on curl
[openwrt.git] / package / opkg / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=opkg
10 PKG_REV:=4561
11 PKG_VERSION:=$(PKG_REV)
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=svn
15 PKG_SOURCE_VERSION:=$(PKG_REV)
16 PKG_SOURCE_SUBDIR:=opkg-$(PKG_VERSION)
17 PKG_SOURCE_URL:=http://svn.openmoko.org/trunk/src/target/opkg/
18 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
19 PKG_FIXUP = libtool
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/opkg
23 SECTION:=base
24 CATEGORY:=Base system
25 DEPENDS:=+libcurl
26 TITLE:=opkg package management system
27 URL:=http://wiki.openmoko.org/wiki/Opkg
28 endef
29
30 define Package/opkg/description
31 Lightweight package management system
32 opkg is the opkg Package Management System, for handling
33 installation and removal of packages on a system. It can
34 recursively follow dependencies and download all packages
35 necessary to install a particular package.
36
37 opkg knows how to install both .ipk and .deb packages.
38 endef
39
40 EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/lib
41 EXTRA_LDFLAGS+=-L$(STAGING_DIR)/usr/lib -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
42
43 CONFIGURE_ARGS += \
44 --disable-curl \
45 --disable-gpg \
46
47 define Build/Configure
48 (cd $(PKG_BUILD_DIR); \
49 ./autogen.sh \
50 );
51 $(call Build/Configure/Default)
52 endef
53
54 define Build/Compile
55 $(MAKE) -C $(PKG_BUILD_DIR) \
56 CC=$(TARGET_CC) \
57 DESTDIR="$(PKG_INSTALL_DIR)" \
58 all install
59 endef
60
61 define Package/opkg/install
62 $(INSTALL_DIR) $(1)/etc
63 $(INSTALL_DATA) ./files/opkg.conf $(1)/etc/
64 $(SED) 's,$$$$S,$(BOARD),g' $(1)/etc/opkg.conf
65 $(INSTALL_BIN) ./files/postinst $(1)/CONTROL/postinst
66 $(INSTALL_DIR) $(1)/bin
67 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/opkg-cl $(1)/bin/opkg
68 $(INSTALL_DIR) $(1)/usr/lib
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopkg.so.* $(1)/usr/lib/
70 endef
71
72 define Build/InstallDev
73 mkdir -p $(1)/usr/include
74 $(CP) $(PKG_INSTALL_DIR)/usr/include/libopkg $(1)/usr/include/
75 endef
76
77 $(eval $(call BuildPackage,opkg))
This page took 0.054104 seconds and 5 git commands to generate.