git: fe70968d8070 - main - textproc/iksemel: Optional USES=makeinfo
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Oct 2023 21:04:48 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=fe70968d80700b99f939b7a2756d8fbfc053358b commit fe70968d80700b99f939b7a2756d8fbfc053358b Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-10-20 16:39:40 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-10-20 21:04:38 +0000 textproc/iksemel: Optional USES=makeinfo - Add new option INFO - Utilize USES=makeinfo only when used specially for INFO only in this case. - Utilize USES=localbase - Pet portclippy --- textproc/iksemel/Makefile | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/textproc/iksemel/Makefile b/textproc/iksemel/Makefile index 1beaeec6a8f6..9bc6212cc83b 100644 --- a/textproc/iksemel/Makefile +++ b/textproc/iksemel/Makefile @@ -11,27 +11,33 @@ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libgnutls.so:security/gnutls -USES= autoreconf libtool makeinfo pathfix pkgconfig - +USES= autoreconf libtool localbase:ldflags pathfix pkgconfig USE_GITHUB= yes GH_ACCOUNT= meduketto GH_TAGNAME= 978b733 - USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ARGS+=--with-gnutls=yes \ --without-openssl \ --disable-python -CPPFLAGS+= ${CXXFLAGS} -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib INSTALL_TARGET= install-strip -INFO= iksemel +CPPFLAGS+= ${CXXFLAGS} + +OPTIONS_DEFINE= INFO +OPTIONS_DEFAULT= INFO -post-patch: +INFO_USES= makeinfo +INFO_INFO= iksemel + +post-patch-INFO-on: @${REINPLACE_CMD} -e 's|@setfilename iksemel|@setfilename iksemel.info|' \ ${WRKSRC}/doc/iksemel.texi +post-patch-INFO-off: + @${REINPLACE_CMD} -e '/SUBDIRS/s|doc||' \ + ${WRKSRC}/Makefile.am + .include <bsd.port.mk>