Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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:= 4
  7. PKG_MD5SUM:= f20762061b68bc921e80be4aebc349eb
  8. PKG_DESCR:= OBEX ftp application
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= openobex libobexftp
  11. PKG_BUILDDEP:= openobex libiconv-tiny
  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
  18. PKGSD_LIBOBEXFTP:= obex ftp library
  19. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  20. ifeq ($(ADK_STATIC),y)
  21. PKG_OPTS+= libmix
  22. endif
  23. include ${TOPDIR}/mk/package.mk
  24. $(eval $(call PKG_template,OBEXFTP,obexftp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. $(eval $(call PKG_template,LIBOBEXFTP,libobexftp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBOBEXFTP},${PKGSC_LIBOBEXFTP},${PKG_OPTS}))
  26. ifeq ($(ADK_STATIC),y)
  27. XAKE_FLAGS+= STATIC_CFLAGS=-all-static
  28. endif
  29. CONFIGURE_ENV+= OPENOBEX_CFLAGS="-I${STAGING_TARGET_DIR}/usr/include" \
  30. OPENOBEX_LIBS="-L${STAGING_TARGET_DIR}/usr/lib \
  31. -lopenobex -liconv"
  32. CONFIGURE_ARGS+= --disable-perl \
  33. --disable-ruby \
  34. --disable-tcl \
  35. --disable-python
  36. obexftp-install:
  37. ${INSTALL_DIR} ${IDIR_OBEXFTP}/usr/bin
  38. ${CP} ${WRKINST}/usr/bin/obexftp{,d} ${IDIR_OBEXFTP}/usr/bin/
  39. libobexftp-install:
  40. ${INSTALL_DIR} ${IDIR_LIBOBEXFTP}/usr/lib
  41. ${CP} ${WRKINST}/usr/lib/*.so* ${IDIR_LIBOBEXFTP}/usr/lib/
  42. include ${TOPDIR}/mk/pkg-bottom.mk