4ff4e8e7dd
Bug fixes: - ENC: Off-by-one read from uninitialized data in MIME encoded-word decoder fixed. - GUI: Clickable references are now restored after ROT13 was applied twice. - GUI: Click on "Cancel" button in server configuration window no longer creates an error message in the status bar. - GUI: "Group->Mark subthread read" now redraws the widget and closes the processed subthread (reported by Christian Schumacher) - GUI: Server configuration: Automatically modify service name when TLS is enabled/disabled (suggested by Julien Élie) - References to legacy configuration path "~/.flnews" fixed in man page New features and improvements: - Unicode database updated to version 14.0.0
88 lines
2.9 KiB
Makefile
88 lines
2.9 KiB
Makefile
# $NetBSD: Makefile,v 1.13 2022/01/10 11:55:09 micha Exp $
|
|
|
|
FLNEWS_VERSION= 1.0.1
|
|
|
|
DISTNAME= flnews-${FLNEWS_VERSION}
|
|
CATEGORIES= news
|
|
MASTER_SITES= http://micha.freeshell.org/flnews/src/
|
|
MASTER_SITES+= http://www.ybtra.de/flnews-mirror/src/
|
|
MASTER_SITES+= http://www.southcity.de/flnews/src/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= micha@NetBSD.org
|
|
HOMEPAGE= https://micha.freeshell.org/flnews/
|
|
COMMENT= Fast and lightweight USENET newsreader with GUI
|
|
LICENSE= modified-bsd AND 2-clause-bsd AND unicode
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
TEST_TARGET= test
|
|
|
|
# https://reproducible-builds.org/specs/source-date-epoch/
|
|
CONFIGURE_ENV+= SOURCE_DATE_EPOCHE=1620580800
|
|
|
|
# Bug report contact address used for GUI
|
|
FLNEWS_MAINTAINER= ${MAINTAINER}
|
|
|
|
.include "options.mk"
|
|
|
|
# Prepare CONFIG file
|
|
SUBST_CLASSES+= edit-config
|
|
SUBST_STAGE.edit-config= pre-configure
|
|
SUBST_MESSAGE.edit-config= Preparing CONFIG file ...
|
|
SUBST_FILES.edit-config= CONFIG
|
|
SUBST_SED.edit-config= -e 's,@VERSION@,${FLNEWS_VERSION},g'
|
|
SUBST_VARS.edit-config= PREFIX
|
|
SUBST_SED.edit-config+= -e 's,@MAINT@,${FLNEWS_MAINTAINER},g'
|
|
SUBST_SED.edit-config+= -e 's,@IP6@,${FLNEWS_OPT_DISABLE_IP6},g'
|
|
SUBST_SED.edit-config+= -e 's,@NLS@,${FLNEWS_OPT_DISABLE_NLS},g'
|
|
SUBST_SED.edit-config+= -e 's,@XDBE@,${FLNEWS_OPT_DISABLE_XDBE},g'
|
|
SUBST_SED.edit-config+= -e 's,@MAN_PATH@,${PREFIX}/${PKGMANDIR},g'
|
|
.if ${FLNEWS_OPT_DISABLE_XDG} == 0
|
|
SUBST_SED.edit-config+= -e 's,@XDG@,0,g'
|
|
.else
|
|
SUBST_SED.edit-config+= -e 's,@XDG@,1,g'
|
|
.endif
|
|
# NetBSD reports X/Open XSI extension as not available using the POSIX
|
|
# sysconf(_SC_XOPEN_VERSION) call, but has a sufficient implementation
|
|
# => Force using it
|
|
.if ${OPSYS} == "NetBSD"
|
|
SUBST_SED.edit-config+= -e 's,@FORCE_XSI@,1,g'
|
|
.else
|
|
SUBST_SED.edit-config+= -e 's,@FORCE_XSI@,0,g'
|
|
.endif
|
|
# NetBSD reports IPv6 as not available using the POSIX sysconf(_SC_IPV6)
|
|
# call, but has a sufficient implementation
|
|
# => Force using it if inet6 option of pkgsrc package is selected
|
|
.if ${OPSYS} == "NetBSD" && ${FLNEWS_OPT_DISABLE_IP6} == 0
|
|
SUBST_SED.edit-config+= -e 's,@FORCE_IP6@,1,g'
|
|
.else
|
|
SUBST_SED.edit-config+= -e 's,@FORCE_IP6@,0,g'
|
|
.endif
|
|
# Old SunPro compilers cannot create dependencies with the "-M" option
|
|
# => Use makedepend instead for all SunPro compilers
|
|
.if ${OPSYS} == "SunOS" && ${PKGSRC_COMPILER:Msunpro}
|
|
SUBST_SED.edit-config+= -e 's,@DEP_MD@,,g'
|
|
SUBST_SED.edit-config+= -e 's,@DEP_COMP@,\#,g'
|
|
.else
|
|
SUBST_SED.edit-config+= -e 's,@DEP_MD@,\#,g'
|
|
SUBST_SED.edit-config+= -e 's,@DEP_COMP@,,g'
|
|
.endif
|
|
|
|
post-extract:
|
|
${CP} ${FILESDIR}/CONFIG ${WRKSRC}
|
|
|
|
do-configure:
|
|
cd ${WRKSRC} && \
|
|
${SETENV} ${CONFIGURE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} config
|
|
|
|
.if ${OPSYS} == "SunOS" && ${PKGSRC_COMPILER:Msunpro}
|
|
BUILD_DEPENDS+= makedepend-[0-9]*:../../devel/makedepend
|
|
.endif
|
|
|
|
BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.3
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.include "../../x11/fltk13/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|