3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=84fef49cc39ff2605204246666f65864
10 PKG_SOURCE_URL
:=http
://ftp.debian.org
/debian
/pool
/main
/l
/linux-atm
/
11 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).orig.
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
20 BR2_PACKAGE_LINUX_ATM
:=m
21 BR2_PACKAGE_BR2684CTL
:=m
24 $(eval
$(call PKG_template
,LINUX_ATM
,linux-atm
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
25 $(eval
$(call PKG_template
,BR2684CTL
,br2684ctl
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
27 $(PKG_BUILD_DIR
)/.configured
:
28 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
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" \
34 --target
=$(GNU_TARGET_NAME
) \
35 --host
=$(GNU_TARGET_NAME
) \
36 --build
=$(GNU_HOST_NAME
) \
42 --datadir=/usr
/share \
43 --includedir=/usr
/include/ \
44 --infodir=/usr
/share
/info \
46 --libexecdir
=/usr
/lib \
47 --localstatedir
=/var \
48 --mandir=/usr
/share
/man \
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)" \
63 install -d
-m0755
$(IDIR_LINUX_ATM
)/usr
/lib
64 cp
$(PKG_INSTALL_DIR
)/usr
/lib
/libatm.so
.1 $(IDIR_LINUX_ATM
)/usr
/lib
65 $(RSTRIP
) $(IDIR_LINUX_ATM
)/
66 $(IPKG_BUILD
) $(IDIR_LINUX_ATM
) $(PACKAGE_DIR
)
69 install -d
-m0755
$(IDIR_BR2684CTL
)/usr
/sbin
70 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/br2684ctl
$(IDIR_BR2684CTL
)/usr
/sbin
/
71 install -d
-m0755
$(IDIR_BR2684CTL
)/etc
/init.d
72 install -m0755 .
/files
/br2684.init
$(IDIR_BR2684CTL
)/etc
/init.d
/S30br2684
73 $(RSTRIP
) $(IDIR_BR2684CTL
)/
74 $(IPKG_BUILD
) $(IDIR_BR2684CTL
) $(PACKAGE_DIR
)
76 $(STAGING_DIR
)/usr
/lib
/libatm.so
: $(PKG_BUILD_DIR
)/.built
77 mkdir
-p
$(STAGING_DIR
)/usr
/include
78 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/atm
{,d
,sap
}.h
$(STAGING_DIR
)/usr
/include/
79 mkdir
-p
$(STAGING_DIR
)/usr
/lib
80 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libatm.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
83 install-dev
: $(STAGING_DIR
)/usr
/lib
/libatm.so
87 $(STAGING_DIR
)/usr
/include/atm
{,d
,sap
}.h \
88 $(STAGING_DIR
)/usr
/lib
/libatm.
{a
,so
*} \
90 compile-targets
: install-dev
91 clean-targets
: uninstall-dev
94 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
95 rm -f
$(PKG_BUILD_DIR
)/.built