mirror of
https://git.proxmox.com/git/libxdgmime-perl
synced 2025-08-03 15:51:17 +00:00
![]() by running `h2xs -P -v 1.0 -F -DHAVE_MMAP -M '^XDG_' -Ofan Xdgmime xdgmime.h` and selectively adding changes. upstream xdgmime.h contains all functions also as defines (preprocessor mangling to add XDG_PREFIX to the function name) - thus all functions would also be added as constants, which leads to errors in the automatically generated tests. The functions need to be in EXPORT_OK, but not added to @names in Makefile.PL. Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com> |
||
---|---|---|
debian | ||
Xdgmime | ||
xdgmime-source | ||
exports.h | ||
Makefile | ||
README |
0.) initial package generated with following commands: ###################################################### git clone git://anongit.freedesktop.org/xdg/xdgmime man h2xs man perlxs man perlxstut h2xs -Afn Xdgmime cp xdgmime-source/src/xdgmime*.[ch] Xdgmime/ create exports.h file in Xdgmime/exports.h # Note: following requires package 'libc-scan-perl' # downloaded that from debian etch archive h2xs -Oxan Xdgmime exports.h edit Xdgmime/Xdgmime.xs edit Xdgmime/lib/Xdgmime.pm edit Xdgmime/Makefile (add -DHAVE_MMAP)