summaryrefslogtreecommitdiff
path: root/cross/atasm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cross/atasm/Makefile')
-rw-r--r--cross/atasm/Makefile32
1 files changed, 22 insertions, 10 deletions
diff --git a/cross/atasm/Makefile b/cross/atasm/Makefile
index 565a4bb3ece..f1ba0020e96 100644
--- a/cross/atasm/Makefile
+++ b/cross/atasm/Makefile
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.10 2014/10/09 14:06:04 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2014/12/09 15:10:47 mef Exp $
#
-DISTNAME= atasm104
-PKGNAME= atasm-1.04
-PKGREVISION= 2
+DISTNAME= atasm106
+PKGNAME= atasm-1.06
CATEGORIES= devel cross emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=atasm/}
EXTRACT_SUFX= .zip
@@ -11,19 +10,32 @@ EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://sourceforge.net/projects/atasm/
COMMENT= Cross-assembler for 6502 optimized to code for Atari 8 bit computers
+LICENSE= gnu-gpl-v2
-WRKSRC= ${WRKDIR}/${DISTNAME}/src
+WRKSRC= ${WRKDIR}/${DISTNAME}
NO_CONFIGURE= YES
+BUILD_DIRS= src
DOCDIR= ${PREFIX}/share/doc/atasm
+EXAMPLE_DIR= ${PREFIX}/share/examples/atasm
-INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${DOCDIR}
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${DOCDIR} ${EXAMPLE_DIR}
+
+SUBST_CLASSES+= docdir
+SUBST_FILES.docdir= atasm.1.in
+SUBST_STAGE.docdir= pre-install
+SUBST_SED.docdir= -e 's,%%DOCDIR%%,${DOCDIR},g'
+SUBST_MESSAGE.docdir= Edit DOCDIR variable
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/atasm ${DESTDIR}${PREFIX}/bin/atasm
- ${SED} -e 's,%%DOCDIR%%,${DOCDIR},g' < ${WRKSRC}/atasm.1.in > ${WRKSRC}/atasm.1
- ${INSTALL_DATA} ${WRKSRC}/atasm.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
- ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/atasm.txt ${DESTDIR}${DOCDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/atasm ${DESTDIR}${PREFIX}/bin/atasm
+ ${MV} ${WRKSRC}/src/atasm.1.in ${WRKSRC}/src/atasm.1
+ ${INSTALL_DATA} ${WRKSRC}/src/atasm.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_DATA} ${WRKSRC}/docs/atasm.pdf ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/atasm.blurb ${DESTDIR}${DOCDIR}
+.for i in iomac.lib sample.m65 sysequ.m65 test.m65
+ ${INSTALL_DATA} ${WRKSRC}/examples/${i} ${DESTDIR}${EXAMPLE_DIR}/
+.endfor
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"