Slight fixes to make FreeBSD compilation easier

This commit is contained in:
Koutakun 2019-04-18 22:01:33 -03:00
commit f250788427
2 changed files with 43 additions and 0 deletions

31
Readme-BSD.txt Normal file
View file

@ -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.

View file

@ -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."