2012-12-17 20:20:56 +01:00
|
|
|
# Created by: Sergey Skvortsov <skv@protey.ru>
|
2007-02-22 12:15:01 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= fasm
|
2013-08-08 13:19:45 +02:00
|
|
|
PORTVERSION= 1.71.12
|
2007-02-22 12:15:01 +01:00
|
|
|
CATEGORIES= lang devel
|
|
|
|
MASTER_SITES= http://flatassembler.net/
|
|
|
|
|
2011-09-17 10:42:12 +02:00
|
|
|
MAINTAINER= graudeejs@gmail.com
|
2007-02-22 12:15:01 +01:00
|
|
|
COMMENT= Flat, multiple-pass assembler for IA-32 & x86-64 architectures
|
|
|
|
|
2011-12-14 04:47:21 +01:00
|
|
|
LICENSE= BSD
|
|
|
|
LICENSE_FILE= ${WRKSRC}/license.txt
|
2011-10-04 23:05:26 +02:00
|
|
|
|
2007-09-23 14:09:30 +02:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64 ia64
|
2010-12-17 17:17:06 +01:00
|
|
|
IA32_BINARY_PORT= yes
|
2007-02-22 12:15:01 +01:00
|
|
|
|
2012-05-08 21:46:20 +02:00
|
|
|
PLIST_FILES= bin/fasm
|
|
|
|
PORTDOCS= *
|
2007-02-22 12:15:01 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2013-09-20 21:53:09 +02:00
|
|
|
NO_STAGE= yes
|
2007-09-23 14:09:30 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} != "i386"
|
2012-05-08 21:46:20 +02:00
|
|
|
CFLAGS+= -m32 -L/usr/lib32 -B/usr/lib32
|
2007-09-23 14:09:30 +02:00
|
|
|
.endif
|
|
|
|
|
2007-02-22 12:15:01 +01:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} fasm.o -o fasm
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/fasm ${PREFIX}/bin
|
2012-12-17 20:20:56 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2007-02-22 12:15:01 +01:00
|
|
|
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2007-09-23 14:09:30 +02:00
|
|
|
.include <bsd.port.post.mk>
|