3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=049bf67de9b0eb75cd943dafe3d749ec
10 PKG_SOURCE_URL
:=http
://ftp.gnu.org
/gnu
/libtool
/ \
11 ftp
://ftp.belnet.be
/mirror
/ftp.gnu.org
/gnu
/libtool
/ \
12 ftp
://ftp.mirror.nl
/pub
/mirror
/gnu
/libtool
/ \
13 http
://mirror.switch.ch
/ftp
/mirror
/gnu
/libtool
/
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
20 include $(TOPDIR
)/package
/rules.mk
22 $(eval
$(call PKG_template
,LIBLTDL
,libltdl
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
24 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
25 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
26 $(TARGET_CONFIGURE_OPTS
) \
27 CFLAGS
="$(TARGET_CFLAGS)" \
29 --target
=$(GNU_TARGET_NAME
) \
30 --host
=$(GNU_TARGET_NAME
) \
31 --build
=$(GNU_HOST_NAME
) \
37 --datadir=/usr
/share \
38 --includedir=/usr
/include \
39 --infodir=/usr
/share
/info \
41 --libexecdir
=/usr
/lib \
42 --localstatedir
=/var \
43 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
53 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
54 rm -rf
$(PKG_INSTALL_DIR
)
55 mkdir
-p
$(PKG_INSTALL_DIR
)
56 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
57 DESTDIR
="$(PKG_INSTALL_DIR)" \
62 install -m0755
-d
$(IDIR_LIBLTDL
)/usr
/lib
63 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libltdl.so.
* $(IDIR_LIBLTDL
)/usr
/lib
/
64 $(RSTRIP
) $(IDIR_LIBLTDL
)
65 $(IPKG_BUILD
) $(IDIR_LIBLTDL
) $(PACKAGE_DIR
)
67 $(STAGING_DIR
)/usr
/lib
/libltdl.so
: $(PKG_BUILD_DIR
)/.built
68 mkdir
-p
$(STAGING_DIR
)/usr
/include
69 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/ltdl.h
$(STAGING_DIR
)/usr
/include/
70 mkdir
-p
$(I_LIBLTDL_DEV
)/usr
/lib
71 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libltdl.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
74 install-dev
: $(STAGING_DIR
)/usr
/lib
/libltdl.so
78 $(STAGING_DIR
)/usr
/include/ltdl.h \
79 $(STAGING_DIR
)/usr
/lib
/libltdl.
{a
,so
*} \