Created attachment 175223 [details] build according to $COMPILER_TYPE and simplify Makefile . currently the port uses "astyle/build/gcc" build directory. Let's use (guess, a more appropriate) "astyle/build/${COMPILER_TYPE}"; . remove redundant doubled CFLAGS: --- clang++ -DNDEBUG -W -Wall -fno-rtti -fno-exceptions -O2 -pipe -W -Wall -fno-rtti -fno-exceptions -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -I/usr/local/include -c -o obj/ASBeautifier.o ../../src/ASBeautifier.cpp --- . remove now blank MAKE_ARGS; . remove now unneeded one sed option; . since "-s" linker flag, the resulting file is already stripped, remove stripping from do-install target. There is no revision bump needed since the resulting file is the same.
Created attachment 175224 [details] Revised full patch (+removed target pre-patch) Actually, the other sed option at pre-patch target is not needed. Remove the whole target. Revised full patch is attached.
Thanks for the PR. I'll take a look!
A commit references this bug: Author: lme Date: Tue Oct 4 21:51:16 UTC 2016 New revision: 423305 URL: https://svnweb.freebsd.org/changeset/ports/423305 Log: devel/astyle: - Remove doubled CLFAGS - Use astyle/build/${COMPILER_TYPE} as WRCSRC instead of hard-coding gcc - Remove blank MAGE_ARGS - Drop no longer needed pre-patch target - Stripping the binary is now done by the linker itself PR: 213042 Submitted by: bsam Changes: head/devel/astyle/Makefile
Committed, thanks!