update Sat Jan 16 06:37:00 PST 2010
[pkgsrc.git] / mail / libmilter / Makefile
1 # $NetBSD: Makefile,v 1.18 2010/01/16 11:33:12 tron Exp $
2
3 PKGNAME=        libmilter-${DIST_VERS}
4 COMMENT=        Mail filter support library for sendmail
5
6 PKG_DESTDIR_SUPPORT=    user-destdir
7
8 .include "options.mk"
9 .include "../../mail/sendmail/Makefile.common"
10
11 INSTALLATION_DIRS=      include lib
12
13 post-patch: make-sendmail-siteconfig
14
15 do-build:
16         (cd ${WRKSRC}/libmilter && env ${MAKE_ENV} ./Build)
17
18 do-install:
19         (cd ${WRKSRC}/libmilter && env ${MAKE_ENV} ./Build BINOWN=${BINOWN} BINGRP=${BINGRP} SHAREOWN=${SHAREOWN} SHAREGRP=${SHAREGRP} INCLUDEDIR=${DESTDIR}${PREFIX}/include LIBDIR=${DESTDIR}${PREFIX}/lib install)
20
21 PTHREAD_OPTS+=  require
22
23 .include "../../mk/pthread.buildlink3.mk"
24 .include "../../mk/bsd.pkg.mk"
25
26 # has to be below include for bsd.pkg.mk, else substition fails
27 OBJDIR!=        ${ECHO} obj.`${UNAME} -srm | ${TR} \  .`