force automake invocation
[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 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 autoconf; \
28 automake; \
29 $(TARGET_CONFIGURE_OPTS) \
30 CFLAGS="$(TARGET_CFLAGS)" \
31 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
32 LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
33 ./configure \
34 --target=$(GNU_TARGET_NAME) \
35 --host=$(GNU_TARGET_NAME) \
36 --build=$(GNU_HOST_NAME) \
37 --program-prefix="" \
38 --program-suffix="" \
39 --prefix=/usr \
40 --exec-prefix=/usr \
41 --bindir=/usr/bin \
42 --datadir=/usr/share \
43 --includedir=/usr/include/ \
44 --infodir=/usr/share/info \
45 --libdir=/usr/lib \
46 --libexecdir=/usr/lib \
47 --localstatedir=/var \
48 --mandir=/usr/share/man \
49 --sbindir=/usr/sbin \
50 --sysconfdir=/etc \
51 )
52 touch $@
53
54 $(PKG_BUILD_DIR)/.built:
55 rm -rf $(PKG_INSTALL_DIR)
56 mkdir -p $(PKG_INSTALL_DIR)
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 DESTDIR="$(PKG_INSTALL_DIR)" \
59 all install
60 touch $@
61
62 $(IPKG_LINUX_ATM):
63 install -d -m0755 $(IDIR_LINUX_ATM)/usr/lib
64 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libatm.so.* $(IDIR_LINUX_ATM)/usr/lib
65 install -d -m0755 $(IDIR_LINUX_ATM)/usr/sbin
66 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl $(IDIR_LINUX_ATM)/usr/sbin/
67 $(RSTRIP) $(IDIR_LINUX_ATM)/
68 $(IPKG_BUILD) $(IDIR_LINUX_ATM) $(PACKAGE_DIR)
69
70 $(STAGING_DIR)/usr/lib/libatm.so: $(PKG_BUILD_DIR)/.built
71 mkdir -p $(STAGING_DIR)/usr/include
72 cp -fpR $(PKG_INSTALL_DIR)/usr/include/atm{,d,sap}.h $(STAGING_DIR)/usr/include/
73 mkdir -p $(STAGING_DIR)/usr/lib
74 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} $(STAGING_DIR)/usr/lib/
75 touch $@
76
77 install-dev: $(STAGING_DIR)/usr/lib/libatm.so
78
79 uninstall-dev:
80 rm -rf \
81 $(STAGING_DIR)/usr/include/atm{,d,sap}.h \
82 $(STAGING_DIR)/usr/lib/libatm.{a,so*} \
83
84 compile: install-dev
85
86 clean: uninstall-dev
87
88 mostlyclean:
89 $(MAKE) -C $(PKG_BUILD_DIR) clean
90 rm -f $(PKG_BUILD_DIR)/.built
91
This page took 0.04389 seconds and 5 git commands to generate.