aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/p5-Cflow/Makefile
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-12-04 13:33:38 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-12-04 13:33:38 +0000
commitb65a21eca1b04b27d01604dc0d256d6f664e190a (patch)
tree1af38c34310a07a2b6434a6486696233f429f1cb /net-mgmt/p5-Cflow/Makefile
parent16d23f03bf75ad732a63f38abbdc45f7dc22b1a0 (diff)
downloadports-b65a21eca1b04b27d01604dc0d256d6f664e190a.tar.gz
ports-b65a21eca1b04b27d01604dc0d256d6f664e190a.zip
Notes
Diffstat (limited to 'net-mgmt/p5-Cflow/Makefile')
-rw-r--r--net-mgmt/p5-Cflow/Makefile23
1 files changed, 6 insertions, 17 deletions
diff --git a/net-mgmt/p5-Cflow/Makefile b/net-mgmt/p5-Cflow/Makefile
index 3ad3f369ed85..5ab1e0436c47 100644
--- a/net-mgmt/p5-Cflow/Makefile
+++ b/net-mgmt/p5-Cflow/Makefile
@@ -21,23 +21,12 @@ FLOW_TOOLS_NG_DESC= Enable flow-tools-ng support
USES= perl5
USE_PERL5= configure
-.include <bsd.port.options.mk>
+FLOW_TOOLS_BUILD_DEPENDS= ${LOCALBASE}/lib/libft.a:${PORTSDIR}/net-mgmt/flow-tools
+FLOW_TOOLS_RUN_DEPENDS= ${LOCALBASE}/lib/libft.a:${PORTSDIR}/net-mgmt/flow-tools
+FLOW_TOOLS_NG_BUILD_DEPENDS= ${LOCALBASE}/lib/libft.a:${PORTSDIR}/net-mgmt/flow-tools-ng
+FLOW_TOOLS_NG_RUN_DEPENDS= ${LOCALBASE}/lib/libft.a:${PORTSDIR}/net-mgmt/flow-tools-ng
-.if ${PORT_OPTIONS:MFLOW_TOOLS}
-BUILD_DEPENDS+= ${LOCALBASE}/lib/libft.a:${PORTSDIR}/net-mgmt/flow-tools
-RUN_DEPENDS+= ${LOCALBASE}/lib/libft.a:${PORTSDIR}/net-mgmt/flow-tools
-.endif
-
-.if ${PORT_OPTIONS:MFLOW_TOOLS_NG}
-BUILD_DEPENDS+= ${LOCALBASE}/lib/libft.a:${PORTSDIR}/net-mgmt/flow-tools-ng
-RUN_DEPENDS+= ${LOCALBASE}/lib/libft.a:${PORTSDIR}/net-mgmt/flow-tools-ng
-.endif
-
-.if ${PORT_OPTIONS:MFLOW_TOOLS}||${PORT_OPTIONS:MFLOW_TOOLS_NG}
-CFLAGS+= -I${LOCALBASE}/include -DOSU
-CONFIGURE_ARGS+= \
- "LDDLFLAGS= -shared -L${LOCALBASE}/lib -lft -lz" \
- "INC= -I${LOCALBASE}/include" "LDLOADLIBS= -L${LOCALBASE}/lib -lft -lz"
-.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|\.\./\.\./lib|${LOCALBASE}/lib|g' ${WRKSRC}/Makefile.PL
.include <bsd.port.mk>