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
2024Q1
Muhammad Moinur Rahman 2023-10-20 18:39:40 +02:00
parent bddac0b8ed
commit fe70968d80
1 changed files with 13 additions and 7 deletions

View File

@ -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}
post-patch:
OPTIONS_DEFINE= INFO
OPTIONS_DEFAULT= INFO
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>