Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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:= 1.3.2
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 9f7e707d4fb7a5a76f0f9b73ff70623d
  8. PKG_DESCR:= fast light toolkit
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= mesalib libx11 libxi freeglut libfreetype
  11. PKG_BUILDDEP:= libX11 libXi MesaLib freeglut freetype
  12. PKG_URL:= http://www.fltk.org/
  13. PKG_SITES:= http://openadk.org/distfiles/
  14. PKG_NEED_CXX:= 1
  15. PKG_CXX:= LIBFLTK
  16. PKG_LIBNAME:= libfltk
  17. PKG_OPTS:= dev
  18. PKG_ARCH_DEPENDS:= x86 x86_64 mips arm
  19. DISTFILES:= ${PKG_NAME}-$(PKG_VERSION)-source.tar.gz
  20. include $(TOPDIR)/mk/package.mk
  21. $(eval $(call PKG_template,LIBFLTK,libfltk,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  22. ifeq ($(ADK_COMPILE_LIBFLTK_WITH_UCLIBCXX),y)
  23. LIBRARIES:=-nodefaultlibs -luClibc++ -lgcc -lgcc_s -lm -lc
  24. endif
  25. ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
  26. LIBRARIES+=-lssp -lssp_nonshared
  27. endif
  28. CONFIGURE_ARGS+= --disable-xinerama
  29. ifeq ($(ADK_COMPILE_LIBFLTK_WITH_UCLIBCXX),y)
  30. CONFIGURE_ENV+= CXXFLAGS="${TARGET_CXXFLAGS} -fno-threadsafe-statics -fno-builtin -nostdinc++ \
  31. -I${STAGING_TARGET_DIR}/usr/include/uClibc++" \
  32. LIBS="$(LIBRARIES)"
  33. endif
  34. libfltk-install:
  35. $(INSTALL_DIR) $(IDIR_LIBFLTK)/usr/lib
  36. $(CP) ${WRKINST}/usr/lib/libfltk*.so* $(IDIR_LIBFLTK)/usr/lib
  37. include ${TOPDIR}/mk/pkg-bottom.mk