summaryrefslogtreecommitdiff
path: root/devel/SDL/Makefile
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2001-05-05 13:47:12 +0000
committerrh <rh@pkgsrc.org>2001-05-05 13:47:12 +0000
commit4a00add4e60e8edffa39251cc61c365f6448bcb7 (patch)
tree46cd5abd0ee220eb47844d6ecb5e162b23dec8cf /devel/SDL/Makefile
parent011bf78d9b675b0b991630a3c203469fda70c91e (diff)
downloadpkgsrc-4a00add4e60e8edffa39251cc61c365f6448bcb7.tar.gz
Make SDL compile under a.out systems: only use "-f elf" on ELF systems.
Diffstat (limited to 'devel/SDL/Makefile')
-rw-r--r--devel/SDL/Makefile19
1 files changed, 15 insertions, 4 deletions
diff --git a/devel/SDL/Makefile b/devel/SDL/Makefile
index 35958d36680..6b5c484ebbd 100644
--- a/devel/SDL/Makefile
+++ b/devel/SDL/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2001/04/17 16:27:20 rh Exp $
+# $NetBSD: Makefile,v 1.12 2001/05/05 13:47:12 rh Exp $
#
DISTNAME= SDL-1.2.0
@@ -21,11 +21,22 @@ USE_GMAKE= YES
USE_MESA= YES
USE_X11= YES
USE_LIBTOOL= YES
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OBJECT_FMT} == "ELF"
+NASMFLAGS= -f elf
+.else
+NASMFLAGS= -f aoutb
+.endif
+
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
CONFIGURE_ARGS+= --disable-pthread-sem
-CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -D_POSIX_THREAD_SYSCALL_SOFT=1"
-LDFLAGS+= -Wl,-R${X11BASE}/lib -L${X11BASE}/lib
-#CC= ${LOCALBASE}/pthreads/bin/pgcc
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -D_POSIX_THREAD_SYSCALL_SOFT=1"
+CONFIGURE_ENV+= NASMFLAGS="${NASMFLAGS}"
+MAKE_ENV+= NASMFLAGS="${NASMFLAGS}"
+LDFLAGS+= -Wl,-R${X11BASE}/lib -L${X11BASE}/lib
+#CC= ${LOCALBASE}/pthreads/bin/pgcc
pre-patch:
cd ${WRKSRC} && ${MKDIR} src/audio/netbsd