blob: a1802f668cee9b98b63c04bc85d3c1a7cc32f3e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# $NetBSD: Makefile,v 1.39 2016/06/16 15:27:49 fhajny Exp $
DISTNAME= file-5.28
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.astron.com/pub/file/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://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}
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"
|