Files
ports/irc/bitchx/Makefile
Alexey Dokuchaev 748762bf0f irc/bitchx: some minor, non-functional changes to the port (+)
Update WWW line, GC no longer needed GNU_CONFIGURE_MANPREFIX, and
simplify the inference of --with-plugins configure switch value.

Try to remove MAKE_JOBS_UNSAFE (again): it was readded with commit
b6cc4b7085 because `chinese/bitchx' slave port was trying to
link `wserv' program before all of its object files were built.
Unfortunately, I could not find the build log from those days and
my attempts to force this error had failed.  The program is linked
from five object files and all of them are listed as the target's
dependencies.  Let's try to see the actual error if the bug could
still exhibit itself.

Reported on:	https://forums.freebsd.org/threads/irc.93538/post-656154
Forwarded by:	Graham Perrin
2024-06-01 14:27:42 +00:00

80 lines
2.2 KiB
Makefile

PORTNAME= bitchx
PORTVERSION= 1.2.1
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES+= irc
MASTER_SITES= SF/${PORTNAME}/ircii-pana/${PORTNAME}-${DISTVERSION}
MAINTAINER= danfe@FreeBSD.org
COMMENT= Feature-rich scriptable IRC client
WWW= https://bitchx.sourceforge.net/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
USES= cpe gmake ncurses
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --exec-prefix="${PREFIX}/share" \
--bindir="${PREFIX}/bin" \
--datadir="${PREFIX}/share" \
--libdir="${PREFIX}/share"
CONFLICTS_INSTALL?= zh-bitchx
DATADIR= ${PREFIX}/share/bx
DOCSDIR= ${PREFIX}/share/bx/help
PLIST_SUB+= DISTVERSION=${DISTVERSION}
PORTDOCS= *
OPTIONS_DEFINE= DOCS LANG_HE IPV6 LATIN PLUGINS SSL TOGGLES
OPTIONS_DEFAULT= PLUGINS SSL
OPTIONS_SUB= yes
LATIN_DESC= Recommended for ISO-8859-1 display
PLUGINS_DESC= Build a handful of BitchX plugins
TOGGLES_DESC= Disable annoyance toggles
IPV6_CONFIGURE_ENABLE= ipv6
PLUGINS_CONFIGURE_WITH= plugins="${PLUGIN_LIST:ts,}"
SSL_USES= ssl
SSL_CONFIGURE_WITH= ssl="${OPENSSLBASE}"
PLUGIN_LIST= abot acro autocycle blowfish cavlink cdrom encrypt \
europa fserv hint nap nicklist pkga possum qbx qmail wavplay
post-patch:
${REINPLACE_CMD} -e 's|bzip2|true|g' ${WRKSRC}/Makefile.in
${REINPLACE_CMD} -e 's|SSLeay|ERR_get_error|' ${WRKSRC}/configure
${REINPLACE_CMD} -e 's|impress_me,|(int (*)(void *, char *))&|' \
${WRKSRC}/dll/fserv/fserv.c
post-patch-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/bitchx-docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
post-patch-LANG_HE-on:
${REINPLACE_CMD} -e 's|#undef WANT_HEBREW|#define WANT_HEBREW|' \
${WRKSRC}/include/config.h
post-patch-LATIN-on:
${REINPLACE_CMD} -e 's|#undef LATIN1|#define LATIN1|' \
${WRKSRC}/include/config.h
post-patch-TOGGLES-on:
${REINPLACE_CMD} -e 's|DEFAULT_AUTO_AWAY ON|DEFAULT_AUTO_AWAY OFF|' \
${WRKSRC}/include/config.h
${REINPLACE_CMD} -e 's|DEFAULT_KICK_OPS ON|DEFAULT_KICK_OPS OFF|' \
${WRKSRC}/include/config.h
${REINPLACE_CMD} -e 's|DEFAULT_AUTO_REJOIN ON|DEFAULT_AUTO_REJOIN OFF|' \
${WRKSRC}/include/config.h
post-stage:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
${STRIP_CMD} ${STAGEDIR}${PREFIX}/share/bx/wserv
post-stage-PLUGINS-on:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/share/bx/plugins/*.so
.include <bsd.port.mk>