2010-04-15 11:07:37 +02:00
|
|
|
# $NetBSD: Makefile,v 1.46 2010/04/15 09:07:37 tron Exp $
|
1997-11-19 14:03:40 +01:00
|
|
|
|
|
|
|
DISTNAME= mm2.7
|
2002-05-26 12:42:39 +02:00
|
|
|
PKGNAME= metamail-2.7
|
2010-04-15 11:07:37 +02:00
|
|
|
PKGREVISION= 10
|
1997-11-19 14:03:40 +01:00
|
|
|
CATEGORIES= mail
|
2005-03-23 00:19:31 +01:00
|
|
|
MASTER_SITES= http://ftp.funet.fi/pub/unix/mail/metamail/ \
|
|
|
|
ftp://ftp.research.telcordia.com/pub/nsb/
|
1997-11-19 14:03:40 +01:00
|
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= Implementation of MIME, the Multipurpose Internet Mail Extensions
|
1997-11-19 14:03:40 +01:00
|
|
|
|
2010-04-15 11:07:37 +02:00
|
|
|
CONFLICTS+= mm-2.7
|
2001-07-19 18:22:41 +02:00
|
|
|
|
2004-01-05 12:53:39 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2008-05-10 13:52:14 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-01-05 12:53:39 +01:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
1999-02-04 19:58:22 +01:00
|
|
|
|
2004-06-10 17:31:47 +02:00
|
|
|
CFLAGS.Linux+= -DLINUX
|
2004-02-25 04:58:42 +01:00
|
|
|
CFLAGS.SunOS+= -DSYSV
|
2008-05-10 13:52:14 +02:00
|
|
|
MAKE_ENV+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} CHMOD=${CHMOD:Q} SED=${SED:Q}
|
2003-03-23 14:39:25 +01:00
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/metamail
|
|
|
|
CONF_FILES= ${EGDIR}/mailcap ${PKG_SYSCONFDIR}/mailcap
|
2007-12-22 20:12:27 +01:00
|
|
|
USE_TOOLS+= bdftopcf csh:run
|
|
|
|
|
|
|
|
REPLACE_INTERPRETER+= csh
|
|
|
|
REPLACE.csh.old= /bin/csh
|
|
|
|
REPLACE.csh.new= ${CSH}
|
|
|
|
REPLACE_FILES.csh= bin/audiocompose bin/audiosend bin/extcompose
|
|
|
|
REPLACE_FILES.csh+= bin/getfilename bin/mailserver bin/mailto-hebrew
|
|
|
|
REPLACE_FILES.csh+= bin/metasend bin/patch-metamail bin/showaudio
|
|
|
|
REPLACE_FILES.csh+= bin/showexternal bin/shownonascii bin/showpartial
|
|
|
|
REPLACE_FILES.csh+= bin/showpicture bin/sun-audio-file bin/sun-message.csh
|
|
|
|
REPLACE_FILES.csh+= bin/sun-to-mime
|
|
|
|
REPLACE_FILES.csh+= fonts/Xmailto-hebrew fonts/Xshownonascii
|
2003-03-23 14:39:25 +01:00
|
|
|
|
2008-05-10 13:52:14 +02:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man4 ${EGDIR}
|
2004-01-05 12:53:39 +01:00
|
|
|
|
2005-02-15 21:08:55 +01:00
|
|
|
SUBST_CLASSES+= awk sys
|
2004-02-25 04:58:42 +01:00
|
|
|
SUBST_STAGE.awk= post-patch
|
|
|
|
SUBST_MESSAGE.awk= Adjusting the path to awk
|
|
|
|
SUBST_FILES.awk= bin/sun2mime
|
|
|
|
SUBST_SED.awk= -e "s|/bin/nawk|${AWK}|"
|
2005-02-15 21:08:55 +01:00
|
|
|
SUBST_STAGE.sys= post-patch
|
2006-02-19 01:45:36 +01:00
|
|
|
SUBST_MESSAGE.sys= Adjusting the path for PKG_SYSCONFDIR.
|
2005-02-15 21:08:55 +01:00
|
|
|
SUBST_FILES.sys= config.h
|
|
|
|
SUBST_SED.sys= -e "s|PKG_SYSCONFDIR|\"${PKG_SYSCONFDIR}\"|g"
|
1999-09-03 10:19:11 +02:00
|
|
|
|
1998-01-06 03:01:25 +01:00
|
|
|
post-patch:
|
1998-01-24 21:29:42 +01:00
|
|
|
${RM} -f ${WRKDIR}/mm2.7/src/bin/*.orig
|
1998-01-06 03:01:25 +01:00
|
|
|
|
2006-02-06 15:29:23 +01:00
|
|
|
pre-configure:
|
2008-05-10 13:52:14 +02:00
|
|
|
set -e; \
|
2006-02-06 15:29:23 +01:00
|
|
|
if ${GREP} putenv /usr/include/stdlib.h >/dev/null; \
|
|
|
|
then \
|
|
|
|
cd ${WRKSRC}/metamail; \
|
|
|
|
${MV} Makefile Makefile.pre-sed; \
|
|
|
|
${SED} -e s/putenv.o//g Makefile.pre-sed >Makefile; \
|
|
|
|
fi
|
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|