2016-02-25 13:12:47 +01:00
|
|
|
# $NetBSD: Makefile,v 1.35 2016/02/25 12:12:50 jperkin Exp $
|
2003-04-09 17:59:46 +02:00
|
|
|
|
2014-08-17 18:37:56 +02:00
|
|
|
DISTNAME= yasm-1.3.0
|
2003-04-09 17:59:46 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= http://www.tortall.net/projects/yasm/releases/
|
|
|
|
|
Update to 0.5.0, provided by the new maintainer, Shaun Amott, in PR 34190.
New features in this release (compared to 0.5.0rc2):
- Support for arithmetic on single-character constants.
- Support for OUTPUT_FORMAT as an alias for YASM_OBJFMT.
- A couple of other bugfixes.
New features in this release (compared to 0.5.0rc1):
- Support for CodeView 8.0 source debugging (as used by Visual Studio
2005).
- Fixed -I support to properly handle relative paths (now the search
pattern is essentially identical to most C compilers). This change is
backwards incompatible (to both NASM and earlier Yasm versions), but
is much more consistent.
- Standard macros that provide version information: __YASM_MAJOR__,
__YASM_MINOR__, __YASM_SUBMINOR__, __YASM_BUILD__, __YASM_VERSION_ID__
and __YASM_VER__.
New features in this release (compared to 0.4.0) include:
- Aliases for AMD64 object formats: "win64" and "elf64" (these
automatically set the machine to "amd64").
- "x64" alias for Win64 object format (for easier use with Visual
Studio).
- DWARF2 debugging format (enable with "-g dwarf2").
- GAS parser good enough to take GCC output for both AMD64 and 32-bit
x86 (including DWARF2 debug information).
- Dozens of bugfixes in x86 and AMD64 support.
- Specifying "amd64" as the machine (or using a 64-bit object format)
automatically sets BITS 64.
Known issues with this release include:
- List output is buggy and often outright wrong.
- The optimizer is a very basic 2-pass style and generates inefficient
(large) code at times.
- The binary object format does not yet support sections other than
.text, .bss, and .data, unlike newer versions of NASM (see Trac bug
#71).
2006-08-12 23:05:06 +02:00
|
|
|
MAINTAINER= shaun@inerd.com
|
2003-04-09 17:59:46 +02:00
|
|
|
HOMEPAGE= http://www.tortall.net/projects/yasm/
|
|
|
|
COMMENT= Complete rewrite of the NASM assembler with BSD license
|
2009-07-22 23:14:24 +02:00
|
|
|
LICENSE= modified-bsd AND (artistic OR gnu-gpl-v2 OR gnu-lgpl-v2)
|
2003-04-09 17:59:46 +02:00
|
|
|
|
2006-04-13 20:23:29 +02:00
|
|
|
USE_TOOLS+= msgfmt
|
2003-04-09 17:59:46 +02:00
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
USE_LIBTOOL= YES
|
2007-03-08 20:09:27 +01:00
|
|
|
TEST_TARGET= check
|
2003-04-09 17:59:46 +02:00
|
|
|
|
2013-05-10 06:28:21 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
# Commit message suggests this is Darwin-specific. Won't work to
|
|
|
|
# cross-compile to Darwin, but that doesn't work at all anyway.
|
2016-02-25 13:12:47 +01:00
|
|
|
SUBST_CLASSES.Darwin+= link
|
2010-12-26 13:07:01 +01:00
|
|
|
SUBST_STAGE.link= pre-configure
|
|
|
|
SUBST_MESSAGE.link= Fix linking command.
|
|
|
|
SUBST_FILES.link= Makefile.in
|
|
|
|
SUBST_SED.link= -e 's,$$(CCLD_FOR_BUILD) -o $$@,$$(LINK) -o $$@,'
|
2013-05-10 06:28:21 +02:00
|
|
|
|
|
|
|
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
|
|
|
|
CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q}
|
|
|
|
CONFIGURE_ENV+= CCLD_FOR_BUILD=${NATIVE_CC:Q}
|
|
|
|
.endif
|
2010-12-26 13:07:01 +01:00
|
|
|
|
2004-04-25 07:23:54 +02:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
2003-04-09 17:59:46 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|