Created
October 10, 2015 12:05
-
-
Save Quintus/b10a0bee9714cae1a11c to your computer and use it in GitHub Desktop.
Build files for SILLY on MSYS2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Your Name <youremail@domain.com> | |
# | |
# SILLY PKGBUILD based on the PKGBUILD in the ArchLinux repositories. | |
_realname=SILLY | |
pkgname=${MINGW_PACKAGE_PREFIX}-${_realname} | |
pkgver=0.1.0 | |
pkgrel=6 | |
pkgdesc="Simple Image Loading LibrarY, a part of the CEGUI project" | |
arch=('any') | |
url="http://www.cegui.org.uk/wiki/index.php/SILLY" | |
license=('MIT') | |
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs" | |
"${MINGW_PACKAGE_PREFIX}-libjpeg" | |
"${MINGW_PACKAGE_PREFIX}-libpng") | |
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" | |
"${MINGW_PACKAGE_PREFIX}-pkg-config") | |
source=(http://downloads.sourceforge.net/crayzedsgui/SILLY-${pkgver}.tar.gz | |
silly-libpng1.5.patch) | |
md5sums=('c3721547fced7792a36ffc9ce6ec23fd' | |
'530551c2942aea6fa20f10d06f1e604f') | |
options=("staticlibs" "strip") | |
prepare() { | |
cd "${_realname}-${pkgver}" | |
patch -Np1 < $srcdir/silly-libpng1.5.patch | |
} | |
build() { | |
cd "${_realname}-${pkgver}" | |
# SILLY fails to link against -lpng16 if relying on pkg-config, | |
# so specify it explicitely here. | |
export PNG_LIBS="-lpng16" | |
./configure --prefix=${MINGW_PREFIX} --build=${MINGW_CHOST} --host=${MINGW_CHOST} --target=${MINGW_CHOST} --enable-static --enable-shared | |
make | |
} | |
package() { | |
cd "${_realname}-${pkgver}" | |
make DESTDIR="${pkgdir}/" install | |
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ILLY-0.1.0/src/loaders/SILLYPNGImageLoader.cpp~ SILLY-0.1.0/src/loaders/SILLYPNGImageLoader.cpp | |
--- SILLY-0.1.0/src/loaders/SILLYPNGImageLoader.cpp~ 2006-06-19 00:42:12.000000000 +0200 | |
+++ SILLY-0.1.0/src/loaders/SILLYPNGImageLoader.cpp 2011-12-06 14:38:31.738251526 +0100 | |
@@ -64,10 +64,7 @@ void PNG_error_function(png_structp png_ | |
png_const_charp error) | |
{ | |
// printf("PNG Error: %s\n", error); | |
- // copied from libpng's pngerror.cpp | |
- jmp_buf buf; | |
- memcpy(buf, png_ptr->jmpbuf, sizeof(jmp_buf)); | |
- longjmp(buf, 1); | |
+ png_longjmp(png_ptr, 1); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment