Created attachment 178259 [details] Proposed patch It is a lot simpler to just add "rdoc" to ALL_TARGET instead of defining a post-build section that just runs make with a custom target. Patch attached and tested on 12-amd64 and 9.3-i386.
A commit references this bug: Author: knu Date: Thu Jan 5 13:54:22 UTC 2017 New revision: 430639 URL: https://svnweb.freebsd.org/changeset/ports/430639 Log: Make good use of ALL_TARGET PR: 215547 Submitted by: Raphael Kubo da Costa Changes: head/databases/ruby-bdb/Makefile
Nice one, just committed. Thanks!