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:= 1.3.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 92f6e29921227eec3426a07425c71232
  8. PKG_DESCR:= fast light toolkit
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP:= libX11 libXi MesaLib freeglut freetype
  11. PKG_URL:= http://www.fltk.org/
  12. PKG_SITES:= http://openadk.org/distfiles/
  13. PKG_NEED_CXX:= 1
  14. PKG_CXX:= LIBFLTK
  15. PKG_SUBPKGS:= LIBFLTK
  16. PKG_ARCH_DEPENDS:= x86 x86_64 mips arm
  17. DISTFILES:= ${PKG_NAME}-$(PKG_VERSION)-source.tar.gz
  18. include $(TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,LIBFLTK,libfltk,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. LIBRARIES:=-nodefaultlibs -luClibc++ -lgcc -lm
  21. ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
  22. LIBRARIES+=-lssp -lssp_nonshared
  23. endif
  24. CONFIGURE_ARGS+= --disable-xinerama
  25. ifeq ($(ADK_COMPILE_LIBFLTK_WITH_UCLIBCXX),y)
  26. CONFIGURE_ENV+= CXXFLAGS="${TARGET_CXXFLAGS} -fno-threadsafe-statics -fno-builtin -nostdinc++ \
  27. -I${STAGING_TARGET_DIR}/usr/include/uClibc++" \
  28. LIBS="$(LIBRARIES)"
  29. endif
  30. libfltk-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