1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00

devel/libdistance: adjust for new Tcl pkg-config file

This commit is contained in:
Pietro Cerutti 2018-01-04 13:03:58 +00:00
parent 8aecb9e675
commit 33fd00cd11
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=458028
2 changed files with 5 additions and 1 deletions

View File

@ -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 <bsd.port.mk>

View File

@ -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: