From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 11 Nov 2021 10:53:31 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ml6lv-00058y-1e for lore@lore.pengutronix.de; Thu, 11 Nov 2021 10:53:31 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ml6lu-0002M4-Kj; Thu, 11 Nov 2021 10:53:30 +0100 Received: from mail-eopbgr80070.outbound.protection.outlook.com ([40.107.8.70] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ml6lN-0002Lu-Km for ptxdist@pengutronix.de; Thu, 11 Nov 2021 10:52:58 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VPrM55KMqUBkLwHZ+KKrsAViWyh+hSUFNcWj0c9T3PHLRrNf51tXN9jgUnSakheh3Nz6iv+iiEb1yeEaXqLpyThTpseFogA6Yw2wum1wYCJY98WBTyXL622+ChwvG8NilUaU124G2eFx/EL0dTZ++aZ3hGRUzChuu/SY8rWvTRf6BF49Id3c9qGT2kfmOirSGWURksBFqP/fSJ4iGsCsiU35SHqJmbfzMzjZUVWEaPDHcnghB6aIuq+Mo1AaA768wEGF8jUiTQJPrIkV8shVHtcJCXd8hzRamJ/iP0cl57FED2hDnDuMFEIgSVVpTFZnZ844DaejgWdonht1+LbbKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tIQ0r5JofpcOp6GjVFZKREJGgyfBKNt0kLh9dOpIrxg=; b=hUERmLINfaLZgChh0R4kzKSo+RfAx9dMcxAcjbvsOM8olCh5CNUOe9gjae6JEUuLma4Lqr0CjeSYNYUm8HAtYn1+KcovaDww/V2+wkcTNzoVsHyonN8mkOAdH7dGMzEAeMsr2eJi4fmgJfhloc0bCJJLDAxifWUFk5nTWyTMNdIrKN7DPGpK+6RD5FccCXgsnc9olWJL1QdFM3tZhb9Lwfyrti9EBqTW6EjDgIrqYZdB3mCIDsPPBHoce/qfy5BbD0nMHRrq3qWPrqcmt1y0Tlzpika74mWy1+zcIKsrf43iJUw8QyJHLpTGzxKCVNcOPYJkhA8C4mDVDywwD1p7/Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=t2data.com; dmarc=pass action=none header.from=t2data.com; dkim=pass header.d=t2data.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=t2datacom.onmicrosoft.com; s=selector1-t2datacom-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tIQ0r5JofpcOp6GjVFZKREJGgyfBKNt0kLh9dOpIrxg=; b=izn9VW1ZWLGrk13kh8YsofZlC4yK7jCGQA1cIUICbCcs4thHDw6HDOjvwVygzV984ko7jZQesopOgK0GeOHy+m2g9OnYFijyWuSyMffe2B6O8BpAA3rs6lpRCLIBbzSzNB50MD7xRMyFdGWcBdjtMXCBYiItIxgd8FPBw2J8zY8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=t2data.com; Received: from AM9P251MB0173.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:41e::17) by AS4P251MB0414.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:4c1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.10; Thu, 11 Nov 2021 09:52:55 +0000 Received: from AM9P251MB0173.EURP251.PROD.OUTLOOK.COM ([fe80::38dd:f972:69e4:7242]) by AM9P251MB0173.EURP251.PROD.OUTLOOK.COM ([fe80::38dd:f972:69e4:7242%7]) with mapi id 15.20.4690.015; Thu, 11 Nov 2021 09:52:55 +0000 From: Christian Melki To: ptxdist@pengutronix.de Date: Thu, 11 Nov 2021 10:52:48 +0100 Message-Id: <20211111095249.1873275-1-christian.melki@t2data.com> X-Mailer: git-send-email 2.30.2 X-ClientProxiedBy: GV3P280CA0068.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:a::20) To AM9P251MB0173.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:41e::17) MIME-Version: 1.0 Received: from plaid.hq.t2data.com (212.247.174.226) by GV3P280CA0068.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.15 via Frontend Transport; Thu, 11 Nov 2021 09:52:55 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4131ed0e-a946-4236-3820-08d9a4f90912 X-MS-TrafficTypeDiagnostic: AS4P251MB0414: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9yN0yS+tvZ6lhCgs/qikhdJIFULg78vq/Lx+4ryNfJ8z5AgHCzsg8H26flTRBsnx4nMXN9S6N2UZpomVw8w2ZFgOJ63XXOM22JD/3yJAzphK/crKrWRtwuHgQOXGkbN93U200RLWlUgl6aa/x4ML+QMeY4bCOdOQjeL/g3zx01Y5K0EnvcBfvZUoStntqdNIDCpU6fgRQbVQSYL8/bqpgBk2lIpY8Lk8Y+iOmEGd/F+C+/4omDl+uf+MCYZ02DPfHJQ0iiw5Xfem5ZPsFSUCR6k2Ax5dwST1grlLAtF3y7dzPL8Gk6fY6Fa1KSx1TQYkK/PCQppS36OOT+JVf+U9UX99F6890wU+lZTDui/N7EdMrxBbPjldBOY4n5n71X9JoGLTckaJoqg95Xj/6mz+sXZXh+7xZsPI8BnF2KqRDonGtP9Phe3lG6QoiEydoPQdeCn8okVyyGZN85dSotX4qT0MZbYF6azszS1EGsIGUbCDg59F1oFJjI/V2h4t1xKgWIw65t2Mna1fMbmnajnOgcfWC2/ahLmm/Az/j22tOLkcZhXCAnB8zYFD38N1wHRyK+NrdI4Er4hjZ1bmtmJ49aWI54fEtKx3FcTLPHpbsTu19MGaz3Uu79oLqHCl7jFamLCllWwqgiJKczku+yf707D1Y6IdeS8CSd0Xdwm+bou9UBMkEWhfS3TCvRsYqmTSuGSRWDiDSHjwwr2lOYuEHJUuWmnV9gSG/DyUWb3F3czlPtE5IhSQiwzyofh4x9kclIiRDeAWEaSM6CP8ZecEebVQk8s6rzM6XceUbrkcKCQ= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM9P251MB0173.EURP251.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(366004)(396003)(42606007)(346002)(39830400003)(376002)(136003)(38350700002)(1076003)(966005)(66476007)(508600001)(26005)(36756003)(86362001)(6486002)(38100700002)(8676002)(316002)(66556008)(186003)(7696005)(52116002)(2906002)(66946007)(8936002)(6916009)(6666004)(2616005)(44832011)(956004)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?T3ZLfr4wRqbMyjhH2cDbFZ4GdFapLIS5t7YXQpns+MPwke3Currm/Um1hVsA?= =?us-ascii?Q?d1nepZPf8jI49xIhMYRRw+H4JWFl7GlDzscbD47ktwCJyzkX2NCEbKDGZchD?= =?us-ascii?Q?8tsvv29Ug8FvSoGghzj687Ups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us-ascii?Q?WK2iIMWac+F/YFWRJhMmyljPyRCcsuOP12vWjwI23XcYPxkwUFIS0N79bE/c?= =?us-ascii?Q?+7ESnNZMClMEl2k/q+wbjRA/495ld4DBo7f/mIXtonm6VrIfInpJC43p07mz?= =?us-ascii?Q?XiaOFx/+XpWP5w34E3lZL+RpvnltlhkzSM9xxFFbMqWLd8klyGtvqVw1SXTQ?= =?us-ascii?Q?JzAesGAPGBLlqDUOv9GyZFnllvKVTlgLwYDnfUIaW8g+WnQxdtLUhA7KCXk8?= =?us-ascii?Q?FYZXsrB8VrPBEqS8OjCn7dVzHuwL9lel/Z40vSAqFbSf6/fT1uxJT+YZ/ydS?= =?us-ascii?Q?H850dVDoTf4YpjLRrJK0PYkmxoQTt1IMT07Md8Pv0SjlyKky2/L6UjwW4S0S?= =?us-ascii?Q?qHM3QFHfq1/iF74cjfJi/Upl25CqnhPyAhT34qmwFifnr5stk07pHNOoZ/7z?= =?us-ascii?Q?I7ZDlL5zP8szg4v4bfCr2zA9GkvW3jf/5ZPb3Bn77k4gq/2XkJxj43lMxJSW?= =?us-ascii?Q?jKX60vkI7qa5fisQkadN6KoIV6koDrJac2z5v9OlY/NFZjIYGIeW6FzMtFnh?= =?us-ascii?Q?cNPwq6mpdgT9AtHSdF2pH2pyqHZKdG994FT2px7rgr3Tp3tmVcOSS7oVvPd2?= =?us-ascii?Q?adpUZC1n6yoqKOt7QR52Q8zAQtjmJYKVW3kQcaYibZR2fHMml2ghRinDWt3Y?= =?us-ascii?Q?tl3wkoBDh1gRmbclXdEx27AzHus=3D?= X-OriginatorOrg: t2data.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4131ed0e-a946-4236-3820-08d9a4f90912 X-MS-Exchange-CrossTenant-AuthSource: AM9P251MB0173.EURP251.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2021 09:52:55.7160 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 27928da5-aacd-4ba1-9566-c748a6863e6c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ab34tpzGJIIwcbWd2ufEnv7DnygTPPKC49L4NcuGFsfaV/oZic+JIWUE0om4wfpf5mPZSokSBVYFRl38oD9LBm0pmeHJZC9UeCtGUDS4nv8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4P251MB0414 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.4 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS,URI_NOVOWEL autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH] librtlsdr: New package. Version 0.8 X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false librtlsdr is a library for using RealTek DVB-T receivers as SDR (Software Defined Radio). This library is used by various tools to tune into bands and decode radio data. Signed-off-by: Christian Melki --- rules/librtlsdr.in | 29 ++++++++++++++++++++ rules/librtlsdr.make | 64 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 rules/librtlsdr.in create mode 100644 rules/librtlsdr.make diff --git a/rules/librtlsdr.in b/rules/librtlsdr.in new file mode 100644 index 000000000..6f53ee7bb --- /dev/null +++ b/rules/librtlsdr.in @@ -0,0 +1,29 @@ +## SECTION=system_libraries + +menuconfig LIBRTLSDR + tristate + prompt "librtlsdr " + select HOST_CMAKE + select LIBUSB + help + Realtek SDR (Software Defined Radio) library. + +if LIBRTLSDR + +comment "Install options ---" + +config LIBRTLSDR_TOOLS + bool + default y + prompt "Install tools " + help + Installs rtl-sdr tools. + +config LIBRTLSDR_UDEV + bool + default y + prompt "Install udev rules " + help + Installs udev rules. + +endif diff --git a/rules/librtlsdr.make b/rules/librtlsdr.make new file mode 100644 index 000000000..da17dc05a --- /dev/null +++ b/rules/librtlsdr.make @@ -0,0 +1,64 @@ +# -*-makefile-*- +# +# Copyright (C) 2021 by Christian Melki +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBRTLSDR) += librtlsdr + +# +# Paths and names +# +LIBRTLSDR_VERSION := 0.8.0 +LIBRTLSDR_MD5 := 64f31f30f79cd91e4cd70b0a8edcff4e +LIBRTLSDR := librtlsdr-$(LIBRTLSDR_VERSION) +LIBRTLSDR_SUFFIX := tar.gz +LIBRTLSDR_URL := https://github.com/librtlsdr/librtlsdr/archive/refs/tags/v$(LIBRTLSDR_VERSION).$(LIBRTLSDR_SUFFIX) +LIBRTLSDR_SOURCE := $(SRCDIR)/$(LIBRTLSDR).$(LIBRTLSDR_SUFFIX) +LIBRTLSDR_DIR := $(BUILDDIR)/$(LIBRTLSDR) +LIBRTLSDR_LICENSE := GPL-2.0-only + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +LIBRTLSDR_CONF_TOOL := cmake +LIBRTLSDR_CONF_OPT := \ + $(CROSS_CMAKE_USR) \ + -DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR) \ + -DLIB_INSTALL_DIR=/usr/$(CROSS_LIB_DIR) \ + -DENABLE_SHARED=ON \ + -DINSTALL_UDEV_RULES=ON + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/librtlsdr.targetinstall: + @$(call targetinfo) + @$(call install_init, librtlsdr) + @$(call install_fixup, librtlsdr,PRIORITY,optional) + @$(call install_fixup, librtlsdr,SECTION,base) + @$(call install_fixup, librtlsdr,AUTHOR,"Christian Melki ") + @$(call install_fixup, librtlsdr,DESCRIPTION,missing) + @$(call install_lib, librtlsdr, 0, 0, 0644, librtlsdr) + +ifdef PTXCONF_LIBRTLSDR_TOOLS + @$(call install_glob, librtlsdr, 0, 0, -, /usr/bin, *rtl_*,) +endif + +ifdef PTXCONF_LIBRTLSDR_UDEV + @$(call install_copy, librtlsdr, 0, 0, 0644, \ + $(LIBRTLSDR_PKGDIR)/etc/udev/rules.d/rtl-sdr.rules, \ + /usr/lib/udev/rules.d/81-rtl-sdr.rules) +endif + + @$(call install_finish, librtlsdr) + @$(call touch) + +# vim: syntax=make -- 2.30.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de