freebsd-ports/news/husky-hpt/Makefile
Tobias Kortkamp e79fe1aabc Fix WWW in parent/child ports
Many of the WWW are overwritten later which means the wrong value
is used. This did not happen before where the children were either
 a) just using the pkg-descr from the parents
 b) or had their own separate pkg-descr with custom WWW

Use WWW?= in parents when the child's WWW is different.

Children that use the same WWW as the parent can just inherit it,
i.e., the child WWW can be removed.

Approved by:	portmgr (implicit)
2022-09-10 19:41:16 +02:00

36 lines
962 B
Makefile

PORTNAME= husky-hpt
COMMENT= Husky FTN tosser
LICENSE= GPLv2
BROKEN_FreeBSD_13= ld: error: duplicate symbol: config
BROKEN_FreeBSD_14= ld: error: duplicate symbol: config
LIB_DEPENDS= libareafix.so:news/husky-areafix \
libfidoconfig.so:news/husky-fidoconf \
libhusky.so:news/husky-huskylib \
libsmapi.so:news/husky-smapi
USES+= makeinfo perl5
ALL_TARGET= all doc
INSTALL_TARGET= install install-doc
INFO= hpt
MASTERDIR= ${.CURDIR}/../husky
COMPONENT_SUBDIR=hpt
MAKE_ARGS= INFODIR=${PREFIX}/${INFO_PATH}
CFLAGS+= -fcommon # fix build failure with clang-11 on 13-CURRENT
OPTIONS_DEFINE= DOCS
post-patch:
${REINPLACE_CMD} -e 's^/path/to/config^${PREFIX}/etc/fido/config^' \
${BUILD_WRKSRC}/man/hptlink.1
${REINPLACE_CMD} -e 's^/some/path/config^${PREFIX}/etc/fido/config^' \
${BUILD_WRKSRC}/man/hpttree.1
${REINPLACE_CMD} -e 's^/fido/etc/config^${PREFIX}/etc/fido/config^' \
${BUILD_WRKSRC}/man/txt2pkt.1
.include "${MASTERDIR}/Makefile"