From fc1b4e7cf935e2c90533b6a45f7d69ef1b739630 Mon Sep 17 00:00:00 2001 From: John Marino Date: Sun, 22 Jun 2014 14:15:12 +0000 Subject: [PATCH] irc/psybnc: limit hack to FreeBSD to unbreak DragonFly This "fix" for FreeBSD doesn't look right to me; I don't think it should be using OSVERSION to determine which compiler is being used. Until its fixed better, make sure OSVERSION is only compared on FreeBSD. --- irc/psybnc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/psybnc/Makefile b/irc/psybnc/Makefile index 7550610e646d..b699e88c3fa7 100644 --- a/irc/psybnc/Makefile +++ b/irc/psybnc/Makefile @@ -29,7 +29,7 @@ IS_INTERACTIVE= yes post-patch: @${REINPLACE_CMD} -e 's#=help/#=${PSYBASE}/help/#' ${WRKSRC}/lang/* -.if ( ${OSVERSION} >= 1000024 ) +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000024 @${REINPLACE_CMD} -e 's,gcc,clang -Wno-return-type,g' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's,gcc,clang -Wno-return-type,g' ${WRKSRC}/tools/autoconf.c .endif