diff --git a/x11-fonts/otf2bdf/Makefile b/x11-fonts/otf2bdf/Makefile index 2f0d2029f5c9..70f7ef2f4c1c 100644 --- a/x11-fonts/otf2bdf/Makefile +++ b/x11-fonts/otf2bdf/Makefile @@ -1,30 +1,30 @@ PORTNAME= otf2bdf DISTVERSION= 3.1 CATEGORIES= x11-fonts MASTER_SITES= http://sofia.nmsu.edu/~mleisher/Software/otf2bdf/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ mkinstalldirs DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= yasu@utahime.org COMMENT= OpenType to BDF converter LICENSE= MIT LIB_DEPENDS= libfreetype.so:print/freetype2 -USES= autoreconf tar:tgz +USES= autoreconf pkgconfig tar:tgz GNU_CONFIGURE= yes PLIST_FILES= bin/otf2bdf \ man/man1/otf2bdf.1.gz post-extract: ${INSTALL_SCRIPT} ${DISTDIR}/${DIST_SUBDIR}/mkinstalldirs ${WRKSRC} post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/otf2bdf .include diff --git a/x11-fonts/otf2bdf/files/patch-configure.in b/x11-fonts/otf2bdf/files/patch-configure.in new file mode 100644 index 000000000000..b44d091bb626 --- /dev/null +++ b/x11-fonts/otf2bdf/files/patch-configure.in @@ -0,0 +1,13 @@ +--- configure.in.orig 2021-08-07 10:16:18 UTC ++++ configure.in +@@ -5,8 +5,8 @@ AC_INIT(otf2bdf.c) + AC_PROG_CC + + OLDLIBS=$LIBS +-LIBS="$LIBS `freetype-config --libs`" +-CPPFLAGS="$CPPFLAGS `freetype-config --cflags`" ++LIBS="$LIBS `pkg-config freetype2 --libs`" ++CPPFLAGS="$CPPFLAGS `pkg-config freetype2 --cflags`" + AC_CHECK_LIB(freetype, FT_Init_FreeType, LIBS="$LIBS -lfreetype",[ + AC_MSG_ERROR([Can't find Freetype library! Compile FreeType first.])]) + AC_SUBST(LIBS)