diff options
author | Peter Pentchev <roam@FreeBSD.org> | 2002-02-22 09:39:21 +0000 |
---|---|---|
committer | Peter Pentchev <roam@FreeBSD.org> | 2002-02-22 09:39:21 +0000 |
commit | 36062ffe27e716f4b1a082f49b9666628b11e84c (patch) | |
tree | f1a8f05e82a5534f1ac11e568094ed12ea31a90a /mail/autorespond | |
parent | caaaf7c80080afebfcf2239e38e62b22c9bd543a (diff) | |
download | ports-36062ffe27e716f4b1a082f49b9666628b11e84c.tar.gz ports-36062ffe27e716f4b1a082f49b9666628b11e84c.zip |
Notes
Diffstat (limited to 'mail/autorespond')
-rw-r--r-- | mail/autorespond/Makefile | 12 | ||||
-rw-r--r-- | mail/autorespond/files/patch-autorespond.c | 4 |
2 files changed, 11 insertions, 5 deletions
diff --git a/mail/autorespond/Makefile b/mail/autorespond/Makefile index d446f97fc6a5..a71644a03f01 100644 --- a/mail/autorespond/Makefile +++ b/mail/autorespond/Makefile @@ -12,10 +12,16 @@ MASTER_SITES= http://www.inter7.com/devel/ MAINTAINER= roam@FreeBSD.org -do-build: - @cd ${WRKSRC} && ${MAKE} autorespond +.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.mk> +.include <bsd.port.post.mk> diff --git a/mail/autorespond/files/patch-autorespond.c b/mail/autorespond/files/patch-autorespond.c index 1dc4a73a97fd..b4c74f42c468 100644 --- a/mail/autorespond/files/patch-autorespond.c +++ b/mail/autorespond/files/patch-autorespond.c @@ -4,7 +4,7 @@ /********************************************************* ** find string in string - ignore case **/ -+/* ++#ifdef NEED_STRCASESTR char *strcasestr( char *_s1, char *_s2 ) { char *s1; @@ -13,7 +13,7 @@ return _s1 + (ptr - s1); } - -+*/ ++#endif |