aboutsummaryrefslogblamecommitdiff
path: root/lang/fasm/Makefile
blob: 49ed7dbce21e842f150370ba0cb05889b7426e65 (plain) (tree)
1
2
3
4
5
6
7
8
9
                    
                       
                          

                                            
 
                                   
                                                                              
                                          
 
                          
                                     
 
                          
                           


                                     


                                                


                                      

                    


                          
                                              

      



                                                      
                                                                  

                   
                                       
                                                                         
 
                           
PORTNAME=	fasm
PORTVERSION=	1.73.31
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
WWW=		https://flatassembler.net/

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

# bin/fasm
CONFLICTS_INSTALL=	fasm-fpga SASM

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>