blob: 0f88465437faa6219a3cfe3fa775b0e9a5849c36 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# New ports collection makefile for: fasm
# Date created: 22 February 2007
# Whom: Sergey Skvortsov <skv@protey.ru>
#
# $FreeBSD$
#
PORTNAME= fasm
PORTVERSION= 1.69.11
CATEGORIES= lang devel
MASTER_SITES= http://flatassembler.net/
MAINTAINER= skv@FreeBSD.org
COMMENT= Flat, multiple-pass assembler for IA-32 & x86-64 architectures
ONLY_FOR_ARCHS= i386 amd64 ia64
WRKSRC= ${WRKDIR}/${PORTNAME}
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
.if exists(/usr/lib32)
CFLAGS= -m32 -L/usr/lib32 -B/usr/lib32
.else
IGNORE= requires 32-bit libraries installed under /usr/lib32
.endif
.endif
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} fasm.o -o fasm
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/fasm ${PREFIX}/bin
.ifndef(NOPORTDOCS)
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
|