Hello, I'm working on multiple ports and before sending on the list, I want to verify one point that I didn't find in the FAQ [1]
what is the best way to make a string replacement in a file ? or is it prefered to use patch ? but in this case, how do you handle var like MODPY_SITEPKG ? something like: @perl -pi -e "s|import sys|import sys\nsys.path.append('${MODPY_SITEPKG}')|;s|#\!c:\python\python.exe|#\!/usr/bin/env python|;" ${WRKSRC}/python-script or @perl -pi -e "s|target_link_libraries\(picviz \"-lm -ldl -L\\\${LIBPICVIZ_BINARY_DIR}/libev/ -lev\"\)|target_link_libraries(picviz \"-lm -L\\\${LIBPICVIZ_BINARY_DIR}/libev/ -lev\")|" \ ${WRKSRC}/src/CMakeLists.txt Thanks. Best regards, Jul [1] http://www.openbsd.org/cgi-bin/man.cgi?query=bsd.port.mk&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html http://www.openbsd.org/faq/ports/index.html