diff options
author | Aaron Ball <nullspoon@oper.io> | 2021-06-17 09:59:29 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2021-06-17 09:59:29 -0600 |
commit | a9e143270911d35832cb6691c11830b46c587a97 (patch) | |
tree | dbe1029635bd43af8bb044736c6656c883d307ec /irrlicht | |
parent | 8955395150acf06a471316ededdb043c078a7373 (diff) | |
download | ports-a9e143270911d35832cb6691c11830b46c587a97.tar.gz ports-a9e143270911d35832cb6691c11830b46c587a97.tar.xz |
irrlicht: Fix build on newer systems (release: 2)
This ensures dependency on system zlip, bzip2, jpeg, and png. This also
fixes a bad include to a legacy path to the sysctl header.
Diffstat (limited to 'irrlicht')
-rw-r--r-- | irrlicht/.signature | 4 | ||||
-rw-r--r-- | irrlicht/Pkgfile | 14 |
2 files changed, 13 insertions, 5 deletions
diff --git a/irrlicht/.signature b/irrlicht/.signature index 373b575..4c0ac4f 100644 --- a/irrlicht/.signature +++ b/irrlicht/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/nullspoon.pub -RWThnm0RuVZhZsJsY0vv3nX7sik7UutBadesBBCVhh+cRn5yDiIPTwt9y0Bh6L5Neq3eHAwY5nYtiWkNQJ8FBrVzFM7mg+XRIww= -SHA256 (Pkgfile) = 1a2df974890c873b61056ad41b4ccfb2f249d34c2cead7f477c8dc822da0548a +RWThnm0RuVZhZs9X5knOukUpnTSyZ1jNXn5OUYByVSLvVeg+tx9ozOgzNTESqv1vnadgwaA9s7X2byWlL/X8M1QsvwefQQX+0QQ= +SHA256 (Pkgfile) = bc36871a7324123c35ff939ec9469e564812b59bfdd1335ad95b904b18483e78 SHA256 (.footprint) = 51491a550d47c055cb70bff6cfe4c18598965a922762eeaa8e60498ffff50579 SHA256 (irrlicht-1.8.4.zip) = f42b280bc608e545b820206fe2a999c55f290de5c7509a02bdbeeccc1bf9e433 diff --git a/irrlicht/Pkgfile b/irrlicht/Pkgfile index 885e540..4908edb 100644 --- a/irrlicht/Pkgfile +++ b/irrlicht/Pkgfile @@ -1,15 +1,23 @@ # Description: Lightning fast realtime 3D engine # Maintainer: Aaron Ball, nullspoon at oper dot io -# Depends on: libjpeg-turbo libpng -# +# Depends on: bzip2 libjpeg-turbo libpng libglvnd + name=irrlicht version=1.8.4 -release=1 +release=2 source=(https://downloads.sourceforge.net/irrlicht/${name}-${version}.zip) build() { cd ${name}-${version}/source/Irrlicht + # Use system libjpeg, libpng, and zlib, and bzip + 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 Makefile + sed -r '/^sharedlib: LDFLAGS/s,\r?$, -lz -ljpeg -lpng -lz -lbz2,' -i Makefile + # Update sysctl include to correct glibc path + sed -r 's/#include <sys\/sysctl.h>/#include <linux\/sysctl.h>/' -i COSOperator.cpp + + rm -r bzip2 jpeglib libpng zlib make NDEBUG=1 sharedlib make INSTALL_DIR=${PKG}/usr/lib install } |