pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc Initial sprinkling of work-in-progress buildlink3.mk f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/31e0e63706cd
branches:  trunk
changeset: 465635:31e0e63706cd
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Jan 03 23:06:43 2004 +0000

description:
Initial sprinkling of work-in-progress buildlink3.mk files for using the
buildlink3 framework.

diffstat:

 archivers/bzip2/buildlink3.mk          |   70 ++++++++++++
 audio/SDL_mixer/buildlink3.mk          |   22 +++
 audio/esound/buildlink3.mk             |   21 +++
 audio/libaudiofile/buildlink3.mk       |   19 +++
 audio/libogg/buildlink3.mk             |   19 +++
 audio/oss/buildlink3.mk                |   49 ++++++++
 converters/libiconv/buildlink3.mk      |   84 ++++++++++++++
 databases/db/buildlink3.mk             |   41 +++++++
 databases/db3/buildlink3.mk            |   19 +++
 databases/db4/buildlink3.mk            |   20 +++
 databases/mysql-client/buildlink3.mk   |   24 ++++
 databases/openldap/buildlink3.mk       |   28 ++++
 databases/p5-DBI/buildlink3.mk         |   22 +++
 databases/postgresql-lib/buildlink3.mk |   22 +++
 devel/SDL/buildlink3.mk                |   29 +++++
 devel/binutils/buildlink3.mk           |   74 ++++++++++++
 devel/boehm-gc/buildlink3.mk           |   19 +++
 devel/dlcompat/buildlink3.mk           |   19 +++
 devel/gettext-lib/buildlink3.mk        |  129 ++++++++++++++++++++++
 devel/glib/buildlink3.mk               |   23 ++++
 devel/libgetopt/buildlink3.mk          |   54 +++++++++
 devel/libmm/buildlink3.mk              |   19 +++
 devel/libslang/buildlink3.mk           |   26 ++++
 devel/ncurses/buildlink3.mk            |  116 ++++++++++++++++++++
 devel/pcre/buildlink3.mk               |   19 +++
 devel/pkgconfig/buildlink3.mk          |   24 ++++
 devel/popt/buildlink3.mk               |   21 +++
 devel/pth/buildlink3.mk                |   19 +++
 devel/readline/buildlink3.mk           |   88 +++++++++++++++
 devel/smpeg/buildlink3.mk              |   22 +++
 devel/zlib/buildlink3.mk               |   72 ++++++++++++
 graphics/SDL_image/buildlink3.mk       |   25 ++++
 graphics/aalib-x11/buildlink3.mk       |   27 ++++
 graphics/freetype-lib/buildlink3.mk    |   21 +++
 graphics/gd/buildlink3.mk              |   25 ++++
 graphics/glut/buildlink3.mk            |   21 +++
 graphics/jpeg/buildlink3.mk            |   19 +++
 graphics/libungif/buildlink3.mk        |   19 +++
 graphics/png/buildlink3.mk             |   21 +++
 graphics/tiff/buildlink3.mk            |   22 +++
 lang/libperl/buildlink3.mk             |   22 +++
 lang/ocaml/buildlink3.mk               |   20 +++
 lang/perl5/buildlink3.mk               |   84 ++++++++++++++
 lang/tcl/buildlink3.mk                 |   27 ++++
 mk/ossaudio.buildlink3.mk              |   85 ++++++++++++++
 mk/pthread.buildlink3.mk               |  188 +++++++++++++++++++++++++++++++++
 net/libpcap/buildlink3.mk              |   49 ++++++++
 net/openslp/buildlink3.mk              |   19 +++
 net/socks4/buildlink3.mk               |   20 +++
 net/socks5/buildlink3.mk               |   19 +++
 pkgtools/libnbcompat/buildlink3.mk     |   25 ++++
 print/cups/buildlink3.mk               |   22 +++
 security/PAM/buildlink3.mk             |   49 ++++++++
 security/cyrus-sasl2/buildlink3.mk     |   19 +++
 security/libcrack/buildlink3.mk        |   19 +++
 security/openssl/buildlink3.mk         |  161 ++++++++++++++++++++++++++++
 security/rsaref/buildlink3.mk          |   19 +++
 security/tcp_wrappers/buildlink3.mk    |   49 ++++++++
 textproc/expat/buildlink3.mk           |   19 +++
 www/apache/buildlink3.mk               |   29 +++++
 x11/gtk/buildlink3.mk                  |   24 ++++
 x11/tk/buildlink3.mk                   |   30 +++++
 62 files changed, 2431 insertions(+), 0 deletions(-)

diffs (truncated from 2679 to 300 lines):

diff -r 713629e47c05 -r 31e0e63706cd archivers/bzip2/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/bzip2/buildlink3.mk     Sat Jan 03 23:06:43 2004 +0000
@@ -0,0 +1,70 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/01/03 23:06:43 jlam Exp $
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
+BZIP2_BUILDLINK3_MK:=  ${BZIP2_BUILDLINK3_MK}+
+
+.if !empty(BZIP2_BUILDLINK3_MK:M\+)
+.  include "../../mk/bsd.prefs.mk"
+
+BUILDLINK_DEPENDS.bzip2?=      bzip2>=1.0.1
+BUILDLINK_PKGSRCDIR.bzip2?=    ../../archivers/bzip2
+.endif # BZIP2_BUILDLINK3_MK
+
+BUILDLINK_CHECK_BUILTIN.bzip2?=        NO
+
+.if !defined(BUILDLINK_IS_BUILTIN.bzip2)
+BUILDLINK_IS_BUILTIN.bzip2=    NO
+.  if exists(/usr/include/bzlib.h)
+BUILDLINK_IS_BUILTIN.bzip2!=                                           \
+       if ${GREP} -q "BZ2_" /usr/include/bzlib.h; then                 \
+               ${ECHO} YES;                                            \
+       else                                                            \
+               ${ECHO} NO;                                             \
+       fi
+.  endif
+MAKEFLAGS+=    BUILDLINK_IS_BUILTIN.bzip2=${BUILDLINK_IS_BUILTIN.bzip2}
+.endif
+
+.if defined(USE_BZIP2)
+_NEED_BZIP2=   YES
+.endif
+
+.if !empty(BUILDLINK_CHECK_BUILTIN.bzip2:M[yY][eE][sS])
+_NEED_BZIP2=   NO
+.endif
+
+.if !defined(_NEED_BZIP2)
+.  if !empty(BUILDLINK_IS_BUILTIN.bzip2:M[nN][oO])
+_NEED_BZIP2=   YES
+.  else
+_NEED_BZIP2=   NO
+#
+# Solaris 9 has bzip2 1.0.1, build it on older versions.
+# Darwin only has static libbz2.a, which can't be buildlinked.
+#
+_INCOMPAT_BZIP2=       SunOS-5.[678]-* Darwin-*
+INCOMPAT_BZIP2?=       # empty
+.    for _pattern_ in ${_INCOMPAT_BZIP2} ${INCOMPAT_BZIP2}
+.      if !empty(MACHINE_PLATFORM:M${_pattern_})
+_NEED_BZIP2=   YES
+.      endif
+.    endfor
+.  endif
+MAKEFLAGS+=    _NEED_BZIP2="${_NEED_BZIP2}"
+.endif
+
+.if ${_NEED_BZIP2} == "YES"
+.  if !empty(BUILDLINK_DEPTH:M\+)
+BUILDLINK_DEPENDS+=    bzip2
+.  endif
+.endif
+
+.if !empty(BZIP2_BUILDLINK3_MK:M\+)
+.  if ${_NEED_BZIP2} == "YES"
+BUILDLINK_PACKAGES+=           bzip2
+.  else
+BUILDLINK_PREFIX.bzip2=                /usr
+.  endif
+.endif # BZIP2_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH:C/\+$//}
diff -r 713629e47c05 -r 31e0e63706cd audio/SDL_mixer/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/SDL_mixer/buildlink3.mk     Sat Jan 03 23:06:43 2004 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/01/03 23:06:43 jlam Exp $
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
+SDL_MIXER_BUILDLINK3_MK:=      ${SDL_MIXER_BUILDLINK3_MK}+
+
+.if !empty(SDL_MIXER_BUILDLINK3_MK:M\+)
+BUILDLINK_DEPENDS.SDL_mixer?=  SDL_mixer>=1.2.5nb1
+BUILDLINK_PKGSRCDIR.SDL_mixer?=        ../../audio/SDL_mixer
+.endif # SDL_MIXER_BUILDLINK3_MK
+
+.if !empty(BUILDLINK_DEPTH:M\+)
+BUILDLINK_DEPENDS+=    SDL_mixer
+.endif
+
+.if !empty(SDL_MIXER_BUILDLINK3_MK:M\+)
+BUILDLINK_PACKAGES+=           SDL_mixer
+BUILDLINK_INCDIRS.SDL_mixer?=  include/SDL
+
+.  include "../../devel/SDL/buildlink3.mk"
+.endif # SDL_MIXER_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH:C/\+$//}
diff -r 713629e47c05 -r 31e0e63706cd audio/esound/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/esound/buildlink3.mk        Sat Jan 03 23:06:43 2004 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/01/03 23:06:43 jlam Exp $
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
+ESOUND_BUILDLINK3_MK:= ${ESOUND_BUILDLINK3_MK}+
+
+.if !empty(ESOUND_BUILDLINK3_MK:M\+)
+BUILDLINK_DEPENDS.esound?=     esound>=0.2.18
+BUILDLINK_PKGSRCDIR.esound?=   ../../audio/esound
+.endif # ESOUND_BUILDLINK3_MK
+
+.if !empty(BUILDLINK_DEPTH:M\+)
+BUILDLINK_DEPENDS+=    esound
+.endif
+
+.if !empty(ESOUND_BUILDLINK3_MK:M\+)
+BUILDLINK_PACKAGES+=   esound
+
+.  include "../../audio/libaudiofile/buildlink3.mk"
+.endif # ESOUND_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH:C/\+$//}
diff -r 713629e47c05 -r 31e0e63706cd audio/libaudiofile/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/libaudiofile/buildlink3.mk  Sat Jan 03 23:06:43 2004 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/01/03 23:06:43 jlam Exp $
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
+AUDIOFILE_BUILDLINK3_MK:=      ${AUDIOFILE_BUILDLINK3_MK}+
+
+.if !empty(AUDIOFILE_BUILDLINK3_MK:M\+) 
+BUILDLINK_DEPENDS.audiofile?=  libaudiofile>=0.2.1
+BUILDLINK_PKGSRCDIR.audiofile?=        ../../audio/libaudiofile
+.endif # AUDIOFILE_BUILDLINK3_MK
+
+.if !empty(BUILDLINK_DEPTH:M\+) 
+BUILDLINK_DEPENDS+=    audiofile
+.endif
+
+.if !empty(AUDIOFILE_BUILDLINK3_MK:M\+) 
+BUILDLINK_PACKAGES+=   audiofile
+.endif # AUDIOFILE_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH:C/\+$//}
diff -r 713629e47c05 -r 31e0e63706cd audio/libogg/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/libogg/buildlink3.mk        Sat Jan 03 23:06:43 2004 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/01/03 23:06:43 jlam Exp $
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
+LIBOGG_BUILDLINK3_MK:= ${LIBOGG_BUILDLINK3_MK}+
+
+.if !empty(LIBOGG_BUILDLINK3_MK:M\+)
+BUILDLINK_DEPENDS.libogg?=     libogg>=1.0.0.8
+BUILDLINK_PKGSRCDIR.libogg?=   ../../audio/libogg
+.endif # LIBOGG_BUILDLINK3_MK
+
+.if !empty(BUILDLINK_DEPTH:M\+)
+BUILDLINK_DEPENDS+=    libogg
+.endif
+
+.if !empty(LIBOGG_BUILDLINK3_MK:M\+)
+BUILDLINK_PACKAGES+=   libogg
+.endif # LIBOGG_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH:C/\+$//}
diff -r 713629e47c05 -r 31e0e63706cd audio/oss/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/oss/buildlink3.mk   Sat Jan 03 23:06:43 2004 +0000
@@ -0,0 +1,49 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/01/03 23:06:43 jlam Exp $
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
+OSS_BUILDLINK3_MK:=    ${OSS_BUILDLINK3_MK}+
+
+.if !empty(OSS_BUILDLINK3_MK:M\+)
+BUILDLINK_DEPENDS.oss?=                oss-[0-9]*
+BUILDLINK_PKGSRCDIR.oss?=      ../../audio/oss
+.endif # OSS_BUILDLINK3_MK
+
+.if !empty(BUILDLINK_DEPTH:M\+)
+BUILDLINK_DEPENDS+=    oss
+.endif
+
+.if !empty(OSS_BUILDLINK3_MK:M\+)
+BUILDLINK_PACKAGES+=   oss
+BUILDLINK_INCDIRS.oss= include lib/oss/include
+
+# If we are using audio/oss, then we don't need the NetBSD OSS
+# compatibility library.
+#
+BUILDLINK_TRANSFORM+=  S:-lossaudio:
+
+BUILDLINK_TARGETS+=    buildlink-oss-soundcard-h
+
+LIBOSSAUDIO=   # empty
+DEVOSSAUDIO=   /dev/dsp
+DEVOSSSOUND=   ${DEVOSSAUDIO}
+
+# Many source files mistakenly include both <sys/soundcard.h> and
+# <soundcard.h>, which causes errors since the definitions in the OSS
+# sys/soundcard.h conflict with the definitions in the system soundcard.h.
+# We fix this by making <sys/soundcard.h> and <soundcard.h> point to the
+# same file and rely on multiple inclusion protection to prevent conflicts.
+#
+.PHONY: buildlink-oss-soundcard-h
+buildlink-oss-soundcard-h:
+       ${_PKG_SILENT}${_PKG_DEBUG}                                     \
+       soundcard_h=${BUILDLINK_DIR}/include/soundcard.h;               \
+       sys_soundcard_h=${BUILDLINK_PREFIX.oss}/lib/oss/include/sys/soundcard.h; \
+       if [ ! -f $${soundcard_h} -a -f $${sys_soundcard_h} ]; then     \
+               ${ECHO_BUILDLINK_MSG}                                   \
+                       "Linking $${sys_soundcard_h} to $${soundcard_h}."; \
+               ${MKDIR} `${DIRNAME} $${soundcard_h}`;                  \
+               ${LN} -s $${sys_soundcard_h} $${soundcard_h};           \
+        fi
+.endif # OSS_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH:C/\+$//}
diff -r 713629e47c05 -r 31e0e63706cd converters/libiconv/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/libiconv/buildlink3.mk Sat Jan 03 23:06:43 2004 +0000
@@ -0,0 +1,84 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/01/03 23:06:43 jlam Exp $
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
+ICONV_BUILDLINK3_MK:=  ${ICONV_BUILDLINK3_MK}+
+
+.if !empty(ICONV_BUILDLINK3_MK:M\+)
+.  include "../../mk/bsd.prefs.mk"
+
+BUILDLINK_DEPENDS.iconv?=      libiconv>=1.9.1
+BUILDLINK_PKGSRCDIR.iconv?=    ../../converters/libiconv
+.endif # ICONV_BUILDLINK3_MK
+
+BUILDLINK_CHECK_BUILTIN.iconv?=        NO
+
+.if !defined(BUILDLINK_IS_BUILTIN.iconv)
+BUILDLINK_IS_BUILTIN.iconv=    NO
+.  if exists(/usr/include/iconv.h)
+BUILDLINK_IS_BUILTIN.iconv=    YES
+.  endif
+.endif
+
+.if !empty(BUILDLINK_CHECK_BUILTIN.iconv:M[yY][eE][sS])
+_NEED_GNU_ICONV=       NO
+.endif
+
+.if !defined(_NEED_GNU_ICONV)
+.  if !empty(BUILDLINK_IS_BUILTIN.iconv:M[nN][oO])
+_NEED_GNU_ICONV=       YES
+.  else
+_NEED_GNU_ICONV=       NO
+_INCOMPAT_ICONV?=      # should be set from defs.${OPSYS}.mk
+INCOMPAT_ICONV?=       # empty
+.    for _pattern_ in ${_INCOMPAT_ICONV} ${INCOMPAT_ICONV}
+.      if !empty(MACHINE_PLATFORM:M${_pattern_})
+_NEED_GNU_ICONV=       YES
+.      endif
+.    endfor
+.  endif
+.  if defined(USE_GNU_ICONV)
+_NEED_GNU_ICONV=       YES
+.  endif
+MAKEFLAGS+=    _NEED_GNU_ICONV=${_NEED_GNU_ICONV}
+.endif
+
+.if ${_NEED_GNU_ICONV} == "YES"
+.  if !empty(BUILDLINK_DEPTH:M\+)
+BUILDLINK_DEPENDS+=    iconv
+.  endif
+.endif
+
+.if !empty(ICONV_BUILDLINK3_MK:M\+)
+.  if ${_NEED_GNU_ICONV} == "YES"
+BUILDLINK_PACKAGES+=   iconv
+_BLNK_LIBICONV=                -liconv
+.  else
+.    if !defined(_BLNK_LIBICONV_FOUND)
+_BLNK_LIBICONV_FOUND!=                                                 \
+       if [ "`${ECHO} /usr/lib/libiconv.*`" = "/usr/lib/libiconv.*" ]; then \
+               ${ECHO} NO;                                             \
+       else                                                            \
+               ${ECHO} YES;                                            \
+       fi
+MAKEFLAGS+=    _BLNK_LIBICONV_FOUND=${_BLNK_LIBICONV_FOUND}
+.    endif
+.    if ${_BLNK_LIBICONV_FOUND} == "YES"
+_BLNK_LIBICONV=                -liconv
+.    else
+_BLNK_LIBICONV=                # empty
+BUILDLINK_TRANSFORM+=  S:-liconv:
+.    endif
+BUILDLINK_LDADD.iconv?=        ${_BLNK_LIBICONV}
+BUILDLINK_PREFIX.iconv=        /usr



Home | Main Index | Thread Index | Old Index