freebsd-ports/games/uqm/files/patch-build-unix-config_proginfo_host
Thierry Thomas 54cb5b41b9 Changes:
- Replace an instance of a hardcoded /usr/X11R6 with $X11BASE. This was
  detected by dosirak.kr.freebsd.org.

- Make use of the OPTIONS variable. Because of this, replace the
  MUSICADDON and VOICEADDON switches with WITH_MUSIC and WITH_VOICE.

- Add support for OpenAL as wished by Peter Thoenen (eol1 at yahoo com).

PR:		87958
Submitted by:	maintainer
2005-11-11 11:56:56 +00:00

43 lines
1.4 KiB
Text

--- build/unix/config_proginfo_host.orig Fri May 13 17:22:09 2005
+++ build/unix/config_proginfo_host Mon Oct 24 23:26:50 2005
@@ -80,7 +80,7 @@
LIB_openal_CFLAGS=""
case "$HOST_SYSTEM" in
FreeBSD|OpenBSD)
- LIB_openal_LDFLAGS="-L/usr/local/lib -pthread -lopenal"
+ LIB_openal_LDFLAGS="-L${LOCALBASE}/lib -pthread -lopenal"
;;
MINGW32*)
LIB_openal_LDFLAGS="-lopenal32"
@@ -94,16 +94,16 @@
;;
esac
LIB_openal_VERSION=""
-LIB_openal_DETECT="try_pkgconfig_lib openal openal"
-LIB_openal_DEPEND_DETECT_BIN="pkgconfig"
+#LIB_openal_DETECT="try_pkgconfig_lib openal openal"
+#LIB_openal_DEPEND_DETECT_BIN="pkgconfig"
### OpenGL ###
LIB_opengl_NAME="OpenGL"
case "$HOST_SYSTEM" in
FreeBSD|OpenBSD)
- LIB_opengl_CFLAGS="-I/usr/X11R6/include -D_THREAD_SAFE"
- LIB_opengl_LDFLAGS="-L/usr/X11R6/lib -lX11 -lXext -pthread -lGL"
+ LIB_opengl_CFLAGS="-I${X11BASE}/include -D_THREAD_SAFE"
+ LIB_opengl_LDFLAGS="-L${X11BASE}/lib -lX11 -lXext -pthread -lGL"
;;
MINGW32*)
LIB_opengl_CFLAGS=""
@@ -132,8 +132,8 @@
LIB_vorbisfile_NAME="vorbisfile"
case "$HOST_SYSTEM" in
FreeBSD|OpenBSD)
- LIB_vorbisfile_CFLAGS="-I/usr/local/include"
- LIB_vorbisfile_LDFLAGS="-L/usr/local/lib -lvorbisfile -lvorbis"
+ LIB_vorbisfile_CFLAGS="-I${LOCALBASE}/include"
+ LIB_vorbisfile_LDFLAGS="-L${LOCALBASE}/lib -lvorbisfile -lvorbis"
;;
MINGW32*)
LIB_vorbisfile_CFLAGS=""