aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Engberg <diizzy@FreeBSD.org>2024-01-22 19:37:54 +0000
committerDaniel Engberg <diizzy@FreeBSD.org>2024-01-22 19:58:36 +0000
commit2af517575efca0478071f04dbe1fdcf7440b32a5 (patch)
tree78131b78eb191e95f1ea835535154bb244c729dc
parenta311aa78c162fbdd2f3319e8775c33c72b56affc (diff)
downloadports-2af517575efca0478071f04dbe1fdcf7440b32a5.tar.gz
ports-2af517575efca0478071f04dbe1fdcf7440b32a5.zip
audio/libg722: Update to latest commit and switch to CMake
Switch to CMake as it cleans up (simplifies) Makefile PR: 276169 Approved by: portmgr (maintainer timeout, 2+ weeks)
-rw-r--r--audio/libg722/Makefile19
-rw-r--r--audio/libg722/distinfo6
-rw-r--r--audio/libg722/files/patch-Makefile11
-rw-r--r--audio/libg722/pkg-plist2
4 files changed, 10 insertions, 28 deletions
diff --git a/audio/libg722/Makefile b/audio/libg722/Makefile
index 7631a090cb3b..12f359cbeff2 100644
--- a/audio/libg722/Makefile
+++ b/audio/libg722/Makefile
@@ -1,7 +1,7 @@
PORTNAME= libg722
DISTVERSIONPREFIX= v_
-DISTVERSION= 1_0_2
-PORTREVISION= 1
+DISTVERSION= 1_0_3-11
+DISTVERSIONSUFFIX= -gf29ac9b
CATEGORIES= audio
MAINTAINER= ports@sippysoft.com
@@ -12,19 +12,12 @@ LICENSE_NAME= ${LICENSE:S/_/ /}
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
-USE_GITHUB= yes
-GH_ACCOUNT= sippy
-
+USES= cmake
USE_LDCONFIG= yes
-MAKE_ENV= MAKEOBJDIR=${WRKDIR}
+USE_GITHUB= yes
+GH_ACCOUNT= sippy
-do-install:
- ${INSTALL_DATA} ${WRKSRC}/g722.h ${STAGEDIR}${PREFIX}/include
- ${INSTALL_DATA} ${WRKSRC}/g722_decoder.h ${STAGEDIR}${PREFIX}/include
- ${INSTALL_DATA} ${WRKSRC}/g722_encoder.h ${STAGEDIR}${PREFIX}/include
- ${INSTALL_DATA} ${WRKDIR}/libg722.a ${STAGEDIR}${PREFIX}/lib
- ${INSTALL_LIB} ${WRKDIR}/libg722.so.0 ${STAGEDIR}${PREFIX}/lib
- ${LN} -sf libg722.so.0 ${STAGEDIR}${PREFIX}/lib/libg722.so
+TEST_TARGET= test
.include <bsd.port.mk>
diff --git a/audio/libg722/distinfo b/audio/libg722/distinfo
index 46dab7e6f302..2046558049bd 100644
--- a/audio/libg722/distinfo
+++ b/audio/libg722/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1477432968
-SHA256 (sippy-libg722-v_1_0_2_GH0.tar.gz) = 8971f66a32cf92950a6b3eb2e5ad4a0ed301900727061b54e35471e3f0cebee7
-SIZE (sippy-libg722-v_1_0_2_GH0.tar.gz) = 109821
+TIMESTAMP = 1704611171
+SHA256 (sippy-libg722-v_1_0_3-11-gf29ac9b_GH0.tar.gz) = 8255b6df483b35404db000948c18e1281db9990352fcaa04163bea27a70bfb3e
+SIZE (sippy-libg722-v_1_0_3-11-gf29ac9b_GH0.tar.gz) = 112073
diff --git a/audio/libg722/files/patch-Makefile b/audio/libg722/files/patch-Makefile
deleted file mode 100644
index 35ef132a1bbb..000000000000
--- a/audio/libg722/files/patch-Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.orig
-+++ Makefile
-@@ -4,7 +4,7 @@
- SHLIB_MAJOR= 0
- PREFIX?= /usr/local
- LIBDIR= ${PREFIX}/lib
--NO_PROFILE= YES
-+MK_PROFILE= no
- INCLUDEDIR= ${PREFIX}/include
- MAN=
- SRCS= g722_decode.c g722_encode.c
diff --git a/audio/libg722/pkg-plist b/audio/libg722/pkg-plist
index 6730799fd692..3a088b14f6f6 100644
--- a/audio/libg722/pkg-plist
+++ b/audio/libg722/pkg-plist
@@ -1,6 +1,6 @@
+include/g722_codec.h
lib/libg722.a
lib/libg722.so
lib/libg722.so.0
-include/g722.h
include/g722_decoder.h
include/g722_encoder.h