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
23 $(eval
$(call PKG_template
,LINUX_ATM
,linux-atm
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
25 $(PKG_BUILD_DIR
)/.configured
:
26 (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
-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
)
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
/
77 install-dev
: $(STAGING_DIR
)/usr
/lib
/libatm.so
81 $(STAGING_DIR
)/usr
/include/atm
{,d
,sap
}.h \
82 $(STAGING_DIR
)/usr
/lib
/libatm.
{a
,so
*} \
89 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
90 rm -f
$(PKG_BUILD_DIR
)/.built