From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: "cygwin-apps@cygwin.com" <cygwin-apps@cygwin.com>
Subject: Re: [ITP] AMF (1.4.29)
Date: Mon, 6 Feb 2023 21:22:04 +0900 [thread overview]
Message-ID: <20230206212204.2b2d83eb29b67be6f005563f@nifty.ne.jp> (raw)
In-Reply-To: <47c16572-516a-bb5c-def0-6ff9c8a4858b@dronecode.org.uk>
[-- Attachment #1: Type: text/plain, Size: 803 bytes --]
On Sun, 5 Feb 2023 16:34:19 +0000
Jon Turney wrote:
> On 05/02/2023 08:38, Takashi Yano via Cygwin-apps wrote:
> > I would like to propose new package AMF, which is
> > codec-headers for AMD GPUs. This is needed by ffmpeg
> > package I had proposed, and also provided for ffmpeg-free
> > package in fedora.
> >
> > I already prepared the package at the following location.
> >
> > https://tyan0.yr32.net/cygwin/noarch/release/AMF/
>
> A comment in the cygport saying what the src_unpack_hook is doing, and
> why would be helpful.
>
> A comment by the "noarch" saying "this is noarch because it's just
> header files" would be helpful.
>
> Otherwise, looks good.
Thanks for the advice. I revised the cygport file
as attached. Is this as you expected?
--
Takashi Yano <takashi.yano@nifty.ne.jp>
[-- Attachment #2: AMF.cygport --]
[-- Type: text/plain, Size: 1640 bytes --]
NAME="AMF"
VERSION=1.4.29
RELEASE=1
LICENSE="MIT"
CATEGORY="Devel"
SUMMARY="Advanced Media Framework (AMF) SDK"
DESCRIPTION="A light-weight, portable multimedia framework that abstracts away most of the platform and API-specific details. AMF is supported on the closed source AMD Pro driver and OpenMax on the open source AMD Mesa driver."
HOMEPAGE="https://gpuopen.com/advanced-media-framework/"
ARCH="noarch" # This is noarch because it's just header files.
SRC_URI="${NAME}-cleaned-${VERSION}.tar.xz"
# Make dummy source file for prep if the cleaned one is not exist.
if [ ! -f ${SRC_URI} ]
then
mkdir ${NAME}-${VERSION}
touch ${NAME}-${VERSION}/dummy
tar acf ${SRC_URI} ${NAME}-${VERSION}
rm -rf ${NAME}-${VERSION}
fi
CYGPORT_USE_UNSTABLE_API=1
src_unpack_hook() {
if [ $(tar tvf ../../../${SRC_URI} | wc -l) -eq 2 ] # Source file is dummy
then
NV=${NAME}-${VERSION}
pushd ..
rm -rf ${NV} # Remove dummy source file.
# Download original source file.
wget https://github.com/GPUOpen-LibrariesAndSDKs/AMF/archive/refs/tags/v${VERSION}.tar.gz
tar xf v${VERSION}.tar.gz
rm -f v${VERSION}.tar.gz
# Remove unnecessary files.
rm -rf ${NV}/Thirdparty ${NV}/amf/public/common ${NV}/amf/public/make ${NV}/amf/public/proj ${NV}/amf/public/props ${NV}/amf/public/samples ${NV}/amf/public/src ${NV}/amf/doc ${NV}/.github
# Make cleaned source file which has only necessary header files.
tar acf ../../${NAME}-cleaned-${VERSION}.tar.xz ${NV}
popd
fi
}
src_compile() {
:
}
src_install() {
mkdir -p ${D}/usr/include
# Just make symlink for header files.
ln -fs ${S}/amf/public/include ${D}/usr/include/${NAME}
}
next prev parent reply other threads:[~2023-02-06 12:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-05 8:38 Takashi Yano
2023-02-05 16:34 ` Jon Turney
2023-02-06 12:22 ` Takashi Yano [this message]
2023-02-13 18:05 ` Jon Turney
2023-02-14 9:11 ` Takashi Yano
2023-02-16 18:48 ` Jon Turney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230206212204.2b2d83eb29b67be6f005563f@nifty.ne.jp \
--to=takashi.yano@nifty.ne.jp \
--cc=cygwin-apps@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).