2003-12-14 05:20:32 +01:00
|
|
|
# New ports collection makefile for: tavrasm
|
|
|
|
# Date created: 12 December 2003
|
|
|
|
# Whom: Wes Peters <wes@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tavrasm
|
2005-01-22 05:50:21 +01:00
|
|
|
PORTVERSION= 1.22
|
2003-12-14 05:20:32 +01:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= http://www.tavrasm.org/:0
|
|
|
|
DISTFILES= ${PORTNAME}${EXTRACT_SUFX}:0
|
|
|
|
|
|
|
|
MAINTAINER= wes@FreeBSD.org
|
|
|
|
COMMENT= Tom's AVR Assembler
|
|
|
|
|
2004-01-17 12:22:46 +01:00
|
|
|
EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip
|
2003-12-14 05:20:32 +01:00
|
|
|
BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison
|
|
|
|
|
2005-02-15 06:23:09 +01:00
|
|
|
WRKSRC= ${WRKDIR}/tavrasm.122
|
2003-12-14 05:20:32 +01:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
|
|
|
|
|
|
|
AVR_INCLUDE= ${PREFIX}/include/avr
|
|
|
|
|
|
|
|
MAKEFILE= makefile
|
|
|
|
USE_GMAKE= yes
|
|
|
|
ALL_TARGET= tavrasm
|
|
|
|
|
|
|
|
# Also get the include files and documentation from Atmel
|
|
|
|
|
|
|
|
MASTER_SITES+= http://www.atmel.com/dyn/resources/prod_documents/:1
|
|
|
|
DISTFILES+= ASM.ZIP:1
|
|
|
|
|
|
|
|
do-extract:
|
|
|
|
@${RM} -rf ${WRKDIR}
|
|
|
|
@${MKDIR} ${WRKDIR}
|
|
|
|
@if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}${PORTNAME}${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS});\
|
|
|
|
then \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
@if ! (unzip -qoLa ${_DISTDIR}ASM.ZIP 'appnotes/*.inc' 'doc/*' -d ${WRKSRC});\
|
|
|
|
then \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DOCSDIR} ${AVR_INCLUDE}
|
|
|
|
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${INSTALL_WRKSRC}/doc/* ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${INSTALL_WRKSRC}/appnotes/*.inc ${AVR_INCLUDE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|