Skip to content

Commit 738bbee

Browse files
committed
Add netwide assembler
1 parent c895c36 commit 738bbee

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

build/nasm/build.sh

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/usr/bin/bash
2+
#
3+
# {{{ CDDL HEADER
4+
#
5+
# This file and its contents are supplied under the terms of the
6+
# Common Development and Distribution License ("CDDL"), version 1.0.
7+
# You may only use this file in accordance with the terms of version
8+
# 1.0 of the CDDL.
9+
#
10+
# A full copy of the text of the CDDL should have accompanied this
11+
# source. A copy of the CDDL is also available via the Internet at
12+
# http://www.illumos.org/license/CDDL.
13+
# }}}
14+
15+
# Copyright 2017 OmniOS Community Edition (OmniOSce) Association.
16+
17+
#
18+
# Load support functions
19+
. ../../lib/functions.sh
20+
21+
PROG=nasm
22+
VER=2.13.02
23+
VERHUMAN=$VER
24+
PKG=developer/nasm
25+
SUMMARY="The Netwide Assembler"
26+
DESC="$SUMMARY"
27+
28+
BUILDARCH=32
29+
30+
# Nasm uses INSTALLROOT instead of the more standard DESTDIR
31+
make_install() {
32+
logmsg "--- make install"
33+
logcmd $MAKE INSTALLROOT=${DESTDIR} install || \
34+
logerr "--- Make install failed"
35+
}
36+
37+
init
38+
download_source $PROG $PROG $VER
39+
patch_source
40+
prep_build
41+
build
42+
make_isa_stub
43+
make_package
44+
clean_up
45+
46+
# Vim hints
47+
# vim:ts=4:sw=4:et:fdm=marker

build/nasm/local.mog

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This file and its contents are supplied under the terms of the
2+
# Common Development and Distribution License ("CDDL"), version 1.0.
3+
# You may only use this file in accordance with the terms of version
4+
# 1.0 of the CDDL.
5+
#
6+
# A full copy of the text of the CDDL should have accompanied this
7+
# source. A copy of the CDDL is also available via the Internet at
8+
# http://www.illumos.org/license/CDDL.
9+
10+
# Copyright 2017 OmniOS Community Edition (OmniOSce) Association.
11+
12+
license LICENCE license=BSD
13+

0 commit comments

Comments
 (0)