43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.14 2004/01/20 12:19:43 agc Exp $
|
|
|
|
DISTNAME= imap-utils
|
|
PKGNAME= imap-uw-utils-20020102
|
|
PKGREVISION= 2
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ftp://ftp.cac.washington.edu/imap/
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
MAINTAINER= jlam@NetBSD.org
|
|
HOMEPAGE= http://www.washington.edu/imap/
|
|
COMMENT= UW IMAP mailbox utilities
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
|
USE_BUILDLINK2= # defined
|
|
|
|
SRCDIRS= chkmail dmail icat ifrom imapcopy imapxfer \
|
|
mbxcopy mbxcreat mbxcvt tmail
|
|
|
|
CFLAGS+= -I${BUILDLINK_PREFIX.imap-uw}/include/c-client
|
|
LIBS+= -lc-client -lssl -lcrypto
|
|
|
|
do-build:
|
|
@for prog in ${SRCDIRS}; do \
|
|
${ECHO} "==> Building $${prog}"; \
|
|
cd ${WRKSRC}/$${prog}; \
|
|
${CC} ${CFLAGS} ${LDFLAGS} -o $${prog} $${prog}.c ${LIBS}; \
|
|
done
|
|
|
|
do-install:
|
|
@for prog in ${SRCDIRS}; do \
|
|
${ECHO} "==> Installing $${prog}"; \
|
|
cd ${WRKSRC}/$${prog}; \
|
|
${INSTALL_PROGRAM} $${prog} ${PREFIX}/bin; \
|
|
${INSTALL_MAN} $${prog}.1 ${PREFIX}/man/man1; \
|
|
done
|
|
${LN} -sf imapcopy ${PREFIX}/bin/imapmove
|
|
${LN} -sf mbxcopy ${PREFIX}/bin/mbxmove
|
|
|
|
.include "../../mail/imap-uw/buildlink2.mk"
|
|
.include "../../security/openssl/buildlink2.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|