3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=0fdd30df5a8c1388a4549751ba61247a
10 PKG_SOURCE_URL
:=@SF
/libcli
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
,LIBCLI
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
24 $(PKG_BUILD_DIR
)/.built
:
25 rm -rf
$(PKG_INSTALL_DIR
)
26 mkdir
-p
$(PKG_INSTALL_DIR
)
27 $(MAKE
) CC
=$(TARGET_CC
) LD
=$(TARGET_CC
) \
28 DESTDIR
=$(PKG_INSTALL_DIR
) \
29 -C
$(PKG_BUILD_DIR
) install
33 install -d
-m0755
$(IDIR_LIBCLI
)/usr
/lib
34 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libcli
* $(IDIR_LIBCLI
)/usr
/lib
35 $(RSTRIP
) $(IDIR_LIBCLI
)
36 $(IPKG_BUILD
) $(IDIR_LIBCLI
) $(PACKAGE_DIR
)
38 $(STAGING_DIR
)/usr
/lib
/libcli.so
: $(PKG_BUILD_DIR
)/.built
39 mkdir
-p
$(STAGING_DIR
)/usr
/include
40 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/libcli.h
$(STAGING_DIR
)/usr
/include/
41 mkdir
-p
$(STAGING_DIR
)/usr
/lib
42 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libcli.so
* $(STAGING_DIR
)/usr
/lib
/
44 install-dev
: $(STAGING_DIR
)/usr
/lib
/libcli.so
48 $(STAGING_DIR
)/usr
/include/libcli.h \
49 $(STAGING_DIR
)/usr
/lib
/libcli.so
*
51 compile-targets
: install-dev
52 clean-targets
: uninstall-dev