Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fltk #6587

Merged
merged 22 commits into from
Sep 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions recipes/fltk/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
mkdir build
cd build

cmake -G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^
-DCMAKE_BUILD_TYPE=Release ^
%SRC_DIR%
if errorlevel 1 exit 1

:: Build.
nmake
if errorlevel 1 exit 1

:: Test.
ctest
if errorlevel 1 exit 1

:: Install.
nmake install
if errorlevel 1 exit 1
6 changes: 6 additions & 0 deletions recipes/fltk/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

./configure --prefix=$PREFIX
make -j${CPU_COUNT}
make test
make install
63 changes: 63 additions & 0 deletions recipes/fltk/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Jinja variables help maintain the recipe as you'll update the version only here.
{% set name = "fltk" %}
{% set version = "1.3.4" %}
{% set longversion = "1.3.4-2" %}
{% set md5 = "69128be72365cbedd1d380739f0164e3" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
fn: {{ name }}-{{ longversion }}-source.tar.gz
url: http://fltk.org/pub/{{ name }}/{{ version }}/{{ name }}-{{ longversion }}-source.tar.bz2
md5: {{ md5 }}

build:
number: 0
skip: True # [win and vc<14]

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- cmake

host:
- zlib
- jpeg
- libpng

run:
- zlib
- jpeg
- libpng

test:
commands:
- test -f $PREFIX/lib/libfltk.a # [unix]
- if not exist %LIBRARY_LIB%\\fltk.lib exit 1 # [win]

about:
home: http://www.fltk.org/
license: LGPL-2.0
license_family: LGPL
license_file: COPYING
summary: 'The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a cross-platform C++ GUI toolkit'

description: |
FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for
UNIX/Linux (X11), Microsoft Windows, and MacOS X. FLTK provides
modern GUI functionality without the bloat and supports 3D graphics via
OpenGL and its built-in GLUT emulation.

FLTK is designed to be small and modular enough to be statically
linked, but works fine as a shared library. FLTK also includes an
excellent UI builder called FLUID that can be used to create
applications in minutes.
doc_url: http://www.fltk.org/documentation.php
dev_url: http://www.fltk.org/roadmap.php

extra:
recipe-maintainers:
- guyer