add avahi package
[openwrt.git] / 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 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 ifneq ($(BOARD),ar7)
20 BR2_PACKAGE_LINUX_ATM:=m
21 endif
22
23 $(eval $(call PKG_template,LINUX_ATM,linux-atm,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
24
25 $(PKG_BUILD_DIR)/.configured:
26 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
27 $(TARGET_CONFIGURE_OPTS) \
28 CFLAGS="$(TARGET_CFLAGS)" \
29 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
30 LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
31 ./configure \
32 --target=$(GNU_TARGET_NAME) \
33 --host=$(GNU_TARGET_NAME) \
34 --build=$(GNU_HOST_NAME) \
35 --program-prefix="" \
36 --program-suffix="" \
37 --prefix=/usr \
38 --exec-prefix=/usr \
39 --bindir=/usr/bin \
40 --datadir=/usr/share \
41 --includedir=/usr/include/ \
42 --infodir=/usr/share/info \
43 --libdir=/usr/lib \
44 --libexecdir=/usr/lib \
45 --localstatedir=/var \
46 --mandir=/usr/share/man \
47 --sbindir=/usr/sbin \
48 --sysconfdir=/etc \
49 )
50 touch $@
51
52 $(PKG_BUILD_DIR)/.built:
53 rm -rf $(PKG_INSTALL_DIR)
54 mkdir -p $(PKG_INSTALL_DIR)
55 $(MAKE) -C $(PKG_BUILD_DIR) \
56 DESTDIR="$(PKG_INSTALL_DIR)" \
57 all install
58 touch $@
59
60 $(IPKG_LINUX_ATM):
61 install -d -m0755 $(IDIR_LINUX_ATM)/usr/lib
62 cp $(PKG_INSTALL_DIR)/usr/lib/libatm.so.1 $(IDIR_LINUX_ATM)/usr/lib
63 install -d -m0755 $(IDIR_LINUX_ATM)/usr/sbin
64 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl $(IDIR_LINUX_ATM)/usr/sbin/
65 $(RSTRIP) $(IDIR_LINUX_ATM)/
66 $(IPKG_BUILD) $(IDIR_LINUX_ATM) $(PACKAGE_DIR)
67
68 $(STAGING_DIR)/usr/lib/libatm.so: $(PKG_BUILD_DIR)/.built
69 mkdir -p $(STAGING_DIR)/usr/include
70 cp -fpR $(PKG_INSTALL_DIR)/usr/include/atm{,d,sap}.h $(STAGING_DIR)/usr/include/
71 mkdir -p $(STAGING_DIR)/usr/lib
72 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} $(STAGING_DIR)/usr/lib/
73 touch $@
74
75 install-dev: $(STAGING_DIR)/usr/lib/libatm.so
76
77 uninstall-dev:
78 rm -rf \
79 $(STAGING_DIR)/usr/include/atm{,d,sap}.h \
80 $(STAGING_DIR)/usr/lib/libatm.{a,so*} \
81
82 compile: install-dev
83
84 clean: uninstall-dev
85
86 mostlyclean:
87 $(MAKE) -C $(PKG_BUILD_DIR) clean
88 rm -f $(PKG_BUILD_DIR)/.built
89
This page took 0.04425 seconds and 5 git commands to generate.