| 1 | # $Id: Makefile 3222 2006-02-12 06:28:00Z nbd $
|
|---|
| 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 |
|
|---|
| 13 |
|
|---|
| 14 | include $(TOPDIR)/package/rules.mk
|
|---|
| 15 |
|
|---|
| 16 | $(eval $(call PKG_template,LINUX_ATM,linux-atm,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 17 | $(eval $(call PKG_template,BR2684CTL,br2684ctl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 18 |
|
|---|
| 19 | $(WRKBUILD)/.configured:
|
|---|
| 20 | (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
|
|---|
| 21 | $(TARGET_CONFIGURE_OPTS) \
|
|---|
| 22 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 23 | CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
|---|
| 24 | LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
|
|---|
| 25 | ./configure \
|
|---|
| 26 | --target=$(GNU_TARGET_NAME) \
|
|---|
| 27 | --host=$(GNU_TARGET_NAME) \
|
|---|
| 28 | --build=$(GNU_HOST_NAME) \
|
|---|
| 29 | --program-prefix="" \
|
|---|
| 30 | --program-suffix="" \
|
|---|
| 31 | --prefix=/usr \
|
|---|
| 32 | --exec-prefix=/usr \
|
|---|
| 33 | --bindir=/usr/bin \
|
|---|
| 34 | --datadir=/usr/share \
|
|---|
| 35 | --includedir=/usr/include/ \
|
|---|
| 36 | --infodir=/usr/share/info \
|
|---|
| 37 | --libdir=/usr/lib \
|
|---|
| 38 | --libexecdir=/usr/lib \
|
|---|
| 39 | --localstatedir=/var \
|
|---|
| 40 | --mandir=/usr/share/man \
|
|---|
| 41 | --sbindir=/usr/sbin \
|
|---|
| 42 | --sysconfdir=/etc \
|
|---|
| 43 | )
|
|---|
| 44 | touch $@
|
|---|
| 45 |
|
|---|
| 46 | $(WRKBUILD)/.built:
|
|---|
| 47 | rm -rf $(WRKINST)
|
|---|
| 48 | mkdir -p $(WRKINST)
|
|---|
| 49 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 50 | DESTDIR="$(WRKINST)" \
|
|---|
| 51 | all install
|
|---|
| 52 | touch $@
|
|---|
| 53 |
|
|---|
| 54 | $(IPKG_LINUX_ATM):
|
|---|
| 55 | install -d -m0755 $(IDIR_LINUX_ATM)/usr/lib
|
|---|
| 56 | cp -f $(WRKINST)/usr/lib/libatm.so.1 $(IDIR_LINUX_ATM)/usr/lib
|
|---|
| 57 | $(RSTRIP) $(IDIR_LINUX_ATM)/
|
|---|
| 58 | $(IPKG_BUILD) $(IDIR_LINUX_ATM) $(PACKAGE_DIR)
|
|---|
| 59 |
|
|---|
| 60 | $(IPKG_BR2684CTL):
|
|---|
| 61 | install -d -m0755 $(IDIR_BR2684CTL)/usr/sbin
|
|---|
| 62 | $(CP) $(WRKINST)/usr/sbin/br2684ctl $(IDIR_BR2684CTL)/usr/sbin/
|
|---|
| 63 | install -d -m0755 $(IDIR_BR2684CTL)/etc/hotplug.d/net
|
|---|
| 64 | install -m0644 ./files/br2684.init $(IDIR_BR2684CTL)/etc/hotplug.d/net/30-br2684
|
|---|
| 65 | $(RSTRIP) $(IDIR_BR2684CTL)/
|
|---|
| 66 | $(IPKG_BUILD) $(IDIR_BR2684CTL) $(PACKAGE_DIR)
|
|---|
| 67 |
|
|---|
| 68 | $(STAGING_DIR)/usr/lib/libatm.so: $(WRKBUILD)/.built
|
|---|
| 69 | mkdir -p $(STAGING_DIR)/usr/include
|
|---|
| 70 | $(CP) $(WRKINST)/usr/include/atm{,d,sap}.h $(STAGING_DIR)/usr/include/
|
|---|
| 71 | mkdir -p $(STAGING_DIR)/usr/lib
|
|---|
| 72 | $(CP) $(WRKINST)/usr/lib/libatm.{a,so*} $(STAGING_DIR)/usr/lib/
|
|---|
| 73 | touch $@
|
|---|
| 74 |
|
|---|
| 75 | install-dev: $(STAGING_DIR)/usr/lib/libatm.so
|
|---|
| 76 |
|
|---|
| 77 | uninstall-dev:
|
|---|
| 78 | rm -rf \
|
|---|
| 79 | $(STAGING_DIR)/usr/include/atm{,d,sap}.h \
|
|---|
| 80 | $(STAGING_DIR)/usr/lib/libatm.{a,so*} \
|
|---|
| 81 |
|
|---|
| 82 | compile-targets: install-dev
|
|---|
| 83 | clean-targets: uninstall-dev
|
|---|
| 84 |
|
|---|
| 85 | mostlyclean:
|
|---|
| 86 | $(MAKE) -C $(WRKBUILD) clean
|
|---|
| 87 | rm -f $(WRKBUILD)/.built
|
|---|
| 88 |
|
|---|