3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=049bf67de9b0eb75cd943dafe3d749ec
10 PKG_SOURCE_URL
:=@GNU
/libtool
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
,LIBLTDL
,libltdl
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
23 $(TARGET_CONFIGURE_OPTS
) \
24 CFLAGS
="$(TARGET_CFLAGS)" \
26 --target
=$(GNU_TARGET_NAME
) \
27 --host
=$(GNU_TARGET_NAME
) \
28 --build
=$(GNU_HOST_NAME
) \
34 --datadir=/usr
/share \
35 --includedir=/usr
/include \
36 --infodir=/usr
/share
/info \
38 --libexecdir
=/usr
/lib \
39 --localstatedir
=/var \
40 --mandir=/usr
/share
/man \
44 $(DISABLE_LARGEFILE
) \
50 $(PKG_BUILD_DIR
)/.built
:
51 rm -rf
$(PKG_INSTALL_DIR
)
52 mkdir
-p
$(PKG_INSTALL_DIR
)
53 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
54 DESTDIR
="$(PKG_INSTALL_DIR)" \
59 install -m0755
-d
$(IDIR_LIBLTDL
)/usr
/lib
60 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libltdl.so.
* $(IDIR_LIBLTDL
)/usr
/lib
/
61 $(RSTRIP
) $(IDIR_LIBLTDL
)
62 $(IPKG_BUILD
) $(IDIR_LIBLTDL
) $(PACKAGE_DIR
)
64 $(STAGING_DIR
)/usr
/lib
/libltdl.so
: $(PKG_BUILD_DIR
)/.built
65 mkdir
-p
$(STAGING_DIR
)/usr
/include
66 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/ltdl.h
$(STAGING_DIR
)/usr
/include/
67 mkdir
-p
$(I_LIBLTDL_DEV
)/usr
/lib
68 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libltdl.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
71 install-dev
: $(STAGING_DIR
)/usr
/lib
/libltdl.so
75 $(STAGING_DIR
)/usr
/include/ltdl.h \
76 $(STAGING_DIR
)/usr
/lib
/libltdl.
{a
,so
*} \
78 compile-targets
: install-dev
79 clean-targets
: uninstall-dev