freebsd-ports/math/readstat/Makefile
Adriaan de Groot a46fb43e0e math/readstat: fix build on 14-CURRENT
In 14-CURRENT, the system compiler is more strict; it looks like

  In file included from src/readstat_bits.c:9:
    src/readstat_bits.h:10:29: error: a function declaration without
    a prototype is deprecated in all versions of C
    [-Werror,-Wstrict-prototypes]
  int machine_is_little_endian();

Apply the stricter flags in all builds, then fix the source so
that the prototypes are explicitly (void) -- this is a subtlely
of C semantics where (void) means "no arguments" and () means
"arguments unspecified" that rarely matters. Except now.
2023-02-19 14:07:52 +01:00

18 lines
408 B
Makefile

PORTNAME= readstat
DISTVERSION= 1.1.8
PORTREVISION= 1
CATEGORIES= math kde
MASTER_SITES= https://github.com/WizardMac/ReadStat/releases/download/v${DISTVERSION}/
MAINTAINER= kde@FreeBSD.org
COMMENT= Read (and write) data sets from SAS, Stata, and SPSS
WWW= https://github.com/WizardMac/ReadStat
LICENSE= MIT
USES= libtool
HAS_CONFIGURE= yes
CFLAGS+= -Werror -Wstrict-prototypes
.include <bsd.port.mk>