summaryrefslogtreecommitdiff
path: root/devel/SDL
diff options
context:
space:
mode:
Diffstat (limited to 'devel/SDL')
-rw-r--r--devel/SDL/Makefile.common13
1 files changed, 12 insertions, 1 deletions
diff --git a/devel/SDL/Makefile.common b/devel/SDL/Makefile.common
index c6401b7535c..297d1745978 100644
--- a/devel/SDL/Makefile.common
+++ b/devel/SDL/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.12 2004/04/17 00:15:21 snj Exp $
+# $NetBSD: Makefile.common,v 1.13 2004/05/04 21:58:07 grant Exp $
#
DISTNAME= SDL-1.2.7
@@ -45,6 +45,17 @@ MAKE_ENV+= NASMFLAGS="${NASMFLAGS_${OBJECT_FMT}}"
#
CONFIGURE_ENV+= SYSTEM_LIBS="${LDFLAGS}"
+# buildlink passthru the directories required for the Cocoa framework
+# on Darwin if they exist.
+.if ${OPSYS} == "Darwin"
+COCOA_DIRS+= /System /Library /Developer
+. for _dir_ in ${COCOA_DIRS}
+. if exists(${_dir_})
+BUILDLINK_PASSTHRU_DIRS+= ${_dir_}
+. endif
+. endfor
+.endif
+
.include "../../mk/ossaudio.buildlink3.mk"
.if defined(HAVE_OSS) && (${HAVE_OSS} == "YES")
AM_CFLAGS= -D_PATH_DEV_DSP=\\\"${DEVOSSAUDIO}\\\"