The libc on freebsd already switched to stdlib.h for malloc, and it dies when malloc.h is included. The attached patch fixes this, and doesn't present any trouble on linux.
Created attachment 92140 [details, diff] pyopengl-2.0.1.09-malloc.patch Removes malloc.h where stdlib.h is included and replaces malloc.h with stdlib.h where needed.
Created attachment 92142 [details, diff] pyopengl-2.0.1.09-ebuild.patch Diff to the ebuild for this patch.
included patch into portage. thanks for your patch.