mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
47e43492b1
PR: 154572 Submitted by: Aldis Berjoza <aldis@bsdroot.lv> (maintainer) Feature safe: yes
39 lines
832 B
Makefile
39 lines
832 B
Makefile
# New ports collection makefile for: fasm
|
|
# Date created: 22 February 2007
|
|
# Whom: Sergey Skvortsov <skv@protey.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= fasm
|
|
PORTVERSION= 1.69.31
|
|
CATEGORIES= lang devel
|
|
MASTER_SITES= http://flatassembler.net/
|
|
|
|
MAINTAINER= aldis@bsdroot.lv
|
|
COMMENT= Flat, multiple-pass assembler for IA-32 & x86-64 architectures
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64 ia64
|
|
IA32_BINARY_PORT= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} != "i386"
|
|
CFLAGS= -m32 -L/usr/lib32 -B/usr/lib32
|
|
.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>
|