Makefile 1.6 KB

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