pkgsrc/devel/elftoolchain/Makefile
agc 95b9d8fc3e 1. add lex as a tool, problem shown up by ubuntu LTS bulk build
2. Add a patch to cast a floating point number before using it to resize
buffers, unbreaks the build on NetBSD.
2017-05-31 22:14:43 +00:00

43 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.13 2017/05/31 22:14:43 agc Exp $
DISTNAME= elftoolchain-0.5.1
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=elftoolchain/${DISTNAME}/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= agc@NetBSD.org
HOMEPAGE= http://elftoolchain.sourceforge.net/
COMMENT= Compilation tools (nm, ar, as, ld, etc.) for the ELF object format
LICENSE= modified-bsd
CONFLICTS= libelf-[0-9]*
NOT_FOR_PLATFORM= Darwin-*-*
MAKE_JOBS_SAFE= no
USE_BSD_MAKEFILE= yes
USE_TOOLS+= m4 lex
MAKE_ENV+= ${BSD_MAKE_ENV}
MAKE_FLAGS+= MKPROFILE=yes
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mgcc)
CWARNFLAGS+= -Wno-error=sign-conversion \
-Wno-error=conversion \
-Wno-error=unused-but-set-variable \
-Wno-error=old-style-definition
.elif !empty(PKGSRC_COMPILER:Mclang)
CWARNFLAGS+= -Wno-error=missing-noreturn \
-Wno-error=constant-logical-operand \
-Wno-error=conversion -Wno-error=cast-qual
.endif
MAKE_FLAGS+= CWARNFLAGS=${CWARNFLAGS:Q}
INSTALLATION_DIRS= bin lib
INSTALLATION_DIRS+= ${PKGMANDIR}/man1 ${PKGMANDIR}/cat1 ${PKGMANDIR}/html1
INSTALLATION_DIRS+= ${PKGMANDIR}/man3 ${PKGMANDIR}/cat3 ${PKGMANDIR}/html3
INSTALLATION_DIRS+= ${PKGMANDIR}/man5 ${PKGMANDIR}/cat5 ${PKGMANDIR}/html5
.include "../../mk/bsd.pkg.mk"