lang/perl: Filter -g3 in TARGET_CFLAGS

-g3 will make the build fail in Compress-Raw-Zlib with
  ld: final link failed: Memory exhausted
This bug is actually documented[1] and fixed by filtering that flag. Since
we're passing CFLAGS manually, we need to do the same to make things work.
I suspect that this is actually a linker or library bug, but for now let's
just replicate the official fix.

[1] https://rt.cpan.org/Public/Bug/Display.html?id=88936

Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl: Override CCFLAGS configuration symbol in perlmod

This makes external perl modules compile their native code with the
correct CFLAGS, not with the one host-perl is using.

Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl: Make I8/I16/I32 types explicitly signed for ARM

Type signedness is undefined for char. char may actually be unsigned for
some CPUs.
This fixes various bugs on ARM, for example negative array indices.

Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl: Adjust some leftover x86_64 configuration symbols

Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl: Install target headers to staging directory

Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl: Use target headers for external modules

Before, external modules actually used host-perl headers.
Aside from obviously being the wrong thing to do, it made them misbehave if
host and target architectures differ too much.

Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl: Update license information

Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl: Cleanup

Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl: Bump PKG_RELEASE

Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl: Strip encoding pragma

The "encoding" pragma is officially deprecated.
Makes HTML::Parser/HTML::Entities work.

Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl: Include overloading.pm in perlbase-essential

Needed by perl-dbi.

Signed-off-by: Marcel Denia <naoir@gmx.net>
Merge pull request #123 from Naoir/perl

perl: More bugfixes, correct PKG_LICENSE