#
|
# This file and its contents are supplied under the terms of the
|
# Common Development and Distribution License ("CDDL"). You may
|
# only use this file in accordance with the terms of the CDDL.
|
#
|
# A full copy of the text of the CDDL should have accompanied this
|
# source. A copy of the CDDL is also available via the Internet at
|
# http://www.illumos.org/license/CDDL.
|
#
|
|
#
|
# Copyright 2017 Aurelien Larcher
|
#
|
|
BUILD_BITS= 64
|
include ../../../make-rules/shared-macros.mk
|
|
COMPONENT_NAME= fltk
|
COMPONENT_VERSION= 1.3.9
|
COMPONENT_SUMMARY= fltk - Fast Light Toolkit
|
COMPONENT_PROJECT_URL= https://www.fltk.org
|
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
|
COMPONENT_ARCHIVE= $(COMPONENT_SRC)-source.tar.gz
|
COMPONENT_ARCHIVE_URL= https://fltk.org/pub/fltk/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
|
COMPONENT_ARCHIVE_HASH= sha256:d736b0445c50d607432c03d5ba5e82f3fba2660b10bc1618db8e077a42d9511b
|
COMPONENT_FMRI= library/fltk
|
COMPONENT_CLASSIFICATION=System/Libraries
|
COMPONENT_LICENSE= GPLv2
|
COMPONENT_LICENSE_FILE= COPYING
|
|
CONFIGURE_FIX_LIBTOOL_RPATH= no
|
|
include $(WS_MAKE_RULES)/common.mk
|
|
# Missing files in build dir for configure without this.
|
COMPONENT_PRE_CONFIGURE_ACTION= ( $(CLONEY) $(SOURCE_DIR) $(@D) )
|
|
# build with the distribution preferred libjpeg implementation
|
CFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CFLAGS)
|
CXXFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CXXFLAGS)
|
LDFLAGS += $(JPEG_LDFLAGS)
|
|
CONFIGURE_OPTIONS += --enable-shared
|
CONFIGURE_OPTIONS += --enable-static=no
|
CONFIGURE_OPTIONS += --enable-cairo=yes
|
|
# Note that the tests are no real tests but just examples. You can run them manually.
|
COMPONENT_TEST_DIR = $(@D)/test
|
COMPONENT_TEST_TARGETS= all
|
|
# Auto-generated dependencies
|
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
|
REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
|
REQUIRED_PACKAGES += image/library/libpng16
|
REQUIRED_PACKAGES += library/desktop/cairo
|
REQUIRED_PACKAGES += shell/ksh93
|
REQUIRED_PACKAGES += system/library
|
REQUIRED_PACKAGES += system/library/fontconfig
|
REQUIRED_PACKAGES += system/library/math
|
REQUIRED_PACKAGES += x11/library/libx11
|
REQUIRED_PACKAGES += x11/library/libxcursor
|
REQUIRED_PACKAGES += x11/library/libxext
|
REQUIRED_PACKAGES += x11/library/libxfixes
|
REQUIRED_PACKAGES += x11/library/libxft
|
REQUIRED_PACKAGES += x11/library/libxinerama
|
REQUIRED_PACKAGES += x11/library/libxrender
|