/bin/sh ../libtool --tag=CXX --mode=link c++ -O2 -pipe -fstack-protector -fno-strict-aliasing -export-dynamic -L/usr/local/lib -fstack-protector -o netgen demoview.o ngappinit.o onetcl.o parallelfunc.o ngpkg.o ../libsrc/visualization/libvisual.la ../libsrc/csg/libcsgvis.la ../libsrc/csg/libcsg.la ../libsrc/interface/libinterface.la ../libsrc/meshing/libmesh.la -ltogl -lGLU -L/usr/local/lib -ltk86 -L/usr/local/lib -ltcl86 -L/usr/local/lib/ffmpeg0 -lavutil0 -lavformat0 -lavcodec0 -lavutil0 -lswscale -lz -lbz2 -ljpeg -lGL -lXmu -lX11 /usr/bin/ld: cannot find -lswscale c++: error: linker command failed with exit code 1 (use -v to see invocation) http://package23.nyi.freebsd.org/data/103i386-default-PR207547/2016-10-04_18h24m30s/logs/errors/netgen-5.3.1.log
There're 2 issues: netgen may link against - libswscale from multimedia/ffmpeg - multimedia/ffmpeg0 installed under different PREFIX
Created attachment 176647 [details] respect PREFIX
Created attachment 176648 [details] link with libswscale0
Created attachment 176649 [details] respect PREFIX Sort *FLAGS and slightly reword commit message.
Excuse my delay in getting this done. I will get to it, but life is very busy for me right now. Thank you for doing this.
A commit references this bug: Author: stephen Date: Sun Nov 20 16:09:52 UTC 2016 New revision: 426602 URL: https://svnweb.freebsd.org/changeset/ports/426602 Log: - When FFMPEG=on, link to multimedia/ffmpeg. - Respect PREFIX. - Conversion for avcodec_encode_video(). PR: ports/214199 PR: ports/214644 Changes: head/cad/netgen/Makefile head/cad/netgen/files/patch-configure head/cad/netgen/files/patch-ng_ng.tcl head/cad/netgen/files/patch-ng_ngappinit.cpp head/cad/netgen/files/patch-ng_ngpkg.cpp
Committed, thank you.