From e3d776b01891fbfc5c7b272ecf7a190d8fdc8171 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sun, 1 Oct 2017 09:41:08 +0200 Subject: [PATCH] hqx: remove old bep file, create working recipe (#1677) --- media-gfx/hqx/hqx-1.0.recipe | 69 ++++++++++++++++++++++++++ media-gfx/hqx/hqx-1.1.recipe | 30 ----------- media-gfx/hqx/patches/hqx-1.0.patchset | 21 ++++++++ 3 files changed, 90 insertions(+), 30 deletions(-) create mode 100644 media-gfx/hqx/hqx-1.0.recipe delete mode 100644 media-gfx/hqx/hqx-1.1.recipe create mode 100644 media-gfx/hqx/patches/hqx-1.0.patchset diff --git a/media-gfx/hqx/hqx-1.0.recipe b/media-gfx/hqx/hqx-1.0.recipe new file mode 100644 index 000000000..997e6a586 --- /dev/null +++ b/media-gfx/hqx/hqx-1.0.recipe @@ -0,0 +1,69 @@ +SUMMARY="A fast, high-quality magnification filter designed for pixel art" +DESCRIPTION="hqx ('hq' stands for 'high quality' and 'x' stands for \ +magnification) is one of the pixel art scaling algorithms developed by \ +Maxim Stepin." +HOMEPAGE="https://code.google.com/archive/p/hqx/" +COPYRIGHT="2003 Maxim Stepin + 2010 Cameron Zemek" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/hqx/hqx-1.0.tar.gz" +CHECKSUM_SHA256="c260a489023366d4b2e727eb972be979af5a8c6090a7316d4356468e11dbd579" +PATCHES="hqx-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64" +SECONDARY_ARCHITECTURES="?x86" + +PROVIDES=" + hqx$secondaryArchSuffix = $portVersion + cmd:hqx$secondaryArchSuffix = $portVersion + lib:libhqx$secondaryArchSuffix = 1.0.0 compat >= 1 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libIL$secondaryArchSuffix + lib:libjpeg$secondaryArchSuffix + lib:libpng16$secondaryArchSuffix + lib:libtiff$secondaryArchSuffix + lib:libjasper$secondaryArchSuffix + lib:libmng$secondaryArchSuffix + " + +PROVIDES_devel=" + hqx${secondaryArchSuffix}_devel = $portVersion + devel:libhqx$secondaryArchSuffix = 1.0.0 compat >= 1 + " +REQUIRES_devel=" + hqx$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libIL$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:awk + cmd:libtoolize$secondaryArchSuffix + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + autoreconf -vfi + runConfigure ./configure + make $jobArgs OBJ_DIR=objects +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs libhqx + + packageEntries devel \ + $developDir +} diff --git a/media-gfx/hqx/hqx-1.1.recipe b/media-gfx/hqx/hqx-1.1.recipe deleted file mode 100644 index 0e66a71ad..000000000 --- a/media-gfx/hqx/hqx-1.1.recipe +++ /dev/null @@ -1,30 +0,0 @@ -DESCRIPTION=" -hqx ('hq' stands for 'high quality' and 'x' stands for magnification) is one \ -of the pixel art scaling algorithms developed by Maxim Stepin. -" -HOMEPAGE="http://code.google.com/p/hqx/" -SOURCE_URI="http://hqx.googlecode.com/files/hqx-1.1.tar.gz" -REVISION="1" -STATUS_HAIKU="untested" -DEPEND="media-libs/devil >= 1.7.8" -MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building." - -CHECKSUM_MD5="e4d3132b5f3614a75975b62fe6a066bb" -BUILD() -{ - cd hqx-1.1 - - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - - cd hqx-1.1 - make install -} - -LICENSE="GNU LGPL v2" -COPYRIGHT="2003 Maxim Stepin, - 2010 Cameron Zemek" diff --git a/media-gfx/hqx/patches/hqx-1.0.patchset b/media-gfx/hqx/patches/hqx-1.0.patchset new file mode 100644 index 000000000..561ae848a --- /dev/null +++ b/media-gfx/hqx/patches/hqx-1.0.patchset @@ -0,0 +1,21 @@ +From e48bb40321ab336ede3e9f9ae5b2307262415a46 Mon Sep 17 00:00:00 2001 +From: begasus +Date: Fri, 29 Sep 2017 12:04:04 +0200 +Subject: archiver requires 'AM_PROG_AR' in 'configure.ac' + + +diff --git a/configure.ac b/configure.ac +index 9f3c3bc..08717b3 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -6,6 +6,7 @@ AC_C_INLINE + AC_C_BIGENDIAN + AM_INIT_AUTOMAKE([-Wall -Werror]) + AM_PROG_CC_C_O ++m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) + + AC_CHECK_HEADER([IL/il.h],,AC_MSG_ERROR("DevIL il.h required")) + +-- +2.14.2 +