(hopefully) fix dsl driver, add linux-atm package
[openwrt.git] / openwrt / package / linux-atm / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=linux-atm
6 PKG_VERSION:=2.4.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=84fef49cc39ff2605204246666f65864
9
10 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/linux-atm/
11 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 ifneq ($(BOARD),ar7)
19 BR2_PACKAGE_LINUX_ATM:=m
20 endif
21
22 $(eval $(call PKG_template,LINUX_ATM,linux-atm,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24 $(PKG_BUILD_DIR)/.configured:
25 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
26 autoconf; \
27 $(TARGET_CONFIGURE_OPTS) \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/src/openwrt/build_mipsel/linux/include/ \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc \
46 )
47 touch $@
48
49 $(PKG_BUILD_DIR)/.built:
50 $(MAKE) -C $(PKG_BUILD_DIR)
51 touch $@
52
53 $(IPKG_LINUX_ATM):
54 mkdir -p $(IDIR_LINUX_ATM)/usr/sbin
55 mkdir -p $(IDIR_LINUX_ATM)/lib
56 cp $(PKG_BUILD_DIR)/src/br2684/.libs/br2684ctl $(IDIR_LINUX_ATM)/usr/sbin/
57 cp $(PKG_BUILD_DIR)/src/lib/.libs/libatm.1.0.0 $(IDIR_LINUX_ATM)/lib
58 ln -sf libatm.1.0.0 $(IDIR_LINUX_ATM)/lib/libatm
59 ln -sf libatm.1.0.0 $(IDIR_LINUX_ATM)/lib/libatm.1
60 $(RSTRIP) $(IDIR_LINUX_ATM)/
61 $(IPKG_BUILD) $(IDIR_LINUX_ATM) $(PACKAGE_DIR)
62
63 mostlyclean:
64 $(MAKE) -C $(PKG_BUILD_DIR) clean
65 rm -f $(PKG_BUILD_DIR)/.built
66
This page took 0.041885 seconds and 5 git commands to generate.