From a28855ff8e0b9776b6571991d09cd179d9fba10a Mon Sep 17 00:00:00 2001 From: Wen Heping Date: Wed, 5 Jan 2011 07:06:57 +0000 Subject: - Only apply the patch of configure on FreeBSD8 and 9 Submitted by: h.skuhra@gmail.com (via email) --- sysutils/tmux/Makefile | 5 +++++ sysutils/tmux/files/extra-patch-configure | 10 ++++++++++ sysutils/tmux/files/patch-configure | 10 ---------- 3 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 sysutils/tmux/files/extra-patch-configure delete mode 100644 sysutils/tmux/files/patch-configure diff --git a/sysutils/tmux/Makefile b/sysutils/tmux/Makefile index 2aedf4d4c61c..1d09f072e0b1 100644 --- a/sysutils/tmux/Makefile +++ b/sysutils/tmux/Makefile @@ -7,6 +7,7 @@ PORTNAME= tmux PORTVERSION= 1.4 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} @@ -30,6 +31,10 @@ CONFIGURE_ARGS+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" .include +.if ${OSVERSION} >= 800000 +EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-configure +.endif + post-patch: @${REINPLACE_CMD} -e 's#/usr/local#${LOCALBASE}#g' \ ${WRKSRC}/Makefile diff --git a/sysutils/tmux/files/extra-patch-configure b/sysutils/tmux/files/extra-patch-configure new file mode 100644 index 000000000000..9cac18d8b58f --- /dev/null +++ b/sysutils/tmux/files/extra-patch-configure @@ -0,0 +1,10 @@ +--- configure.orig 2010-12-29 11:18:06.000000000 +0100 ++++ configure 2010-12-29 11:18:18.000000000 +0100 +@@ -222,7 +222,6 @@ + FreeBSD|DragonFly) + cat <>$CONFIG_H + #define HAVE_ASPRINTF +-#define HAVE_BROKEN_KQUEUE + #define HAVE_BZERO + #define HAVE_CLOSEFROM + #define HAVE_DAEMON diff --git a/sysutils/tmux/files/patch-configure b/sysutils/tmux/files/patch-configure deleted file mode 100644 index 9cac18d8b58f..000000000000 --- a/sysutils/tmux/files/patch-configure +++ /dev/null @@ -1,10 +0,0 @@ ---- configure.orig 2010-12-29 11:18:06.000000000 +0100 -+++ configure 2010-12-29 11:18:18.000000000 +0100 -@@ -222,7 +222,6 @@ - FreeBSD|DragonFly) - cat <>$CONFIG_H - #define HAVE_ASPRINTF --#define HAVE_BROKEN_KQUEUE - #define HAVE_BZERO - #define HAVE_CLOSEFROM - #define HAVE_DAEMON -- cgit v1.2.3