From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-05.nifty.com (conssluserg-05.nifty.com [210.131.2.90]) by sourceware.org (Postfix) with ESMTPS id 87CEA3858D38 for ; Mon, 6 Feb 2023 12:22:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 87CEA3858D38 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp Received: from HP-Z230 (aj135041.dynamic.ppp.asahi-net.or.jp [220.150.135.41]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 316CM4m7016972 for ; Mon, 6 Feb 2023 21:22:04 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 316CM4m7016972 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1675686124; bh=p5ePq03+N73S6Zdx5gC2dQ0q2XccHaNZ6qgGORdJwEw=; h=Date:From:To:Subject:In-Reply-To:References:From; b=PU3b2qXRKcNa4GMePe562tlE10pDO1C2A3p/8AhTj4ljdSl+6QlFsNN6JwS5phguq nGWnOsCr5fY/ZqkhCHRarnxBAVARzVHUGRCyU4CdPTTQmruynSmyXEoL6wYqSC1u8O KE5o60v+1FUbLuuzgf3PsWC7rM/RhtvcXl1Ms+kYV7LuJ+9ZDcyBKddvsK4eA/jLaS s+ZcCwgtWZDvo4tl/7Y67F33B7g5lSqRS/ioDiuoRlrwOlQEVw09HSJnFaXb6fSDyK QBSatBodwrslxQKdW9bgRznP5P6DermkIo3l56Air7+Lhvj40/vqdV0nR6j3CvNskE zqRDfD4MiABrA== X-Nifty-SrcIP: [220.150.135.41] Date: Mon, 6 Feb 2023 21:22:04 +0900 From: Takashi Yano To: "cygwin-apps@cygwin.com" Subject: Re: [ITP] AMF (1.4.29) Message-Id: <20230206212204.2b2d83eb29b67be6f005563f@nifty.ne.jp> In-Reply-To: <47c16572-516a-bb5c-def0-6ff9c8a4858b@dronecode.org.uk> References: <20230205173824.23b21b4ea8316305704066ba@nifty.ne.jp> <47c16572-516a-bb5c-def0-6ff9c8a4858b@dronecode.org.uk> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Mon__6_Feb_2023_21_22_04_+0900_7f7O09P77/85GBAO" X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,SUBJ_ALL_CAPS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This is a multi-part message in MIME format. --Multipart=_Mon__6_Feb_2023_21_22_04_+0900_7f7O09P77/85GBAO Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 --Multipart=_Mon__6_Feb_2023_21_22_04_+0900_7f7O09P77/85GBAO Content-Type: text/plain; name="AMF.cygport" Content-Disposition: attachment; filename="AMF.cygport" Content-Transfer-Encoding: 7bit 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} } --Multipart=_Mon__6_Feb_2023_21_22_04_+0900_7f7O09P77/85GBAO--