2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_HASH
:=591a9b4ec81c1f2042a97aa60564e0cb79d041c52faa7416acb38bc95bd2c76d
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 http
://distfiles.gentoo.org
/distfiles
/ \
18 http
://distcache.freebsd.org
/ports-distfiles
/
19 HOST_BUILD_PARALLEL
:=1
21 HOST_FIXUP
:=autoreconf
23 include $(INCLUDE_DIR
)/host-build.mk
27 HOST_CONFIGURE_ARGS
+= \
32 (cd
$(HOST_BUILD_DIR
)/$(3); \
33 $(HOST_CONFIGURE_CMD
) \
34 $(HOST_CONFIGURE_ARGS
); \
40 +$(MAKE
) $(HOST_JOBS
) -C
$(HOST_BUILD_DIR
)/lib
/ libelf.a
44 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/{lib
/pkgconfig
,include/libelf
}
45 $(CP
) $(HOST_BUILD_DIR
)/lib
/{elf_repl.h
,gelf.h
,libelf.h
,nlist.h
,sys_elf.h
} \
46 $(STAGING_DIR_HOST
)/include/libelf
/
47 $(CP
) $(HOST_BUILD_DIR
)/lib
/libelf.a
$(STAGING_DIR_HOST
)/lib
/
48 $(CP
) $(HOST_BUILD_DIR
)/libelf.
pc $(STAGING_DIR_HOST
)/lib
/pkgconfig
/
52 rm -rf
$(STAGING_DIR_HOST
)/include/libelf
53 rm -f
$(STAGING_DIR_HOST
)/lib
/libelf.a
54 rm -f
$(STAGING_DIR_HOST
)/lib
/pkgconfig
/libelf.
pc
55 $(call Host
/Clean
/Default
)
58 $(eval
$(call HostBuild
))