3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=049bf67de9b0eb75cd943dafe3d749ec
11 http
://ftp.gnu.org
/gnu
/libtool
/ \
12 http
://nthill.free.fr
/openwrt
/sources
/$(PKG_NAME
)/
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
,LIBLTDL
,libltdl
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
24 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 CFLAGS
="$(TARGET_CFLAGS)" \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
36 --datadir=/usr
/share \
37 --includedir=/usr
/include \
38 --infodir=/usr
/share
/info \
40 --libexecdir
=/usr
/lib \
41 --localstatedir
=/var \
42 --mandir=/usr
/share
/man \
46 $(DISABLE_LARGEFILE
) \
50 touch
$(PKG_BUILD_DIR
)/.configured
52 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
53 $(MAKE
) -C
$(PKG_BUILD_DIR
)
54 mkdir
-p
$(PKG_INSTALL_DIR
)
55 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
56 DESTDIR
="$(PKG_INSTALL_DIR)" \
58 touch
$(PKG_BUILD_DIR
)/.built
61 install -m0755
-d
$(IDIR_LIBLTDL
)/usr
/lib
62 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libltdl.so.
* $(IDIR_LIBLTDL
)/usr
/lib
/
63 $(RSTRIP
) $(IDIR_LIBLTDL
)
64 $(IPKG_BUILD
) $(IDIR_LIBLTDL
) $(PACKAGE_DIR
)
66 $(STAGING_DIR
)/usr
/lib
/libltdl.so
: $(PKG_BUILD_DIR
)/.built
67 mkdir
-p
$(STAGING_DIR
)/usr
/include
68 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/ltdl.h
$(STAGING_DIR
)/usr
/include/
69 mkdir
-p
$(I_LIBLTDL_DEV
)/usr
/lib
70 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libltdl.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
72 install-dev
: $(STAGING_DIR
)/usr
/lib
/libltdl.so
75 rm -rf
$(STAGING_DIR
)/usr
/include/ltdl
*
76 rm -rf
$(STAGING_DIR
)/usr
/lib
/libltdl.
{a
,so
*}