pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/elm Make this build under Mac OS X.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6a84155b629e
branches:  trunk
changeset: 506583:6a84155b629e
user:      tron <tron%pkgsrc.org@localhost>
date:      Thu Jan 19 14:51:38 2006 +0000

description:
Make this build under Mac OS X.

diffstat:

 mail/elm/Makefile         |  18 ++++++++++++------
 mail/elm/distinfo         |   4 ++--
 mail/elm/files/config.sh  |   2 +-
 mail/elm/patches/patch-aa |   4 ++--
 4 files changed, 17 insertions(+), 11 deletions(-)

diffs (80 lines):

diff -r d6e27e4b67f5 -r 6a84155b629e mail/elm/Makefile
--- a/mail/elm/Makefile Thu Jan 19 12:56:11 2006 +0000
+++ b/mail/elm/Makefile Thu Jan 19 14:51:38 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.36 2006/01/19 11:23:44 tron Exp $
+# $NetBSD: Makefile,v 1.37 2006/01/19 14:51:38 tron Exp $
 
 DISTNAME=              elm2.5.8
 PKGNAME=               elm-2.5.8
@@ -18,14 +18,20 @@
 CONFIGURE_SCRIPT=      ./Configure
 CONFIGURE_ARGS+=       -d
 
+.include "../../mk/bsd.prefs.mk"
+
+.if (${OPSYS} == Darwin)
+LIBC=                  /usr/lib/libSystem.dylib
+.else
+LIBC=                  /usr/lib/libc.so
+.endif
+
 pre-configure:
        ${CP} ${FILESDIR}/config.sh ${WRKSRC}/config.sh.orig
        ${SED} -e 's:PREFIX:${PREFIX}:g' \
-               ${WRKSRC}/config.sh.orig > ${WRKSRC}/config.sh.tmp
-       ${SED} -e 's:LOCALBASE:${LOCALBASE}:g' \
-               ${WRKSRC}/config.sh.tmp > ${WRKSRC}/config.sh.tmp2
-       ${SED} -e 's:@CC@:${CC}:g' \
-               ${WRKSRC}/config.sh.tmp2 > ${WRKSRC}/config.sh
+         -e 's:LOCALBASE:${LOCALBASE}:g' \
+         -e 's:LIBC:${LIBC}:g' \
+         ${WRKSRC}/config.sh.orig > ${WRKSRC}/config.sh
        ${MV} ${WRKSRC}/nls/LANGS ${WRKSRC}/nls/LANGS.tmpl
        ${SED} -e 's:__PREFIX:'${PREFIX}':g' < ${WRKSRC}/nls/LANGS.tmpl > ${WRKSRC}/nls/LANGS
 
diff -r d6e27e4b67f5 -r 6a84155b629e mail/elm/distinfo
--- a/mail/elm/distinfo Thu Jan 19 12:56:11 2006 +0000
+++ b/mail/elm/distinfo Thu Jan 19 14:51:38 2006 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.8 2005/08/22 12:40:12 tron Exp $
+$NetBSD: distinfo,v 1.9 2006/01/19 14:51:38 tron Exp $
 
 SHA1 (elm2.5.8.tar.gz) = bf09df75d0dc9097a1e69591bfb4872f860e00c7
 RMD160 (elm2.5.8.tar.gz) = c12dbefd0bf9d47ee4438673507a4693c4a6808c
 Size (elm2.5.8.tar.gz) = 607078 bytes
-SHA1 (patch-aa) = b563de30ee117674419ec56074c0a94fbfbb6504
+SHA1 (patch-aa) = cba94203f670bbe7c59d379442f471fca2f34e84
 SHA1 (patch-ab) = 0d3a39f6fb0179bf75095ed7aa1910d94506fbe8
 SHA1 (patch-ac) = 3216e1f8a00200efd93ada37c8250c5277abfbfe
 SHA1 (patch-ad) = de6e99072ad6379126bb1e6d798bc2cd851a92ed
diff -r d6e27e4b67f5 -r 6a84155b629e mail/elm/files/config.sh
--- a/mail/elm/files/config.sh  Thu Jan 19 12:56:11 2006 +0000
+++ b/mail/elm/files/config.sh  Thu Jan 19 14:51:38 2006 +0000
@@ -235,7 +235,7 @@
 i_sysutime='undef'
 lib='PREFIX/lib/elm'
 installlib='PREFIX/lib/elm'
-libc='/usr/lib/libc.so'
+libc='LIBC'
 linepr='/usr/bin/lp'
 maildir='/var/mail'
 mailer='/usr/sbin/sendmail'
diff -r d6e27e4b67f5 -r 6a84155b629e mail/elm/patches/patch-aa
--- a/mail/elm/patches/patch-aa Thu Jan 19 12:56:11 2006 +0000
+++ b/mail/elm/patches/patch-aa Thu Jan 19 14:51:38 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.3 2002/01/03 14:13:01 wiz Exp $
+$NetBSD: patch-aa,v 1.4 2006/01/19 14:51:38 tron Exp $
 
 --- Configure.orig     Fri Dec 15 15:00:55 2000
 +++ Configure
@@ -30,7 +30,7 @@
  rp="If you need to edit config.sh, do it as a shell escape here:"
  $echo $n "$rp $c"
 -. UU/myread
-+#. UU/myread
++ans=''
  case "$ans" in
  '') ;;
  *) : in case they cannot read



Home | Main Index | Thread Index | Old Index