annotate src/yasm.mk @ 3507:e9db4d0c50e5

Add yasm package * index.hml: add yasm, build-yasm. * src/build-yasm.mk: new file. * src/yasm.mk: New file. * dist-files.mk: added build-yasm.mk, yasm.mk.
author John Donoghue <john.donoghue@ieee.org>
date Thu, 06 Feb 2014 21:21:15 -0500
parents
children 9330999df0c2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3507
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
1 # This file is part of MXE.
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
2 # See index.html for further information.
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
3
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
4 PKG := yasm
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
5 $(PKG)_VERSION := 1.2.0
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
6 $(PKG)_CHECKSUM := 773d28f27f83c44ac35079add0d3167ca6c1def8
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
9 $(PKG)_URL := http://www.tortall.net/projects/$(PKG)/releases/$($(PKG)_FILE)
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
10 $(PKG)_DEPS :=
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
11
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
12 define $(PKG)_UPDATE
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
13 $(WGET) -q -O- 'https://github.com/yasm/yasm/tags' | \
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
14 $(SED) -n 's,.*href="/yasm/yasm/archive/v\([0-9][^"]*\)\.tar.*,\1,p' | \
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
15 head -1
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
16 endef
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
17
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
18 define $(PKG)_BUILD
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
19 # yasm is always static
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
20 cd '$(1)' && '$(1)/configure' \
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
21 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
22 --prefix='$(HOST_PREFIX)' \
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
23 --disable-nls
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
24 $(MAKE) -C '$(1)' -j '$(JOBS)'
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
25 $(MAKE) -C '$(1)' -j 1 install
e9db4d0c50e5 Add yasm package
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
26 endef