forked from Lainports/freebsd-ports
alignment on 64-bit archs. From emaste: Essentially what happens is that nasm creates object files that have section contents aligned to 16 bytes, but it only specifies that the section requires 4 byte alignment. It seems that the GNU tools (strip at least) silently correct this to 8, which is what it should be. This fix only affects FreeBSD -CURRENT in combination with another (not yet committed) fix to libtool. On stable/10 and earlier GNU ld masks the nasm bug, and without the libtool fix we don't yet try to strip debug info from object files in -CURRENT. PORTREVISION bump for this. Also, while here, rename two other patches to have proper separators (_ instead of +). And, donate this port back to ports@. It is used by many other ports so it deserves to be maintained by the collective.
40 lines
986 B
Makefile
40 lines
986 B
Makefile
# Created by: Murray Stokely <murray@cdrom.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= nasm
|
|
PORTVERSION= 2.11.08
|
|
PORTREVISION= 1
|
|
PORTEPOCH= 1
|
|
CATEGORIES= devel lang
|
|
MASTER_SITES= http://www.nasm.us/pub/nasm/releasebuilds/${PORTVERSION}/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= General-purpose multi-platform x86 and amd64 assembler
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= tar:xz gmake
|
|
MAKE_ARGS+= INSTALLROOT=${STAGEDIR}
|
|
INSTALL_TARGET= install #needed for RDOFF_INSTALL_TARGET
|
|
|
|
OPTIONS_DEFINE= RDOFF DOCS
|
|
OPTIONS_DEFAULT=RDOFF
|
|
OPTIONS_SUB= yes
|
|
|
|
RDOFF_DESC= Install tools to handle RDOFF object files
|
|
RDOFF_INSTALL_TARGET= install_rdf
|
|
|
|
DOCS_DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}-xdoc${EXTRACT_SUFX}
|
|
PORTDOCS= *
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
|
|
${INSTALL_DATA} ${WRKSRC}/doc/nasmdoc.txt ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|