blob: c5f9566befe9d740f29dd2941ae55a1810852619 (
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
|
# $NetBSD: Makefile,v 1.1 2016/06/12 20:03:45 kamil Exp $
#
DISTNAME= picasm114
PKGNAME= ${DISTNAME:S/picasm/picasm-/}
CATEGORIES= devel
MASTER_SITES= http://nsa.kpu-m.ac.jp/gijutu/kousaku/man-pic/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
# Mirror of the latest release notes
HOMEPAGE= http://nsa.kpu-m.ac.jp/gijutu/kousaku/man-pic/picasm.html
COMMENT= Assembler for Microchip PIC16Cxx microcontrollers
LICENSE= mit
BUILD_TARGET= picasm
BUILD_MAKE_FLAGS= CC=${CC:Q}
# We need to construct -DBUILTIN_INCLUDE1=\"/usr/pkg/share/picasm/include\"
# in order to process symbol correctly to the preprocessor
BUILD_MAKE_FLAGS= DEFS=-DBUILTIN_INCLUDE1=\\\"${PREFIX}/share/picasm/include\\\"
INSTALLATION_DIRS= bin share/examples/picasm share/doc/picasm \
share/picasm/include
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/picasm ${DESTDIR}${PREFIX}/bin
.for file in example.asm morse.asm morse.i pic16f84.i picmac.i
${INSTALL_DATA} ${WRKSRC}/examples/${file} \
${DESTDIR}${PREFIX}/share/examples/picasm
.endfor
${INSTALL_DATA} ${WRKSRC}/device_definitions/*.i \
${DESTDIR}${PREFIX}/share/picasm/include
.for file in picasm.txt picasm.html
${INSTALL_DATA} ${WRKSRC}/${file} ${DESTDIR}${PREFIX}/share/doc/picasm
.endfor
.include "../../mk/bsd.pkg.mk"
|