source: branches/whiterussian/openwrt/package/shfs/Makefile @ 1985

Last change on this file since 1985 was 1985, checked in by nico, 11 years ago

fix shfs-utils build

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1# $Id$
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME := shfs
6PKG_VERSION := 0.35
7PKG_RELEASE := 2
8PKG_MD5SUM := 016f49d71bc32eee2b5d11fc1600cfbe
9
10PKG_SOURCE_URL := @SF/shfs
11PKG_SOURCE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
12PKG_CAT := zcat
13
14PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17include $(TOPDIR)/package/rules.mk
18
19$(eval $(call PKG_template,SHFS_UTILS,shfs-utils,$(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) -C $(PKG_BUILD_DIR) \
28                OFLAGS="$(TARGET_CFLAGS)" \
29                CC="$(TARGET_CC)" \
30                LINKER="$(TARGET_CC)" \
31                KERNEL_SOURCES="$(LINUX_DIR)" \
32                ROOT="$(PKG_INSTALL_DIR)" \
33                utils utils-install
34        touch $@
35
36$(IPKG_SHFS_UTILS):
37        install -m0755 -d $(IDIR_SHFS_UTILS)/usr/sbin
38        cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/shfs{,u}mount $(IDIR_SHFS_UTILS)/usr/sbin/
39        cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/mount.shfs $(IDIR_SHFS_UTILS)/usr/sbin/
40        $(RSTRIP) $(IDIR_SHFS_UTILS)
41        $(IPKG_BUILD) $(IDIR_SHFS_UTILS) $(PACKAGE_DIR)
42
Note: See TracBrowser for help on using the repository browser.