1
0

Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= obexftp
  5. PKG_VERSION:= 0.23
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= f20762061b68bc921e80be4aebc349eb
  8. PKG_DESCR:= bluetooth ftp application
  9. PKG_SECTION:= bluetooth
  10. PKG_DEPENDS:= openobex libiconv
  11. PKG_BUILDDEP+= openobex libiconv
  12. PKG_URL:= http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=openobex/}
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  15. PKG_DESCR_LIB:= obexftp library
  16. PKG_SECTION_LIB:= libs
  17. ifeq ($(ADK_STATIC),y)
  18. PKG_OPTS:= libmix
  19. endif
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,OBEXFTP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. $(eval $(call PKG_template,LIBOBEXFTP,libobexftp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_LIB},${PKG_SECTION_LIB},${PKG_OPTS}))
  23. ifeq ($(ADK_STATIC),y)
  24. XAKE_FLAGS+= STATIC_CFLAGS=-all-static
  25. endif
  26. CONFIGURE_ENV+= OPENOBEX_CFLAGS="-I${STAGING_DIR}/usr/include" \
  27. OPENOBEX_LIBS="-L${STAGING_DIR}/usr/lib \
  28. -lopenobex -lbluetooth -liconv"
  29. CONFIGURE_ARGS+= --disable-perl \
  30. --disable-ruby \
  31. --disable-tcl \
  32. --disable-python
  33. post-install:
  34. ${INSTALL_DIR} ${IDIR_OBEXFTP}/usr/bin
  35. ${CP} ${WRKINST}/usr/bin/obexftp{,d} ${IDIR_OBEXFTP}/usr/bin/
  36. ifneq ($(ADK_STATIC),y)
  37. ${INSTALL_DIR} ${IDIR_LIBOBEXFTP}/usr/lib
  38. ${CP} ${WRKINST}/usr/lib/*.so* ${IDIR_LIBOBEXFTP}/usr/lib/
  39. endif
  40. include ${TOPDIR}/mk/pkg-bottom.mk