freebsd-ports/mail/autorespond/Makefile
Peter Pentchev 36062ffe27 Make the strcasestr() definition conditional on OSVERSION.
Respect CFLAGS by patching them into the program Makefile.
No longer override the do-build target, let make(1) do its thing.

No PORTREVISION bump for the strcasestr() fix - this port simply
did not build at all on systems of olde :(

Reported by:	<root@lab.simerson.net>
2002-02-22 09:39:21 +00:00

28 lines
595 B
Makefile

# New ports collection makefile for: autorespond
# Date created: 24 Jan 2000
# Whom: Neil Blakey-Milner <nbm@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= autorespond
PORTVERSION= 2.0.2
CATEGORIES= mail
MASTER_SITES= http://www.inter7.com/devel/
MAINTAINER= roam@FreeBSD.org
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 440003 || ${OSVERSION} >= 500000 && ${OSVERSION} < 500027
CFLAGS+= -DNEED_STRCASESTR
.endif
post-patch:
${PERL} -pi.fbsd -e "s/^(DEFS =.*)/\1 ${CFLAGS}/" ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/autorespond ${PREFIX}/bin/
.include <bsd.port.post.mk>