summaryrefslogtreecommitdiff
path: root/package/fltk/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/fltk/Makefile')
-rw-r--r--package/fltk/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/fltk/Makefile b/package/fltk/Makefile
index de5cb6459..99c130e1d 100644
--- a/package/fltk/Makefile
+++ b/package/fltk/Makefile
@@ -14,8 +14,9 @@ PKG_URL:= http://www.fltk.org/
PKG_SITES:= http://openadk.org/distfiles/
PKG_NEED_CXX:= 1
PKG_CXX:= LIBFLTK
+PKG_LIBNAME:= libfltk
+PKG_OPTS:= dev
-PKG_SUBPKGS:= LIBFLTK
PKG_ARCH_DEPENDS:= x86 x86_64 mips arm
PKG_HOST_DEPENDS:= !darwin
@@ -23,9 +24,12 @@ DISTFILES:= ${PKG_NAME}-$(PKG_VERSION)-source.tar.gz
include $(TOPDIR)/mk/package.mk
-$(eval $(call PKG_template,LIBFLTK,libfltk,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBFLTK,libfltk,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+ifeq ($(ADK_COMPILE_LIBFLTK_WITH_UCLIBCXX),y)
LIBRARIES:=-nodefaultlibs -luClibc++ -lgcc -lgcc_s -lm -lc
+endif
+
ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
LIBRARIES+=-lssp -lssp_nonshared
endif