Skip to content

add OpenBSD support #147

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

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
add OpenBSD support
  • Loading branch information
jg1uaa committed May 16, 2018
commit bed9901b08d78246dd2bf10ece9dffdff09e38e7
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@

win := $(shell uname | grep CYGWIN)
dar := $(shell uname | grep Darwin)
obsd := $(shell uname | grep OpenBSD)

ifneq ($(win),)
include Makefile.win
else ifeq ($(dar),Darwin)
include Makefile.macosx
else ifeq ($(obsd),OpenBSD)
include Makefile.openbsd
else
include Makefile.linux
endif
24 changes: 12 additions & 12 deletions Makefile.openbsd
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ endif
# ---------- ARM - pcDuino ----------
#
# clang 5.0.1 running on OpenBSD-6.3/armv7.
# Cortex-A8 (ARMv7A) + VFPv3 + NEON
# Cortex-A8 (ARMv7A) + VFPv3 + NEON @ 1008MHz
#
#
# seconds options
Expand All @@ -127,23 +127,23 @@ endif
#

#
# ---------- ARM - Banana Pi ----------
# ---------- ARM - Orange Pi PC ----------
#
# clang 5.0.1 running on OpenBSD-6.3/armv7.
# Cortex-A7 (ARMv7A) + VFPv4 + NEON
# Cortex-A7 (ARMv7A) + VFPv4 + NEON @ 1008MHz
#
#
# seconds options
# --------- -------
# 10037.693 -O3 -ffast-math -mfpu=neon
# 437.039 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfp
# 436.613 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfpv3
# 436.318 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfpv3-d16
# 358.505 -O3 -ffast-math -mfloat-abi=softfp -mfpu=neon
# 357.988 -O3 -ffast-math -mfloat-abi=hard -mfpu=neon
# 436.393 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfpv4
# 436.413 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfpv4-d16
# 359.145 -O3 -ffast-math -mfloat-abi=softfp -mfpu=neon-vfpv4
# 8961.491 -O3 -ffast-math
# 399.880 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfp
# 400.615 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfpv3
# 399.659 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfpv3-d16
# 329.392 -O3 -ffast-math -mfloat-abi=softfp -mfpu=neon
# 329.060 -O3 -ffast-math -mfloat-abi=hard -mfpu=neon
# 398.590 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfpv4
# 399.478 -O3 -ffast-math -mfloat-abi=softfp -mfpu=vfpv4-d16
# 328.698 -O3 -ffast-math -mfloat-abi=softfp -mfpu=neon-vfpv4
#

#
Expand Down
4 changes: 2 additions & 2 deletions audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ struct audio_s {
#if __WIN32__ || __APPLE__
#define DEFAULT_ADEVICE "" /* Windows: Empty string = default audio device. */
#else
#if USE_ALSA
#define DEFAULT_ADEVICE "default" /* Use default device for ALSA. */
#if defined(USE_ALSA) || defined(__OpenBSD__)
#define DEFAULT_ADEVICE "default" /* Use default device for ALSA/OpenBSD-portaudio. */
#else
#define DEFAULT_ADEVICE "/dev/dsp" /* First audio device for OSS. */
#endif
Expand Down