Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 freetype
  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 -lssp_nonshared
  24. endif
  25. CONFIGURE_ARGS+= --disable-xinerama
  26. ifeq ($(ADK_COMPILE_LIBFLTK_WITH_UCLIBCXX),y)
  27. CONFIGURE_ENV+= CXXFLAGS="${TARGET_CXXFLAGS} -fno-threadsafe-statics -fno-builtin -nostdinc++ \
  28. -I${STAGING_TARGET_DIR}/usr/include/uClibc++" \
  29. LIBS="$(LIBRARIES)"
  30. endif
  31. libfltk-install:
  32. $(INSTALL_DIR) $(IDIR_LIBFLTK)/usr/lib
  33. $(CP) ${WRKINST}/usr/lib/libfltk*.so* $(IDIR_LIBFLTK)/usr/lib
  34. include ${TOPDIR}/mk/pkg-bottom.mk