3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=c1daf069367871350ece779b7de20047
10 PKG_SOURCE_URL
:=http
://www.mr511.de
/software
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,LIBELF
,libelf
,$(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" \
28 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
29 mr_cv_target_elf
=yes \
31 --target
=$(GNU_TARGET_NAME
) \
32 --host
=$(GNU_TARGET_NAME
) \
33 --build
=$(GNU_HOST_NAME
) \
39 --datadir=/usr
/share \
40 --includedir=/usr
/include \
41 --infodir=/usr
/share
/info \
43 --libexecdir
=/usr
/lib \
44 --localstatedir
=/var \
45 --mandir=/usr
/share
/man \
48 $(DISABLE_LARGEFILE
) \
53 touch
$(PKG_BUILD_DIR
)/.configured
55 $(PKG_BUILD_DIR
)/.built
:
56 $(MAKE
) -C
$(PKG_BUILD_DIR
) -j1 \
57 CC
=$(TARGET_CC
) LD
=$(TARGET_CROSS
)ld ARCH
=$(ARCH
)
58 mkdir
-p
$(PKG_INSTALL_DIR
)
59 $(MAKE
) -C
$(PKG_BUILD_DIR
) -j1 \
60 instroot
="$(PKG_INSTALL_DIR)" \
62 touch
$(PKG_BUILD_DIR
)/.built
65 install -d
-m0755
$(IDIR_LIBELF
)/usr
/lib
66 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libelf.so.
* $(IDIR_LIBELF
)/usr
/lib
/
67 $(RSTRIP
) $(IDIR_LIBELF
)
68 $(IPKG_BUILD
) $(IDIR_LIBELF
) $(PACKAGE_DIR
)
70 $(STAGING_DIR
)/usr
/lib
/libelf.so
: $(PKG_BUILD_DIR
)/.built
71 mkdir
-p
$(STAGING_DIR
)/usr
/include
72 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/libelf
* $(STAGING_DIR
)/usr
/include/
73 mkdir
-p
$(STAGING_DIR
)/usr
/lib
74 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libelf.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
76 install-dev
: $(STAGING_DIR
)/usr
/lib
/libelf.so
79 rm -rf
$(STAGING_DIR
)/usr
/include/libelf
*
80 rm -rf
$(STAGING_DIR
)/usr
/lib
/libelf.
{a
,so
*}