FS#66031 - [irrlicht] package should link system libraries

Attached to Project: Community Packages
Opened by - (fx333) - Monday, 30 March 2020, 16:29 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Tuesday, 31 March 2020, 13:11 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The "irrlicht" package depends on bzip2, libpng, libpng but does not actually use them,
instead using whatever versions upstream bundled.


Suggested fix:

Upstream allows unbundling those dependencies if you edit the right files.
E.g. the following in prepare() does the job:
sed -r '/^#define _IRR_USE_NON_SYSTEM_(JPEG_LIB|LIB_PNG|ZLIB|BZLIB)_/d' -i include/IrrCompileConfig.h
sed -r '/^(ZLIB|JPEGLIB|LIBPNG|BZIP2)OBJ/d' -i source/Irrlicht/Makefile
sed -r '/^sharedlib: LDFLAGS/s,\r?$, -lz -ljpeg -lz -lbz2,' -i source/Irrlicht/Makefile
rm -r source/Irrlicht/{bzip2,jpeglib,libpng,zlib}
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Tuesday, 31 March 2020, 13:11 GMT
Reason for closing:  Fixed
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 31 March 2020, 11:12 GMT
Thanks for the patch! Please see new package in [community].

Loading...