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.
7 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
14 PKG_SOURCE_URL
:=http
://fedorahosted.org
/releases
/e
/l
/elfutils
/
16 include $(INCLUDE_DIR
)/package.mk
18 define Package
/elfutils
23 URL
:=https
://fedorahosted.org
/releases
/e
/l
/elfutils
/
26 CONFIGURE_OPTS
+= --disable-generic
29 $(MAKE
) -C
$(PKG_BUILD_DIR
)/libelf \
30 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/lib/libintl/include" \
31 LDFLAGS
="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/libintl/lib -lintl" \
32 DESTDIR
="$(PKG_INSTALL_DIR)"
35 define Build
/InstallDev
36 $(INSTALL_DIR
) $(1)/usr
/include
37 $(CP
) $(PKG_BUILD_DIR
)/libelf
/libelf.h
$(1)/usr
/include/
38 $(INSTALL_DIR
) $(1)/usr
/lib
39 $(CP
) $(PKG_BUILD_DIR
)/libelf
/libelf.
{a
,so
*} $(1)/usr
/lib
/
42 define Package
/elfutils
/install
43 $(INSTALL_DIR
) $(1)/usr
/lib
44 $(CP
) $(PKG_BUILD_DIR
)/libelf
/libelf.so
* $(1)/usr
/lib
/
47 $(eval
$(call BuildPackage
,elfutils
))