pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/SDL Include buildlink3 files for "arts", "esound...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fb47087ea003
branches:  trunk
changeset: 514508:fb47087ea003
user:      tron <tron%pkgsrc.org@localhost>
date:      Tue Jun 13 15:02:58 2006 +0000

description:
Include buildlink3 files for "arts", "esound" and "nas" if support for
these package has been compiled into the "SDL" package. Based on a
patch provided by Thomas Klausner in private e-mail.

diffstat:

 devel/SDL/buildlink3.mk |  22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r 7284c2ad43ed -r fb47087ea003 devel/SDL/buildlink3.mk
--- a/devel/SDL/buildlink3.mk   Tue Jun 13 14:52:30 2006 +0000
+++ b/devel/SDL/buildlink3.mk   Tue Jun 13 15:02:58 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.16 2006/06/12 16:20:44 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.17 2006/06/13 15:02:58 tron Exp $
 
 BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
 SDL_BUILDLINK3_MK:=    ${SDL_BUILDLINK3_MK}+
@@ -28,4 +28,24 @@
 
 .include "../../mk/pthread.buildlink3.mk"
 
+.if !defined(PKG_BUILD_OPTIONS.SDL)
+PKG_BUILD_OPTIONS.SDL!= \
+       cd ${BUILDLINK_PKGSRCDIR.SDL} && \
+       ${MAKE} show-var ${MAKEFLAGS} VARNAME=PKG_OPTIONS
+MAKEFLAGS+=    PKG_BUILD_OPTIONS.SDL=${PKG_BUILD_OPTIONS.SDL:Q}
+.endif
+MAKEVARS+=     PKG_BUILD_OPTIONS.SDL
+
+.if !empty(PKG_BUILD_OPTIONS.SDL:Marts)
+.  include "../../audio/arts/buildlink3.mk"
+.endif
+
+.if !empty(PKG_BUILD_OPTIONS.SDL:Mesd)
+.  include "../../audio/esound/buildlink3.mk"
+.endif
+
+.if !empty(PKG_BUILD_OPTIONS.SDL:Mnas)
+.  include "../../audio/nas/buildlink3.mk"
+.endif
+
 BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH:S/+$//}



Home | Main Index | Thread Index | Old Index