mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Merged in noryb009/haikuports/optipng (pull request #74)
Add OptiPNG recipe
This commit is contained in:
54
media-gfx/optipng/optipng-0.7.4.recipe
Normal file
54
media-gfx/optipng/optipng-0.7.4.recipe
Normal file
@@ -0,0 +1,54 @@
|
||||
SUMMARY="A PNG optimizer, making PNG files smaller"
|
||||
DESCRIPTION="
|
||||
OptiPNG is a PNG optimizer, recompressing PNG files so they
|
||||
become smaller, without losing any information. Additionally,
|
||||
OptiPNG can convert other image formats, such as BMP,
|
||||
GIF, PNM and TIFF, to PNG files.
|
||||
"
|
||||
HOMEPAGE="http://optipng.sourceforge.net/"
|
||||
SRC_URI="http://prdownloads.sourceforge.net/optipng/optipng-0.7.4.tar.gz?download"
|
||||
CHECKSUM_MD5="8853d89aaf859065e95dcdf98b6bed73"
|
||||
LICENSE="Zlib"
|
||||
COPYRIGHT="2001-2012 Cosmin Truta"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||
# for a different secondary architecture.
|
||||
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
optipng$secondaryArchSuffix = $portVersion
|
||||
cmd:optipng$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:ar
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:ranlib
|
||||
"
|
||||
|
||||
PATCHES="
|
||||
optipng-0.7.4.patch
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
./configure -bindir=$binDir -mandir=$manDir
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
}
|
||||
25
media-gfx/optipng/patches/optipng-0.7.4.patch
Normal file
25
media-gfx/optipng/patches/optipng-0.7.4.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
From 8fc175d03be69e84940012866ffdfa0b7b6c865b Mon Sep 17 00:00:00 2001
|
||||
From: Luke <noryb009@gmail.com>
|
||||
Date: Fri, 20 Dec 2013 17:11:40 +0000
|
||||
Subject: [PATCH] Remove reference to libm
|
||||
|
||||
---
|
||||
configure | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 5437b74..f7087fe 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -305,7 +305,7 @@ sed_config="
|
||||
s#@ARFLAGS@#${ARFLAGS-cru}#g
|
||||
s#@RANLIB@#${RANLIB-ranlib}#g
|
||||
s#@LIBS@#${LIBS-}#g
|
||||
- s#@LIBM@#${LIBM--lm}#g
|
||||
+ s#@LIBM@#${LIBM-}#g
|
||||
s#@LIBZ@#${LIBZ--lz}#g
|
||||
s#@LIBPNG@#${LIBPNG--lpng}#g
|
||||
s#@DIFF@#${DIFF-diff -b -u}#g
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
Reference in New Issue
Block a user