diff options
author | tron <tron@pkgsrc.org> | 2006-01-19 14:51:38 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2006-01-19 14:51:38 +0000 |
commit | c39715d8d51d07965b51bb625e8ac9473323a406 (patch) | |
tree | b6fcddb4aaa7fbe38548e486e4ba1c346efd2641 /mail/elm/Makefile | |
parent | e46a3fbb6bc2cdb6d37ac662790536449268d04f (diff) | |
download | pkgsrc-c39715d8d51d07965b51bb625e8ac9473323a406.tar.gz |
Make this build under Mac OS X.
Diffstat (limited to 'mail/elm/Makefile')
-rw-r--r-- | mail/elm/Makefile | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/mail/elm/Makefile b/mail/elm/Makefile index fad9bd9a25a..21067d0d2bd 100644 --- a/mail/elm/Makefile +++ b/mail/elm/Makefile @@ -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 @@ HAS_CONFIGURE= YES 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 |