Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= capi4k-utils
  5. PKG_VERSION:= 2005-07-18
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= b162d726a31310fc29e7c0a25a4f82a590457f6a95c1b1168bcd72b6497b5746
  8. PKG_DESCR:= capi4linux utils
  9. PKG_SECTION:= net/voip
  10. PKG_SITES:= ftp://ftp.in-berlin.de/pub/capi4linux/
  11. PKG_CFLINE_CAPI4K_UTILS:=depends on ADK_BROKEN
  12. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. WRKDIST= $(WRKDIR)/$(PKG_NAME)
  14. include $(ADK_TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,CAPI4K_UTILS,capi4k-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  16. CONFIG_STYLE:= manual
  17. XAKE_FLAGS+= PPPVERSIONS=2.4.5
  18. do-configure:
  19. echo "CONFIG_KERNELDIR='$(LINUX_DIR)'" >$(WRKDIST)/.config
  20. echo "CONFIG_BINDIR='/usr/bin'" >>$(WRKDIST)/.config
  21. echo "CONFIG_SBINDIR='/usr/sbin'" >>$(WRKDIST)/.config
  22. echo "CONFIG_MANDIR='/usr/man'" >>$(WRKDIST)/.config
  23. echo "CONFIG_RCAPID=y" >>$(WRKDIST)/.config
  24. echo "CONFIG_PPPDCAPIPLUGIN=y" >>$(WRKDIST)/.config
  25. (cd $(WRKDIST); \
  26. cp Makefile Makefile.tmp; \
  27. $(MAKE_ENV) $(MAKE) $(MAKE_FLAGS) -f Makefile.tmp subconfig; \
  28. rm -f Makefile.tmp; \
  29. )
  30. capi4k-utils-install:
  31. $(INSTALL_DIR) $(IDIR_CAPI4K_UTILS)/usr/{bin,lib/pppd/2.4.5}
  32. $(INSTALL_BIN) $(WRKINST)/usr/bin/capiinfo \
  33. $(IDIR_CAPI4K_UTILS)/usr/bin
  34. $(CP) $(WRKINST)/usr/lib/libcapi20.so* \
  35. $(IDIR_CAPI4K_UTILS)/usr/lib
  36. $(INSTALL_DATA) $(WRKINST)/usr/lib/pppd/2.4.5/*.so \
  37. $(IDIR_CAPI4K_UTILS)/usr/lib/pppd/2.4.5
  38. include $(ADK_TOPDIR)/mk/pkg-bottom.mk