8b67a7cd92
fix the SmartOS bulk build (which gave similar errors, but which I couldn't reproduce on my SmartOS or Tribblix systems). Does not break: - macOS 12.1 - NetBSD 9.2 and -current - OpenBSD 7.0 - FreeBSD 13.0 - Tribblix m25.1 - CentOS 7 and 8 - Debian 9, 10, and 11 - Devuan 4 - Ubuntu 14, 16, 18, and 20 - Void
41 lines
1 KiB
Makefile
41 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.50 2021/12/27 23:25:08 schmonz Exp $
|
|
|
|
DISTNAME= file-5.40
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://ftp.astron.com/pub/file/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://www.darwinsys.com/file/
|
|
COMMENT= Tool for determining file type
|
|
LICENSE= 2-clause-bsd
|
|
|
|
USE_LIBTOOL= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --enable-fsect-man5
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
SUBST_CLASSES+= paths
|
|
SUBST_STAGE.paths= pre-configure
|
|
SUBST_FILES.paths= magic/myfile
|
|
SUBST_VARS.paths= SH
|
|
|
|
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
|
|
|
|
TEST_TARGET= check
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
# gcc<4 does not know -Wextra.
|
|
# XXX: should be treated with wrappers automatically.
|
|
.if !empty(CC_VERSION:Mgcc-[23]*)
|
|
BUILDLINK_TRANSFORM+= opt:-Wextra:-W
|
|
.endif
|
|
# gcc<3 does not know -Wunused-parameter
|
|
.if !empty(CC_VERSION:Mgcc-2*)
|
|
BUILDLINK_TRANSFORM+= rm:-Wunused-parameter
|
|
.endif
|
|
|
|
CFLAGS.AIX+= -D_LINUX_SOURCE_COMPAT
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|