3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=b60aeea3b86cecf0eb26b161d122fbcc
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
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 include $(TOPDIR
)/package
/rules.mk
21 $(eval
$(call PKG_template
,IPKG
,ipkg
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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" \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
52 $(PKG_BUILD_DIR
)/.built
:
53 rm -rf
$(PKG_INSTALL_DIR
)
54 mkdir
-p
$(PKG_INSTALL_DIR
)
55 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
57 DESTDIR
="$(PKG_INSTALL_DIR)" \
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
)