openbsd-ports/devel/sdl/patches/patch-configure_in
pvalchev c798cd848b Add -L${X11BASE}/lib to sdl-config in when X11 is used, as SDL depends on
libraries there and needs to know the path.  this means sdl-config was
broken for a few days but none of the ports depended on this.
Also bump package revision to p1 for the last couple of fixes to the port.
2002-05-06 04:26:08 +00:00

38 lines
1.3 KiB
Plaintext

$OpenBSD: patch-configure_in,v 1.17 2002/05/06 04:26:08 pvalchev Exp $
--- configure.in.orig Sat Apr 13 17:57:24 2002
+++ configure.in Sun May 5 22:14:47 2002
@@ -468,7 +468,12 @@ CheckNASM()
NASMFLAGS="-f elf"
;;
esac
- AC_SUBST(NASMFLAGS)
+ case "$target" in
+ *-*-openbsd*)
+ NASMFLAGS="-f aoutb"
+ ;;
+ esac
+ AC_SUBST(NASMFLAGS)
CFLAGS="$CFLAGS -I\$(top_srcdir)/src/hermes"
SDL_EXTRADIRS="$SDL_EXTRADIRS hermes"
SDL_EXTRALIBS="$SDL_EXTRALIBS hermes/libhermes.la"
@@ -1681,6 +1686,7 @@ case "$target" in
if test x$enable_joystick = xyes; then
JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd"
JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la"
+ SYSTEM_LIBS="$SYSTEM_LIBS -lusbhid"
fi
# Set up files for the cdrom library
if test x$enable_cdrom = xyes; then
@@ -2355,7 +2361,10 @@ fi
if test $ARCH = solaris; then
SDL_RLD_FLAGS="-R\${exec_prefix}/lib"
fi
-if test $ARCH = openbsd -o $ARCH = bsdi; then
+if test $ARCH = openbsd -o x$enable_x11 = xtrue; then
+ SDL_RLD_FLAGS="-L${X11BASE}/lib"
+fi
+if test $ARCH = bsdi; then
SHARED_SYSTEM_LIBS="$SYSTEM_LIBS"
else
SHARED_SYSTEM_LIBS=""