math/apache-commons-math: build empty jar file (without classes) and doesn't build with jdk 11+
- Without target "compile" commons-math.jar was ~8KB only and without
classes - whit patch it's ~2MB.
- Doesn't build with OpenJDK 11+: "compile.source" and "compile.target"
1.5 deprecated and was removed in newer OpenJDKs.
Approved by: bofh (maintainer), arrowd (mentor)
Differential Revision: https://reviews.freebsd.org/D43462
MFH: 2024Q1
(cherry picked from commit 11fc1e476c9d02bff164f4f37f7ba24ca6d7d87c)