DentonW / DevIL

Developer's Image Library (DevIL) is a cross-platform image library utilizing a simple syntax to load, save, convert, manipulate, filter, and display a variety of images with ease. It is highly portable and has been ported to several platforms.
http://openil.sourceforge.net/
GNU Lesser General Public License v2.1
446 stars 138 forks source link

Use installation path's #65

Open Begasus opened 6 years ago

Begasus commented 6 years ago

On Haiku we use multiple architectures, gcc2 hybrid (gcc2/gcc5) isn't supported, but if we want to build DevIL for a x86 build (gcc5) we need to set it to a $secondaryArchSuffix It would be nice to be able to use an option like "-DCMAKE_INSTALL_LIB=$path" (where $path for instance would be $libDir in Haiku's case which points to .../system/lib/x86 instead of ... /system/lib For the include path it would be handy too. At this moment we have a working version, but it's a bit hacky into moving the libs and headers into the proper place: https://github.com/Begasus/haikuports/blob/39d3409800d881ddbc0eb325b7a1fac3dc50f13c/media-libs/devil/devil-1.8.0.recipe Thanks in advance! :)

Begasus commented 6 years ago

ps $prefix in this case uses .../system/lib (even when $secondaryArchSuffix is used) (as you can see in the recipe)