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
} ; \
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" \
32 --target
=$(GNU_TARGET_NAME
) \
33 --host
=$(GNU_TARGET_NAME
) \
34 --build
=$(GNU_HOST_NAME
) \
40 --datadir=/usr
/share \
41 --includedir=/usr
/include/ \
42 --infodir=/usr
/share
/info \
44 --libexecdir
=/usr
/lib \
45 --localstatedir
=/var \
46 --mandir=/usr
/share
/man \
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)" \
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
)
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
/
75 install-dev
: $(STAGING_DIR
)/usr
/lib
/libatm.so
79 $(STAGING_DIR
)/usr
/include/atm
{,d
,sap
}.h \
80 $(STAGING_DIR
)/usr
/lib
/libatm.
{a
,so
*} \
87 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
88 rm -f
$(PKG_BUILD_DIR
)/.built