1
0

Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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:= fltk
  5. PKG_VERSION:= 2.0
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= 557544badbacca4ee1ebb2448f6e1f8a
  8. PKG_DESCR:= fast light toolkit
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP:= libX11 libXi MesaLib freeglut
  11. PKG_URL:= http://www.fltk.org/
  12. PKG_SITES:= http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/fltk/snapshots/
  13. PKG_NEED_CXX:= 1
  14. PKG_CXX:= LIBFLTK
  15. PKG_SUBPKGS:= LIBFLTK
  16. PKG_ARCH_DEPENDS:= x86 x86_64 mips mipsel mips64 mips64el
  17. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.x-r7513.tar.bz2
  18. WRKDIST= ${WRKDIR}/${PKG_NAME}-2.0.x-r7513
  19. include $(TOPDIR)/mk/package.mk
  20. $(eval $(call PKG_template,LIBFLTK,libfltk,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. LIBRARIES:=-nodefaultlibs -luClibc++ -lgcc -lm
  22. ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
  23. LIBRARIES+=-lssp
  24. endif
  25. ifeq ($(ADK_COMPILE_LIBFLTK_WITH_UCLIBCXX),y)
  26. CONFIGURE_ENV+= CXXFLAGS="-fno-threadsafe-statics -fno-builtin -nostdinc++ \
  27. -I${STAGING_TARGET_DIR}/usr/include/uClibc++" \
  28. LIBS="$(LIBRARIES)"
  29. endif
  30. post-install:
  31. $(INSTALL_DIR) $(IDIR_LIBFLTK)/usr/lib
  32. $(CP) ${WRKINST}/usr/lib/libfltk*.so* $(IDIR_LIBFLTK)/usr/lib
  33. include ${TOPDIR}/mk/pkg-bottom.mk