Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 2026 05:59:25 +0000
From:      Kousuke Kannagi <mce@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: bca9cd919993 - main - editors/ted: Fix build
Message-ID:  <69bf853d.35cae.2d9911cc@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by mce:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bca9cd919993fbd38dc13e88781a1cb72be8c025

commit bca9cd919993fbd38dc13e88781a1cb72be8c025
Author:     Kousuke Kannagi <mce@FreeBSD.org>
AuthorDate: 2026-03-21 01:00:56 +0000
Commit:     Kousuke Kannagi <mce@FreeBSD.org>
CommitDate: 2026-03-22 05:54:16 +0000

    editors/ted: Fix build
    
    Update MASTER_SITES, LIB_DEPENDS, USES and USE_XORG.
    Remove the REINPLACE_CMD related to iconv.
    Switch freetype-config to pkg-config to fix build.
    
    ld: error: undefined symbol: FT_New_Face
    >>> referenced by appFontConfig.c
    >>>               appFontConfig.o:(appFcGetFontMetrics) in archive ../lib/appFrame.a
    
    ld: error: undefined symbol: FT_Get_Postscript_Name
    >>> referenced by appFontConfig.c
    >>>               appFontConfig.o:(appFcGetFontMetrics) in archive ../lib/appFrame.a
    
    PR:             291942
    Approved by:    osa (mentor)
---
 editors/ted/Makefile                       | 12 +++++-------
 editors/ted/files/patch-Ted_configure      | 22 ++++++++++++++++++++++
 editors/ted/files/patch-appFrame_configure | 22 ++++++++++++++++++++++
 3 files changed, 49 insertions(+), 7 deletions(-)

diff --git a/editors/ted/Makefile b/editors/ted/Makefile
index 208df15fa7d5..2e0ba94f53e4 100644
--- a/editors/ted/Makefile
+++ b/editors/ted/Makefile
@@ -3,7 +3,7 @@ PORTVERSION=	2.23
 PORTREVISION=	8
 CATEGORIES=	editors
 MASTER_SITES=	ftp://ftp.nluug.nl/pub/editors/ted/ \
-		http://fossies.org/linux/misc/
+		https://ftp.nluug.nl/pub/editors/ted/
 EXTRACT_SUFX=	.src.tar.gz
 
 MAINTAINER=	ports@FreeBSD.org
@@ -14,6 +14,8 @@ LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/gpl.txt
 
 LIB_DEPENDS=	libpcre.so:devel/pcre \
+		libfontconfig.so:x11-fonts/fontconfig \
+		libfreetype.so:print/freetype2 \
 		libpng.so:graphics/png \
 		libtiff.so:graphics/tiff \
 		libpaper.so:print/libpaper
@@ -21,8 +23,8 @@ RUN_DEPENDS=	gsfonts>0:print/gsfonts
 
 WRKSRC=		${WRKDIR}/Ted-${PORTVERSION}
 
-USES=		ghostscript:x11,run iconv pkgconfig xorg
-USE_XORG=	xext xft
+USES=		ghostscript:x11,run iconv jpeg pkgconfig xorg
+USE_XORG=	ice sm x11 xext xft xmu xorgproto xpm xt
 GNU_CONFIGURE=	yes
 MAKE_ENV=	DEF_AFMDIR="-DAFMDIR=\"\\\"${AFMDIR}/\\\"\"" \
 		DEF_INDDIR="-DINDDIR=\"\\\"${INDDIR}/\\\"\"" \
@@ -60,10 +62,6 @@ post-patch:
 		 s|/usr/local|${LOCALBASE}|g ; \
 		 /paper.h/s|/usr/include|${LOCALBASE}/include|g ; \
 		 /paper.h/s|/usr/lib|${LOCALBASE}/lib|g'
-.if ! empty(ICONV_LIB)
-	@${REINPLACE_CMD} 's|/iconv\.so|/libiconv.so|' \
-		${WRKSRC}/Ted/configure ${WRKSRC}/textEncoding/configure
-.endif
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/Ted/Ted ${STAGEDIR}${PREFIX}/bin
diff --git a/editors/ted/files/patch-Ted_configure b/editors/ted/files/patch-Ted_configure
new file mode 100644
index 000000000000..70d49852dd40
--- /dev/null
+++ b/editors/ted/files/patch-Ted_configure
@@ -0,0 +1,22 @@
+--- Ted/configure.orig	2025-12-23 21:29:34 UTC
++++ Ted/configure
+@@ -4017,15 +4017,15 @@ rm -f core conftest.err conftest.$ac_objext conftest.$
+     FT2_LIBS_FOUND=NO
+     FT2_FOUND=0
+ 
+-    if  ( freetype-config --cflags ) > /dev/null 2>&1
++    if  ( pkg-config --cflags freetype2 ) > /dev/null 2>&1
+     then
+-	FT2_CFLAGS=`freetype-config --cflags`
++	FT2_CFLAGS=`pkg-config --cflags freetype2`
+ 	FT2_HEADERS_FOUND=YES
+     fi
+ 
+-    if  ( freetype-config --libs ) > /dev/null 2>&1
++    if  ( pkg-config --libs freetype2 ) > /dev/null 2>&1
+     then
+-	FT2_LIBS=`freetype-config --libs`
++	FT2_LIBS=`pkg-config --libs freetype2`
+ 	FT2_LIBS_FOUND=YES
+     fi
+ 
diff --git a/editors/ted/files/patch-appFrame_configure b/editors/ted/files/patch-appFrame_configure
new file mode 100644
index 000000000000..107d09bd6166
--- /dev/null
+++ b/editors/ted/files/patch-appFrame_configure
@@ -0,0 +1,22 @@
+--- appFrame/configure.orig	2025-12-23 20:25:09 UTC
++++ appFrame/configure
+@@ -3828,15 +3828,15 @@ rm -f core conftest.err conftest.$ac_objext conftest.$
+     FT2_LIBS_FOUND=NO
+     FT2_FOUND=0
+ 
+-    if  ( freetype-config --cflags ) > /dev/null 2>&1
++    if  ( pkg-config --cflags freetype2 ) > /dev/null 2>&1
+     then
+-	FT2_CFLAGS=`freetype-config --cflags`
++	FT2_CFLAGS=`pkg-config --cflags freetype2`
+ 	FT2_HEADERS_FOUND=YES
+     fi
+ 
+-    if  ( freetype-config --libs ) > /dev/null 2>&1
++    if  ( pkg-config --libs freetype2 ) > /dev/null 2>&1
+     then
+-	FT2_LIBS=`freetype-config --libs`
++	FT2_LIBS=`pkg-config --libs freetype2`
+ 	FT2_LIBS_FOUND=YES
+     fi
+ 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69bf853d.35cae.2d9911cc>