Simplify and add DESTDIR support.

This commit is contained in:
OBATA Akio 2008-07-26 13:58:55 +00:00 committed by Thomas Klausner
parent 23051dd477
commit 9ede5f6f6c

View file

@ -1,9 +1,8 @@
# $NetBSD: Makefile,v 1.19 2008/07/26 10:50:38 obache Exp $
# $Id: Makefile,v 1.19 2008/07/26 10:50:38 obache Exp $
# $NetBSD: Makefile,v 1.20 2008/07/26 13:58:55 obache Exp $
# $Id: Makefile,v 1.20 2008/07/26 13:58:55 obache Exp $
DISTNAME= binutils-2.18
PKGNAME= mingw-${DISTNAME:C/-200.*-src//}
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
PKGNAME= mingw-${DISTNAME:S/-src//}
CATEGORIES= cross
MASTER_SITES= ${MASTER_SITE_GNU:=binutils/}
EXTRACT_SUFX= .tar.bz2
@ -12,6 +11,8 @@ MAINTAINER= makoto@ki.nu
HOMEPAGE= http://mingw.sourceforge.net/
COMMENT= GNU binutils ported to win32 platforms
PKG_DESTDIR_SUPPORT= user-destdir
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
USE_CROSSBASE= yes
@ -21,7 +22,7 @@ INFO_FILES= yes
post-install:
.for f in windres dllwrap
${LN} -fs ${PREFIX}/bin/${MINGW_TARGET}-${f} \
${PREFIX}/${MINGW_TARGET}/bin/${f}
${DESTDIR}${PREFIX}/${MINGW_TARGET}/bin/${f}
.endfor
.include "../../wip/mingw/Makefile.common"