naddy d159f8d1ad Make use of "find -exec {} +" (which is POSIX) and "find -delete"
(which is not) throughout the ports Makefiles.

* Replace find|xargs with find -exec {} +
* Replace -exec {} \; with -exec {} + if applicable.
* Use the -delete operator to remove files and empty directories.
* Combine and tweak some find(1) invocations while here.

ok kn@ rsadowski@ espie@
2020-03-20 16:44:21 +00:00

42 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.72 2020/03/20 16:44:25 naddy Exp $
COMMENT= Sieve mail filtering for Dovecot
V_SIEVE= 0.5.10
V_DOVECOT= 2.3
DISTNAME= dovecot-${V_DOVECOT}-pigeonhole-${V_SIEVE}
PKGNAME= dovecot-pigeonhole-${V_SIEVE}
EPOCH= 1
CATEGORIES= mail
MASTER_SITES= ${HOMEPAGE}releases/${V_DOVECOT}/
SHARED_LIBS= dovecot-sieve 3.0
HOMEPAGE= https://pigeonhole.dovecot.org/
MAINTAINER= Brad Smith <brad@comstyle.com>
# LGPLv2.1
PERMIT_PACKAGE= Yes
WANTLIB= lib/dovecot/dovecot lib/dovecot/dovecot-lda \
lib/dovecot/dovecot-login lib/dovecot/dovecot-storage \
c crypto iconv ssl
LIB_DEPENDS= converters/libiconv \
mail/dovecot>=2.3.9.2v0
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --docdir=${PREFIX}/share/doc
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
post-install:
@find ${PREFIX}/lib/dovecot \( -name '*.a' -o -name '*.la' \) -delete
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dovecot/
@mv ${PREFIX}/share/doc/dovecot/example-config/ \
${PREFIX}/share/examples/dovecot/
.include <bsd.port.mk>