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: