2b8a4a98e2
No idea if this works, since I don't know how to use this, but the diff looks sane enough to me.
35 lines
862 B
Makefile
35 lines
862 B
Makefile
# $NetBSD: Makefile,v 1.15 2004/09/09 01:33:10 wiz 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
|
|
|
|
DEPENDS= cross-binutils>=2.9.1.1:../binutils
|
|
|
|
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} \
|
|
LIBS="${BFD_LIBS}"
|
|
|
|
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 "../../mk/bsd.pkg.mk"
|