Disable X support, fixes compilation errors
[openwrt.git] / package / libcli / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=libcli
6 PKG_VERSION:=1.8.5
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=0fdd30df5a8c1388a4549751ba61247a
9
10 PKG_SOURCE_URL:=@SF/libcli
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,LIBCLI,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 touch $@
23
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
30 touch $@
31
32 $(IPKG_LIBCLI):
33 install -d -m0755 $(IDIR_LIBCLI)/usr/lib
34 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli* $(IDIR_LIBCLI)/usr/lib
35 $(RSTRIP) $(IDIR_LIBCLI)
36 $(IPKG_BUILD) $(IDIR_LIBCLI) $(PACKAGE_DIR)
37
38 $(STAGING_DIR)/usr/lib/libcli.so: $(PKG_BUILD_DIR)/.built
39 mkdir -p $(STAGING_DIR)/usr/include
40 $(CP) $(PKG_INSTALL_DIR)/usr/include/libcli.h $(STAGING_DIR)/usr/include/
41 mkdir -p $(STAGING_DIR)/usr/lib
42 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so* $(STAGING_DIR)/usr/lib/
43
44 install-dev: $(STAGING_DIR)/usr/lib/libcli.so
45
46 uninstall-dev:
47 rm -rf \
48 $(STAGING_DIR)/usr/include/libcli.h \
49 $(STAGING_DIR)/usr/lib/libcli.so*
50
51 compile-targets: install-dev
52 clean-targets: uninstall-dev
53
This page took 0.049049 seconds and 5 git commands to generate.