-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from roblillack/add-support-for-openbsd
Add OpenBSD (amd64 and arm64) support
- Loading branch information
Showing
19 changed files
with
210 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//go:build openbsd && amd64 | ||
|
||
package fltk | ||
|
||
// #cgo openbsd,amd64 CXXFLAGS: -std=c++11 | ||
// #cgo openbsd,amd64 CPPFLAGS: -I${SRCDIR}/lib/openbsd/amd64 -I/usr/X11R6/include -I${SRCDIR}/include -I${SRCDIR}/include/FL/images -I${SRCDIR}/include/png -I${SRCDIR}/include/zlib -I${SRCDIR}/include/jpeg -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT | ||
// #cgo openbsd,amd64 LDFLAGS: -L/usr/X11R6/lib ${SRCDIR}/lib/openbsd/amd64/libfltk_images.a ${SRCDIR}/lib/openbsd/amd64/libfltk_jpeg.a ${SRCDIR}/lib/openbsd/amd64/libfltk_png.a ${SRCDIR}/lib/openbsd/amd64/libfltk_z.a ${SRCDIR}/lib/openbsd/amd64/libfltk_gl.a -lGLU -lGL ${SRCDIR}/lib/openbsd/amd64/libfltk_forms.a ${SRCDIR}/lib/openbsd/amd64/libfltk.a -lm -lX11 -lXext -lpthread -lXinerama -lXfixes -lXcursor -lXft -lXrender -lm -lfontconfig | ||
import "C" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//go:build openbsd && arm64 | ||
|
||
package fltk | ||
|
||
// #cgo openbsd,arm64 CXXFLAGS: -std=c++11 | ||
// #cgo openbsd,arm64 CPPFLAGS: -I${SRCDIR}/lib/openbsd/arm64 -I/usr/X11R6/include -I${SRCDIR}/include -I${SRCDIR}/include/FL/images -I${SRCDIR}/include/png -I${SRCDIR}/include/zlib -I${SRCDIR}/include/jpeg -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT | ||
// #cgo openbsd,arm64 LDFLAGS: -L/usr/X11R6/lib ${SRCDIR}/lib/openbsd/arm64/libfltk_images.a ${SRCDIR}/lib/openbsd/arm64/libfltk_jpeg.a ${SRCDIR}/lib/openbsd/arm64/libfltk_png.a ${SRCDIR}/lib/openbsd/arm64/libfltk_z.a ${SRCDIR}/lib/openbsd/arm64/libfltk_gl.a -lGLU -lGL ${SRCDIR}/lib/openbsd/arm64/libfltk_forms.a ${SRCDIR}/lib/openbsd/arm64/libfltk.a -lm -lX11 -lXext -lpthread -lXinerama -lXfixes -lXcursor -lXft -lXrender -lm -lfontconfig | ||
import "C" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/* FL/fl_config.h. Generated from fl_config.cmake.in by CMake. */ | ||
/* | ||
* Build configuration file for the Fast Light Tool Kit (FLTK). | ||
* | ||
* Copyright 1998-2021 by Bill Spitzak and others. | ||
* | ||
* This library is free software. Distribution and use rights are outlined in | ||
* the file "COPYING" which should have been included with this file. If this | ||
* file is missing or damaged, see the license at: | ||
* | ||
* https://www.fltk.org/COPYING.php | ||
* | ||
* Please see the following page on how to report bugs and issues: | ||
* | ||
* https://www.fltk.org/bugs.php | ||
*/ | ||
|
||
#ifndef _FL_fl_config_h_ | ||
#define _FL_fl_config_h_ | ||
|
||
/* | ||
* FL_ABI_VERSION (ABI version) | ||
* | ||
* define FL_ABI_VERSION: 1xxyy for 1.x.y (xx,yy with leading zero) | ||
*/ | ||
|
||
/* #undef FL_ABI_VERSION */ | ||
|
||
|
||
/* | ||
* FLTK_HAVE_CAIRO | ||
* | ||
* Do we have the Cairo library available? | ||
*/ | ||
|
||
/* #undef FLTK_HAVE_CAIRO */ | ||
|
||
|
||
/* | ||
* FLTK_HAVE_CAIROEXT | ||
* | ||
* Do we have the Cairo library available and want extended Cairo use in FLTK ? | ||
* This implies to link cairo.lib in all FLTK based apps. | ||
*/ | ||
|
||
/* #undef FLTK_HAVE_CAIROEXT */ | ||
|
||
|
||
/* | ||
* FLTK_USE_X11 | ||
* | ||
* Do we use X11 for the current platform? | ||
* | ||
*/ | ||
|
||
#define FLTK_USE_X11 1 | ||
|
||
|
||
/* | ||
* FLTK_USE_CAIRO | ||
* | ||
* Do we use Cairo to draw to the display? | ||
* | ||
*/ | ||
|
||
/* #undef FLTK_USE_CAIRO */ | ||
|
||
|
||
/* | ||
* FLTK_USE_WAYLAND | ||
* | ||
* Do we use Wayland for the current platform? | ||
* | ||
*/ | ||
|
||
/* #undef FLTK_USE_WAYLAND */ | ||
|
||
|
||
/* | ||
* FLTK_USE_STD | ||
* | ||
* May we use std::string and std::vector for the current build? | ||
* | ||
* This is a build configuration option which allows FLTK to add some | ||
* features based on std::string and std::vector in FLTK 1.4.x | ||
* | ||
*/ | ||
|
||
#define FLTK_USE_STD 0 | ||
|
||
#endif /* _FL_fl_config_h_ */ |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/* FL/fl_config.h. Generated from fl_config.cmake.in by CMake. */ | ||
/* | ||
* Build configuration file for the Fast Light Tool Kit (FLTK). | ||
* | ||
* Copyright 1998-2021 by Bill Spitzak and others. | ||
* | ||
* This library is free software. Distribution and use rights are outlined in | ||
* the file "COPYING" which should have been included with this file. If this | ||
* file is missing or damaged, see the license at: | ||
* | ||
* https://www.fltk.org/COPYING.php | ||
* | ||
* Please see the following page on how to report bugs and issues: | ||
* | ||
* https://www.fltk.org/bugs.php | ||
*/ | ||
|
||
#ifndef _FL_fl_config_h_ | ||
#define _FL_fl_config_h_ | ||
|
||
/* | ||
* FL_ABI_VERSION (ABI version) | ||
* | ||
* define FL_ABI_VERSION: 1xxyy for 1.x.y (xx,yy with leading zero) | ||
*/ | ||
|
||
/* #undef FL_ABI_VERSION */ | ||
|
||
|
||
/* | ||
* FLTK_HAVE_CAIRO | ||
* | ||
* Do we have the Cairo library available? | ||
*/ | ||
|
||
/* #undef FLTK_HAVE_CAIRO */ | ||
|
||
|
||
/* | ||
* FLTK_HAVE_CAIROEXT | ||
* | ||
* Do we have the Cairo library available and want extended Cairo use in FLTK ? | ||
* This implies to link cairo.lib in all FLTK based apps. | ||
*/ | ||
|
||
/* #undef FLTK_HAVE_CAIROEXT */ | ||
|
||
|
||
/* | ||
* FLTK_USE_X11 | ||
* | ||
* Do we use X11 for the current platform? | ||
* | ||
*/ | ||
|
||
#define FLTK_USE_X11 1 | ||
|
||
|
||
/* | ||
* FLTK_USE_CAIRO | ||
* | ||
* Do we use Cairo to draw to the display? | ||
* | ||
*/ | ||
|
||
/* #undef FLTK_USE_CAIRO */ | ||
|
||
|
||
/* | ||
* FLTK_USE_WAYLAND | ||
* | ||
* Do we use Wayland for the current platform? | ||
* | ||
*/ | ||
|
||
/* #undef FLTK_USE_WAYLAND */ | ||
|
||
|
||
/* | ||
* FLTK_USE_STD | ||
* | ||
* May we use std::string and std::vector for the current build? | ||
* | ||
* This is a build configuration option which allows FLTK to add some | ||
* features based on std::string and std::vector in FLTK 1.4.x | ||
* | ||
*/ | ||
|
||
#define FLTK_USE_STD 0 | ||
|
||
#endif /* _FL_fl_config_h_ */ |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.