install in /usr instead of /usr/local/,
[openwrt.git] / package / ipkg / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=ipkg
6 PKG_VERSION:=0.99.154
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=b60aeea3b86cecf0eb26b161d122fbcc
9
10 PKG_SOURCE_URL:=http://www.handhelds.org/packages/ipkg \
11 http://www.gtlib.gatech.edu/pub/handhelds.org/packages/ipkg \
12 http://ftp.gwdg.de/pub/linux/handhelds/packages/ipkg
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_CAT:=zcat
15
16 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
18
19 include $(TOPDIR)/package/rules.mk
20
21 $(eval $(call PKG_template,IPKG,ipkg,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23 $(PKG_BUILD_DIR)/.configured:
24 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 $(DISABLE_LARGEFILE) \
48 $(DISABLE_NLS) \
49 )
50 touch $@
51
52 $(PKG_BUILD_DIR)/.built:
53 rm -rf $(PKG_INSTALL_DIR)
54 mkdir -p $(PKG_INSTALL_DIR)
55 $(MAKE) -C $(PKG_BUILD_DIR) \
56 CC=$(TARGET_CC) \
57 DESTDIR="$(PKG_INSTALL_DIR)" \
58 all install
59 touch $@
60
61 $(IPKG_IPKG):
62 install -d -m0755 $(IDIR_IPKG)/bin
63 cp -fpR $(PKG_INSTALL_DIR)/bin/ipkg-cl $(IDIR_IPKG)/bin/ipkg
64 install -d -m0755 $(IDIR_IPKG)/usr/lib
65 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libipkg.so.* $(IDIR_IPKG)/usr/lib/
66 $(RSTRIP) $(IDIR_IPKG)
67 $(IPKG_BUILD) $(IDIR_IPKG) $(PACKAGE_DIR)
This page took 0.040717 seconds and 5 git commands to generate.