Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:= libsigc++
  5. PKG_VERSION:= 2.2.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= e27a20ac9bc9100f48effdfca8e8c595
  8. PKG_DESCR:= Callback framework for C++
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://libsigc.sourceforge.net
  11. PKG_SITES:= ${MASTER_SITE_GNOME:=libsigc++/2.2/}
  12. include ${TOPDIR}/mk/package.mk
  13. ifeq ($(ADK_COMPILE_LIBSIGCXX_WITH_UCLIBCXX),y)
  14. PKG_DEPENDS:= uclibc++
  15. else
  16. PKG_DEPENDS:= libstdcxx
  17. endif
  18. $(eval $(call PKG_template,LIBSIGCXX,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. ifeq ($(ADK_COMPILE_LIBSIGCXX_WITH_UCLIBCXX),y)
  20. CONFIGURE_ENV+= CXXFLAGS="-fno-builtin -fno-rtti -nostdinc++ \
  21. -I${STAGING_DIR}/usr/include/uClibc++" \
  22. LIBS="-nodefaultlibs -luClibc++ -lc -lm -lgcc"
  23. endif
  24. CONFIGURE_STYLE:= gnu
  25. BUILD_STYLE:= auto
  26. INSTALL_STYLE:= auto confprog
  27. ifeq (${ADK_COMPILE_LIBSIGCXX_WITH_UCLIBCXX},y)
  28. # add workaround because libtool tries to link libstdc++
  29. post-configure:
  30. ${SED} 's#postdeps="-lstdc.*#postdeps=""#' \
  31. ${WRKBUILD}/libtool
  32. endif
  33. post-install:
  34. ${INSTALL_DIR} ${IDIR_LIBSIGCXX}/usr/lib
  35. ${CP} ${WRKINST}/usr/lib/libsigc-2.0.so.* ${IDIR_LIBSIGCXX}/usr/lib/
  36. include ${TOPDIR}/mk/pkg-bottom.mk