From 33fd00cd11b7d68f0c5e66b42651701f060b5ec9 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Thu, 4 Jan 2018 13:03:58 +0000 Subject: [PATCH] devel/libdistance: adjust for new Tcl pkg-config file --- devel/libdistance/Makefile | 4 ++++ devel/libdistance/files/patch-swig_tcl_Makefile | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/devel/libdistance/Makefile b/devel/libdistance/Makefile index 70d34d8e778f..1a1157cb2eb3 100644 --- a/devel/libdistance/Makefile +++ b/devel/libdistance/Makefile @@ -23,6 +23,10 @@ CFLAGS+= -fPIC pre-build: mkdir -p ${STAGEDIR}/usr/local/tests/${PORTNAME} +post-patch: + ${REINPLACE_CMD} 's|%%TCL_SHLIB_VER%%|${TCL_SHLIB_VER}|' \ + ${WRKSRC}/swig/tcl/Makefile + MAKE_JOBS_UNSAFE= yes .include diff --git a/devel/libdistance/files/patch-swig_tcl_Makefile b/devel/libdistance/files/patch-swig_tcl_Makefile index 49367bbc41b5..634955cb232f 100644 --- a/devel/libdistance/files/patch-swig_tcl_Makefile +++ b/devel/libdistance/files/patch-swig_tcl_Makefile @@ -17,7 +17,7 @@ -distance.so: distance_wrap.o - gcc -shared distance_wrap.o ../../libdistance.a \ - -o distance.so -+CFLAGS= -I ../.. `pkg-config --cflags tcl` -fPIC ++CFLAGS= -I ../.. `pkg-config --cflags tcl%%TCL_SHLIB_VER%%` -fPIC +SWIG?= swig -clean: