summaryrefslogtreecommitdiff
path: root/devel/SDL
diff options
context:
space:
mode:
authorgrant <grant>2004-05-04 21:58:07 +0000
committergrant <grant>2004-05-04 21:58:07 +0000
commit4660e38ede6abb99a943b000e8ffaabb14efdd19 (patch)
tree88c87a116e62c636e4e9133a9247c188f3f9b71f /devel/SDL
parent23a116e2055b5fe117abd1fb9ad7905607f6b750 (diff)
downloadpkgsrc-4660e38ede6abb99a943b000e8ffaabb14efdd19.tar.gz
add the Cocoa framework directories to BUILDLINK_PASSTHRU_DIRS on
Darwin. fixes build problem reported and confirmed fixed by Randy Beaudreault.
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}\\\"