From f250788427ad1274deb0d4e1f52e86cc24b691a9 Mon Sep 17 00:00:00 2001 From: Koutakun Date: Thu, 18 Apr 2019 22:01:33 -0300 Subject: [PATCH] Slight fixes to make FreeBSD compilation easier --- Readme-BSD.txt | 31 +++++++++++++++++++++++++++++++ configure.ac | 12 ++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 Readme-BSD.txt diff --git a/Readme-BSD.txt b/Readme-BSD.txt new file mode 100644 index 0000000..54bd090 --- /dev/null +++ b/Readme-BSD.txt @@ -0,0 +1,31 @@ +PCem v14 BSD supplement + + +You will need the following libraries : + +SDL2 +wxWidgets 3.x +OpenAL + +and their dependencies. + +Open a terminal window, navigate to the PCem directory then enter + +./configure --enable-release-build +gmake + +then ./pcem to run. + +The BSD version stores BIOS ROM images, configuration files, and other data in ~/.pcem + +configure options are : + --enable-release-build : Generate release build. Recommended for regular use. + --enable-debug : Compile with debugging enabled. + --enable-networking : Build with networking support. + --enable-alsa : Build with support for MIDI output through ALSA. Requires libasound. + + +The menu is a pop-up menu in the BSD port. Right-click on the main window when mouse is not +captured. + +CD-ROM support currently only accesses /dev/cdrom. It has not been heavily tested. diff --git a/configure.ac b/configure.ac index 4a30d37..0236e48 100644 --- a/configure.ac +++ b/configure.ac @@ -150,6 +150,18 @@ case "$host" in exit -1]) build_linux="yes" ;; + *-*-freebsd*) + CFLAGS="$CFLAGS -I/usr/local/include" + CXXFLAGS="$CXXFLAGS -I/usr/local/include" + LDFLAGS="$LDFLAGS -L/usr/local/lib" + AC_CHECK_LIB([GL], [glGetError], [], \ + [echo "You need to install the OpenGL library." + exit -1]) + AC_CHECK_LIB([openal], [alGetError], [], \ + [echo "You need to install the OpenAL library." + exit -1]) + build_other="yes" + ;; *) AC_CHECK_LIB([GL], [glGetError], [], \ [echo "You need to install the OpenGL library."