mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
comms/qico: Fix build with llvm16
- Utilize OPTIONSNG where applicable - Pet portclippy Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
45c9ee77bf
commit
07902a1172
@ -9,52 +9,50 @@ LICENSE= BSD4CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= autoreconf
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= kosfango
|
||||
GH_TAGNAME= 15673bf
|
||||
|
||||
CONFDIR?= ${PREFIX}/etc/fido/qico
|
||||
QBASEDIR?= /var/spool/fido/qico
|
||||
QLOGDIR?= /var/log/fido/qico
|
||||
PLIST_SUB= QBASEDIR=${QBASEDIR} QLOGDIR=${QLOGDIR}
|
||||
|
||||
.if defined(WITH_OPENLOCK)
|
||||
CONFIGURE_ARGS+= --with-lock-style=open
|
||||
.endif
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS+= --with-config=${CONFDIR}/qico.conf \
|
||||
--with-default-speed=115200
|
||||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
|
||||
CONFLICTS_INSTALL= qcc # bin/qcc
|
||||
|
||||
PLIST_SUB= QBASEDIR=${QBASEDIR} QLOGDIR=${QLOGDIR}
|
||||
|
||||
CONFDIR?= ${PREFIX}/etc/fido/qico
|
||||
QBASEDIR?= /var/spool/fido/qico
|
||||
QLOGDIR?= /var/log/fido/qico
|
||||
|
||||
.if defined(WITH_OPENLOCK)
|
||||
CONFIGURE_ARGS+= --with-lock-style=open
|
||||
.endif
|
||||
|
||||
DOCS= Changes FAQ README
|
||||
EXAMPLES= koi8r_866.cp onchat qhistory qico.xpm qlinks sfreq \
|
||||
stat.run synctime test.pl tossing
|
||||
|
||||
MANS= qcc.8 qctl.8 qico.8
|
||||
|
||||
OPTIONS_DEFINE= QCC PERL HYDRA
|
||||
QCC_DESC= Build Qico control center (qcc)
|
||||
PERL_DESC= Enable Perl-hooks support
|
||||
HYDRA_DESC= Enable Hydra 4K/8K/16K protocol extensions
|
||||
OPTIONS_DEFAULT= PERL QCC
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
HYDRA_DESC= Enable Hydra 4K/8K/16K protocol extensions
|
||||
PERL_DESC= Enable Perl-hooks support
|
||||
QCC_DESC= Build Qico control center (qcc)
|
||||
|
||||
HYDRA_CONFIGURE_ON=--enable-hydra8k
|
||||
PERL_CONFIGURE_ON=--enable-perl
|
||||
PERL_USES= perl5
|
||||
QCC_CONFIGURE_OFF=--disable-qcc
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if !${PORT_OPTIONS:MQCC}
|
||||
CONFIGURE_ARGS+=--disable-qcc
|
||||
PLIST_SUB+= QCC="@comment "
|
||||
.else
|
||||
PLIST_SUB+= QCC=""
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MPERL}
|
||||
CONFIGURE_ARGS+=--enable-perl
|
||||
USES+= perl5
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MHYDRA}
|
||||
CONFIGURE_ARGS+=--enable-hydra8k
|
||||
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
|
||||
CFLAGS+= -Wno-error=incompatible-function-pointer-types
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
@ -65,9 +63,6 @@ do-install:
|
||||
${MKDIR} ${STAGEDIR}${CONFDIR}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/qico ${STAGEDIR}${PREFIX}/sbin/
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/qctl ${STAGEDIR}${PREFIX}/bin/
|
||||
.if ${PORT_OPTIONS:MQCC}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/qcc ${STAGEDIR}${PREFIX}/bin/
|
||||
.endif
|
||||
${INSTALL_DATA} ${WRKSRC}/qico.conf.sample ${STAGEDIR}${CONFDIR}/qico.conf.sample
|
||||
${INSTALL_DATA} ${WRKSRC}/qico.substs.sample ${STAGEDIR}${CONFDIR}/qico.substs.sample
|
||||
${INSTALL_DATA} ${WRKSRC}/qico.passwd.sample ${STAGEDIR}${CONFDIR}/qico.passwd.sample
|
||||
@ -83,4 +78,7 @@ do-install:
|
||||
${INSTALL_MAN} ${WRKSRC}/man/${i} ${STAGEDIR}${PREFIX}/man/man8/${i}
|
||||
.endfor
|
||||
|
||||
do-install-QCC-on:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/qcc ${STAGEDIR}${PREFIX}/bin/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -29,3 +29,6 @@ bin/qctl
|
||||
man/man8/qctl.8.gz
|
||||
man/man8/qico.8.gz
|
||||
sbin/qico
|
||||
@dir /var/log/fido
|
||||
@dir %%QBASEDIR%%
|
||||
@dir /var/spool/fido
|
||||
|
Loading…
Reference in New Issue
Block a user