@@ -42,7 +42,16 @@ target-linux: [
42
42
target-openbsd: [
43
43
os: openbsd
44
44
sys: openbsd
45
- vendor: unknown
45
+ platform: OpenBSD
46
+ vendor: pc
47
+ compiler: clang
48
+ ]
49
+
50
+ target-freebsd: [
51
+ os: freebsd
52
+ sys: freebsd
53
+ platform: FreeBSD
54
+ vendor: pc
46
55
compiler: clang
47
56
]
48
57
@@ -377,16 +386,10 @@ include-image-codecs: [
377
386
#if Windows? [
378
387
:include-image-os-codec
379
388
]
380
- #if Linux? [
381
- :include-native-bmp-codec
382
- :include-native-png-codec
383
- :include-native-jpg-codec
384
- :include-native-gif-codec
385
- ]
386
389
#if MacOS? [
387
390
:include-image-os-codec
388
391
]
389
- #if OpenBSD? [
392
+ #if (any [Linux? OpenBSD? FreeBSD?]) [
390
393
:include-native-bmp-codec
391
394
:include-native-png-codec
392
395
:include-native-jpg-codec
@@ -442,10 +445,10 @@ include-iconv: [
442
445
#if macOS? [
443
446
library: %iconv
444
447
]
445
- #if OpenBSD? [
448
+ #if (any [OpenBSD? FreeBSD?]) [
449
+ include: %/usr/local/include
450
+ library: %/usr/local/lib/
446
451
library: %iconv
447
- cflags: "-I/usr/local/include"
448
- lflag: "-L/usr/local/lib"
449
452
]
450
453
]
451
454
@@ -683,11 +686,7 @@ common: [
683
686
cflags: -Wno-pointer-sign
684
687
flag: -mmacosx-version-min=10.9
685
688
]
686
- #if Linux? [
687
- library: %m
688
- defines: ENDIAN_LITTLE
689
- ]
690
- #if OpenBSD? [
689
+ #if (any [Linux? OpenBSD? FreeBSD?]) [
691
690
library: %m
692
691
defines: ENDIAN_LITTLE
693
692
]
@@ -702,12 +701,8 @@ common-host: [
702
701
resource: %make/r3.rc
703
702
]
704
703
;#if Posix []
705
- #if Linux? [
706
- ; flag: -fvisibility=hidden
707
- flag: -fPIC ; position independent (used for libs)
708
- ]
709
- #if OpenBSD? [
710
- flag: -fPIC ; position independent (used for libs)
704
+ #if (any [Linux? OpenBSD? FreeBSD?]) [
705
+ flag: -fPIC ; position independent (used for libs)
711
706
]
712
707
]
713
708
@@ -731,6 +726,9 @@ arch-x64: [
731
726
#if OpenBSD? [
732
727
defines: TO_OPENBSD
733
728
]
729
+ #if FreeBSD? [
730
+ defines: TO_FREEBSD
731
+ ]
734
732
]
735
733
arch-x86: [
736
734
arch: x86
@@ -745,6 +743,9 @@ arch-x86: [
745
743
#if OpenBSD? [
746
744
defines: TO_OPENBSD
747
745
]
746
+ #if FreeBSD? [
747
+ defines: TO_FREEBSD
748
+ ]
748
749
]
749
750
arch-arm64: [
750
751
:arch-x64
@@ -1003,6 +1004,39 @@ eggs: [
1003
1004
:make-x64-host
1004
1005
]
1005
1006
]
1007
+ #if FreeBSD? [
1008
+ "Rebol/Base freebsd-x64" [
1009
+ name: %rebol3-base-freebsd-x64
1010
+ :target-freebsd
1011
+ :make-x64-exe
1012
+ ]
1013
+ "Rebol/Core freebsd-x64" [
1014
+ name: %rebol3-core-freebsd-x64
1015
+ :target-freebsd
1016
+ :include-rebol-core
1017
+ :make-x64-exe
1018
+ ]
1019
+ "Rebol/Bulk freebsd-x64" [
1020
+ name: %rebol3-bulk-freebsd-x64
1021
+ :target-freebsd
1022
+ :include-rebol-bulk
1023
+ :make-x64-exe
1024
+ ]
1025
+
1026
+ "Rebol/Core freebsd-x64 shared library" [
1027
+ name: %lib-rebol3-core-freebsd-x64
1028
+ :target-freebsd
1029
+ :include-rebol-core
1030
+ :make-x64-dll
1031
+ ]
1032
+ "Rebol/Core freebsd-x64 host application" [
1033
+ name: %host-core-freebsd-x64
1034
+ shared: %lib-rebol3-core-freebsd-x64
1035
+ :target-freebsd
1036
+ :include-rebol-core
1037
+ :make-x64-host
1038
+ ]
1039
+ ]
1006
1040
"Test extension 32bit" [
1007
1041
name: %test-x86.rebx
1008
1042
files: only %tests/extension/test.c
@@ -1020,6 +1054,10 @@ eggs: [
1020
1054
flag: -fPIC
1021
1055
:target-openbsd
1022
1056
]
1057
+ #if FreeBSD? [
1058
+ flag: -fPIC
1059
+ :target-freebsd
1060
+ ]
1023
1061
]
1024
1062
"Test extension 64bit" [
1025
1063
name: %test-x64.rebx
@@ -1037,5 +1075,9 @@ eggs: [
1037
1075
flag: -fPIC
1038
1076
:target-openbsd
1039
1077
]
1078
+ #if FreeBSD? [
1079
+ flag: -fPIC
1080
+ :target-freebsd
1081
+ ]
1040
1082
]
1041
1083
]
0 commit comments