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
19 $(eval
$(call PKG_template
,LINUX_ATM
,linux-atm
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(eval
$(call PKG_template
,BR2684CTL
,br2684ctl
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(PKG_BUILD_DIR
)/.configured
:
23 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
24 $(TARGET_CONFIGURE_OPTS
) \
25 CFLAGS
="$(TARGET_CFLAGS)" \
26 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
27 LDFLAGS
="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
29 --target
=$(GNU_TARGET_NAME
) \
30 --host
=$(GNU_TARGET_NAME
) \
31 --build
=$(GNU_HOST_NAME
) \
37 --datadir=/usr
/share \
38 --includedir=/usr
/include/ \
39 --infodir=/usr
/share
/info \
41 --libexecdir
=/usr
/lib \
42 --localstatedir
=/var \
43 --mandir=/usr
/share
/man \
49 $(PKG_BUILD_DIR
)/.built
:
50 rm -rf
$(PKG_INSTALL_DIR
)
51 mkdir
-p
$(PKG_INSTALL_DIR
)
52 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
53 DESTDIR
="$(PKG_INSTALL_DIR)" \
58 install -d
-m0755
$(IDIR_LINUX_ATM
)/usr
/lib
59 cp
$(PKG_INSTALL_DIR
)/usr
/lib
/libatm.so
.1 $(IDIR_LINUX_ATM
)/usr
/lib
60 $(RSTRIP
) $(IDIR_LINUX_ATM
)/
61 $(IPKG_BUILD
) $(IDIR_LINUX_ATM
) $(PACKAGE_DIR
)
64 install -d
-m0755
$(IDIR_BR2684CTL
)/usr
/sbin
65 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/br2684ctl
$(IDIR_BR2684CTL
)/usr
/sbin
/
66 install -d
-m0755
$(IDIR_BR2684CTL
)/etc
/init.d
67 install -m0755 .
/files
/br2684.init
$(IDIR_BR2684CTL
)/etc
/init.d
/S30br2684
68 $(RSTRIP
) $(IDIR_BR2684CTL
)/
69 $(IPKG_BUILD
) $(IDIR_BR2684CTL
) $(PACKAGE_DIR
)
71 $(STAGING_DIR
)/usr
/lib
/libatm.so
: $(PKG_BUILD_DIR
)/.built
72 mkdir
-p
$(STAGING_DIR
)/usr
/include
73 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/atm
{,d
,sap
}.h
$(STAGING_DIR
)/usr
/include/
74 mkdir
-p
$(STAGING_DIR
)/usr
/lib
75 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libatm.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
78 install-dev
: $(STAGING_DIR
)/usr
/lib
/libatm.so
82 $(STAGING_DIR
)/usr
/include/atm
{,d
,sap
}.h \
83 $(STAGING_DIR
)/usr
/lib
/libatm.
{a
,so
*} \
85 compile-targets
: install-dev
86 clean-targets
: uninstall-dev
89 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
90 rm -f
$(PKG_BUILD_DIR
)/.built