b71a1d488b
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some other changes are outlined in http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
34 lines
867 B
Makefile
34 lines
867 B
Makefile
# $NetBSD: Makefile,v 1.17 2005/12/05 20:49:56 rillig Exp $
|
|
|
|
DISTNAME= bfd-mdsetimage-1.15.1
|
|
CATEGORIES= cross
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= sakamoto@NetBSD.org
|
|
COMMENT= Mdsetimage using libbfd, used for cross-building distributions
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
EXTRACT_ONLY= # empty
|
|
NO_CHECKSUM= yes
|
|
NO_CONFIGURE= yes
|
|
|
|
USE_CROSSBASE= yes
|
|
BFD_VERSION= 2.9.1
|
|
CPPFLAGS+= -I${PREFIX}/include
|
|
MAKE_ENV+= BFD_VERSION=${BFD_VERSION:Q} \
|
|
LIBS=${BFD_LIBS:Q}
|
|
|
|
FIX_RPATH+= BFD_LIBS
|
|
BFD_LIBS= -L${PREFIX}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib -lbfd -liberty -lintl
|
|
|
|
do-extract:
|
|
@${MKDIR} ${WRKSRC}
|
|
@${CP} ${FILESDIR}/Makefile ${FILESDIR}/mdsetimage.8 ${FILESDIR}/mdsetimage.c \
|
|
${WRKSRC}
|
|
|
|
pre-install:
|
|
@if [ ! -d ${PREFIX}/bin ]; then ${INSTALL_PROGRAM_DIR} ${PREFIX}/bin; fi
|
|
|
|
.include "../../cross/binutils/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|