2018-06-30 11:27:02 +02:00
|
|
|
# $NetBSD: Makefile,v 1.42 2018/06/30 09:27:02 bsiegert Exp $
|
2003-04-13 12:24:27 +02:00
|
|
|
|
2017-09-04 14:13:28 +02:00
|
|
|
DISTNAME= file-5.32
|
2018-06-30 11:27:02 +02:00
|
|
|
PKGREVISION= 2
|
2003-04-13 12:24:27 +02:00
|
|
|
CATEGORIES= sysutils
|
2011-03-18 21:38:37 +01:00
|
|
|
MASTER_SITES= ftp://ftp.astron.com/pub/file/
|
2003-04-13 12:24:27 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2012-07-11 21:01:00 +02:00
|
|
|
HOMEPAGE= http://www.darwinsys.com/file/
|
2003-07-21 19:24:10 +02:00
|
|
|
COMMENT= Tool for determining file type
|
2012-03-30 05:53:54 +02:00
|
|
|
LICENSE= 2-clause-bsd
|
2003-04-13 12:24:27 +02:00
|
|
|
|
2017-09-04 14:13:28 +02:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2003-04-13 12:24:27 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-fsect-man5
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
2003-04-13 12:24:27 +02:00
|
|
|
|
|
|
|
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
|
|
|
|
|
2009-01-25 06:33:17 +01:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
2009-01-25 13:30:47 +01:00
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
|
|
|
# gcc<4 does not know -Wextra.
|
|
|
|
# XXX: should be treated with wrappers automatically.
|
|
|
|
.if !empty(CC_VERSION:Mgcc-[23]*)
|
2014-12-15 12:46:34 +01:00
|
|
|
BUILDLINK_TRANSFORM+= opt:-Wextra:-W
|
2009-01-25 13:30:47 +01:00
|
|
|
.endif
|
2009-12-30 12:00:24 +01:00
|
|
|
# gcc<3 does not know -Wunused-parameter
|
|
|
|
.if !empty(CC_VERSION:Mgcc-2*)
|
2016-06-16 17:27:49 +02:00
|
|
|
BUILDLINK_TRANSFORM+= rm:-Wunused-parameter
|
2009-12-30 12:00:24 +01:00
|
|
|
.endif
|
2009-01-25 13:30:47 +01:00
|
|
|
|
2016-02-26 11:24:10 +01:00
|
|
|
CFLAGS.AIX+= -D_LINUX_SOURCE_COMPAT
|
2009-03-21 21:55:58 +01:00
|
|
|
|
2004-02-05 03:10:39 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2003-04-13 12:24:27 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|