From nobody Sun Dec 31 22:59:40 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T3F1T4qBrz55Vsr; Sun, 31 Dec 2023 22:59:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T3F1T2p2Sz4H9N; Sun, 31 Dec 2023 22:59:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704063581; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zo7m39r+xmGbmCB5xbPtqySa1Lfu2OC6zISYZ39Hjuw=; b=OvMYON/jPXtPqXqBEUtF6kslUqggRTFR3P5CrgidGbeu7TBchqecKF1wZSapMY2OoJdUP/ YOhQzHXR1FsQYQ9nxT00JZ+oEXQ/T85nFrsVw3kbdBBhZz1EToB/M5pcaDhVgMdCp55oEN 0ZNbhQAeRZPO0uXixY1WWCE0TTcxji4J8pxXdtFeLVOAUd7HHzKWisjkrfmiiRrKFMlmku ZnOYba6jy/nuNGMVssr/8EKfxCi6ViuH9PCLvWyP75wY7QCr6MKPzZnbRht3snC5Wk7T5t wDt6PeFpDTUOFZJqlNkHUGmw2zNBTd1kgfDRmP6wuLoz2SmJqaIbpr7m8aQVtg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704063581; a=rsa-sha256; cv=none; b=rnPrOKU+LkxVB947z6HvSigUOle1p9EeA1fFf3+BQjctKUdY7ZLEdBXaLJos3+ec/QTrrE 7dFOd7kiuL/LJKsHIpf0+cNlqRjGTIEQsx7ghuPueRmDx9Ard42oVV3+lkjN3LJA0Yt4Fi NnDhNJBUhQMNrGuwfuEaxi4wCxQOIReJNbUfpq8HOR9Uoy4zph563ADSXHTGZ/GxfsGCZg kqTQA69InT+K9UCjWUlkwXhAnb3H16ajzDCbifSzvD4XrW+nONwl6F+Z3jH+7AlNl9vv+R Z3hEF5ATqUOnPYrFHxAbBhHeuCJO4Vl7ljJ1UO1vQds5cpP+YEGbz/4t3Oi+cg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704063581; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zo7m39r+xmGbmCB5xbPtqySa1Lfu2OC6zISYZ39Hjuw=; b=goEG+ntB2j5gsRS8aCACY4Q7Ecv+uHJEDfhPa7XdSVnQ5rYs5ebooeoNkGX0UxNzFBJXcS CZMCUEFJERgoj95mbTqVqupYiqFQEPM1+4hqcLQQTtuI4yRhNcxnIRX8QwC50EXP6kaGA2 F7T/2lT1ePlBnad2oCisZlbIXeddncnUHbyvioTNAF5LBXimpE1Q2wHeKixLJYtMRK4fZ1 g3nECPPUOcM+r6+yUjoORf28baLizNYXSxs+Ebaz56+9R2GWtdBV0TGapZtB6+/u0+IkXf gVbnNDZW/7F0uX8t3sbCy6XC/G33kSfCgBKE7d/ao2nsBWJ1BPDOltgW6A+aeA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T3F1S6WZzzsRY; Sun, 31 Dec 2023 22:59:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BVMxerv096325; Sun, 31 Dec 2023 22:59:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BVMxe98096322; Sun, 31 Dec 2023 22:59:40 GMT (envelope-from git) Date: Sun, 31 Dec 2023 22:59:40 GMT Message-Id: <202312312259.3BVMxe98096322@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 27f5f3f84611 - main - audio/gramofile: Jettison byteswap/endian hacks List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 27f5f3f84611f66f387f5eba15f23c6b61942e40 Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=27f5f3f84611f66f387f5eba15f23c6b61942e40 commit 27f5f3f84611f66f387f5eba15f23c6b61942e40 Author: Muhammad Moinur Rahman AuthorDate: 2023-12-31 15:53:50 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-12-31 20:23:49 +0000 audio/gramofile: Jettison byteswap/endian hacks - Pet portclippy --- audio/gramofile/Makefile | 7 ++++++- audio/gramofile/files/post-patch-bplay.c | 32 -------------------------------- 2 files changed, 6 insertions(+), 33 deletions(-) diff --git a/audio/gramofile/Makefile b/audio/gramofile/Makefile index 41df00cbf532..ce210b99b34a 100644 --- a/audio/gramofile/Makefile +++ b/audio/gramofile/Makefile @@ -12,14 +12,19 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Audio recording and tick/scratch reduction for e.g. vinyl records WWW= http://www.opensourcepartners.nl/~costar/gramofile/ +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + LIB_DEPENDS= libfftw.so:math/fftw -ALL_TARGET= gramofile USES= alias gmake ncurses perl5 USE_CSTD= gnu89 + MAKE_ARGS= CC="${CC}" \ CXX="${CXX}" \ PERLCOREDIR=${PERLCOREDIR} +ALL_TARGET= gramofile + CFLAGS+= -D_WANT_SEMUN PERLCOREDIR= ${LOCALBASE}/lib/perl5/${PERL_VER}/${PERL_ARCH}/CORE diff --git a/audio/gramofile/files/post-patch-bplay.c b/audio/gramofile/files/post-patch-bplay.c deleted file mode 100644 index 04a41df49ab3..000000000000 --- a/audio/gramofile/files/post-patch-bplay.c +++ /dev/null @@ -1,32 +0,0 @@ -Index: bplaysrc/bplay.c -@@ -33,23 +33,30 @@ - /* Needed for BYTE_ORDER and BIG/LITTLE_ENDIAN macros. */ - #ifndef _BSD_SOURCE - # define _BSD_SOURCE --# include -+# include - # undef _BSD_SOURCE - #else - # include - #endif - - #include -+#ifndef __FreeBSD__ - #include -+#endif - - /* Adapted from the byteorder macros in the Linux kernel. */ - #if BYTE_ORDER == LITTLE_ENDIAN - #define cpu_to_le32(x) (x) - #define cpu_to_le16(x) (x) - #else -+#ifdef __FreeBSD__ -+#define cpu_to_le32(x) bswap32((x)) -+#define cpu_to_le16(x) bswap16((x)) -+#else - #define cpu_to_le32(x) bswap_32((x)) - #define cpu_to_le16(x) bswap_16((x)) -+#endif - #endif - - #define le32_to_cpu(x) cpu_to_le32((x))