mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
media-gfx/heatshrink: new package, add 0.4.1
Signed-off-by: Thibaud CANALE <thican@thican.net>
This commit is contained in:
3 files changed
+53
No files matched your search
@@ -0,0 +1 @@
|
||||
DIST heatshrink-0.4.1.tar.gz 36945 BLAKE2B 526e3f88ddaec8116e5eef1a73a4450454ca808545dfe4a36069be8a0d771ca92c850c51f9b3c3e73f244454ba17d03da8fb0be4849728300c7eb8181e39651e SHA512 bb9610b963da0762b1ac21d0907f3801b525431abff495b66cadc244a2b2b334441de2b14442b722bfeb56cb4459fe4021eae0d0454f9e26a80e6efa11f079d2
|
||||
@@ -0,0 +1,23 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index d0c4dbe6..5cd8977a 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -12,7 +12,8 @@ WARN += -Wmissing-declarations
|
||||
#THEFT_INC= -I${THEFT_PATH}/include/
|
||||
#LDFLAGS += -L${THEFT_PATH}/lib -ltheft
|
||||
|
||||
-CFLAGS += -std=c99 -g ${WARN} ${THEFT_INC} ${OPTIMIZE}
|
||||
+MY_CFLAGS := -std=c99 ${WARN} ${THEFT_INC} ${OPTIMIZE} ${CFLAGS}
|
||||
+CFLAGS := ${MY_CFLAGS}
|
||||
|
||||
all: heatshrink test_runners libraries
|
||||
|
||||
@@ -66,8 +67,6 @@ RM ?= rm
|
||||
|
||||
install: libraries heatshrink
|
||||
${INSTALL} -c heatshrink ${PREFIX}/bin/
|
||||
- ${INSTALL} -c libheatshrink_static.a ${PREFIX}/lib/
|
||||
- ${INSTALL} -c libheatshrink_dynamic.a ${PREFIX}/lib/
|
||||
${INSTALL} -c heatshrink_common.h ${PREFIX}/include/
|
||||
${INSTALL} -c heatshrink_config.h ${PREFIX}/include/
|
||||
${INSTALL} -c heatshrink_encoder.h ${PREFIX}/include/
|
||||
@@ -0,0 +1,29 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="data compression library for embedded/real-time systems"
|
||||
HOMEPAGE="https://github.com/atomicobject/heatshrink"
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/atomicobject/${PN}.git"
|
||||
else
|
||||
inherit verify-sig
|
||||
SRC_URI="https://github.com/atomicobject/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/Makefile.patch"
|
||||
)
|
||||
|
||||
src_install() {
|
||||
local MY_ED="${ED}/usr"
|
||||
mkdir "${MY_ED%/}"{,/bin,/include} || die
|
||||
emake PREFIX="${MY_ED%/}/" install
|
||||
}
|
||||
Reference in new issue
Block a user