mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
43 lines
890 B
Makefile
43 lines
890 B
Makefile
# Created by: Sergey Skvortsov <skv@protey.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= fasm
|
|
PORTVERSION= 1.73.27
|
|
CATEGORIES= lang devel
|
|
MASTER_SITES= https://flatassembler.net/ \
|
|
LOCAL/sunpoet
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Flat, multiple-pass assembler for IA-32 & x86-64 architectures
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/license.txt
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
IA32_BINARY_PORT= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
PLIST_FILES= bin/fasm
|
|
PORTDOCS= fasm.txt readme.txt whatsnew.txt
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.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 ${STAGEDIR}${PREFIX}/bin
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.post.mk>
|