blob: a5e52362b7260d5f13bdf82f1b9e50cfcf42cb1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# $NetBSD: Makefile,v 1.13 2017/08/01 14:58:53 wiz Exp $
#
DISTNAME= atasm106
PKGNAME= atasm-1.06
CATEGORIES= devel cross emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=atasm/}
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://sourceforge.net/projects/atasm/
COMMENT= Cross-assembler for 6502 optimized to code for Atari 8 bit computers
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}/${DISTNAME}
NO_CONFIGURE= YES
BUILD_DIRS= src
MAKE_ENV= ZLIB="-L${BUILDLINK_PREFIX.zlib}/lib ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.zlib}/lib -lz"
DOCDIR= ${PREFIX}/share/doc/atasm
EXAMPLE_DIR= ${PREFIX}/share/examples/atasm
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}/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"
|