diff options
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 |