2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2018 Harry Liebel <hliebel@gmail.com>
14 # Copyright 2021 Andreas Wacknitz
18 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_VERSION
= 2.4.0
23 COMPONENT_SUMMARY
= OpenGL FreeType fonts rendering library
24 COMPONENT_DESCRIPTION
= FTGL is a free cross-platform Open Source C
++ library that uses Freetype2 to simplify rendering fonts in OpenGL applications. FTGL supports bitmaps
, pixmaps
, texture maps
, outlines
, polygon mesh
, and extruded polygon rendering modes.
25 COMPONENT_PROJECT_URL
= https
://github.com
/frankheckenbach
/ftgl
26 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
27 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
).
tar.gz
28 COMPONENT_ARCHIVE_HASH
= sha256
:aa97da1c3442a8fd3941037655df18016d70b5266381c81d81e8b5335f196ea8
29 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/archive
/refs
/tags/v
$(COMPONENT_VERSION
).
tar.gz
30 COMPONENT_FMRI
= library
/x11
/ftgl
31 COMPONENT_CLASSIFICATION
= System
/X11
32 COMPONENT_LICENSE
= MIT
33 COMPONENT_LICENSE_FILE
= COPYING
35 TEST_TARGET
= $(NO_TESTS
)
36 include $(WS_MAKE_RULES
)/common.mk
38 COMPONENT_PREP_ACTION
+= ( cd
$(@D
) ; $(CONFIG_SHELL
) autogen.sh
);
40 CONFIGURE_ENV
+= LIBS
="-lm"
42 CONFIGURE_OPTIONS
+= --with-x
43 CONFIGURE_OPTIONS
+= --enable-static
=
45 # Manually added build dependencies
46 REQUIRED_PACKAGES
+= x11
/library
/freeglut
48 # Auto-generated dependencies
49 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
50 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
51 REQUIRED_PACKAGES
+= system
/library
52 REQUIRED_PACKAGES
+= system
/library
/freetype-2
53 REQUIRED_PACKAGES
+= system
/library
/math
54 REQUIRED_PACKAGES
+= x11
/library
/glu