blob: 175f59e50ebc9de5990aa1391cd4fda4aadbee52 (
plain) (
blame)
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
43
44
45
46
47
48
49
|
# New ports collection makefile for: hp48tools
# Date created: June 2003
# Whom: giffunip@asme.org
#
# $FreeBSD$
#
PORTNAME= hptools
PORTVERSION= 3.0.8
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.hpcalc.org/hp48/pc/programming/
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
MAINTAINER= jylefort@FreeBSD.org
COMMENT= System RPL and assembly language tools for HP Calculators
WRKSRC= ${WRKDIR}/Hptools/${CONFIGURE_TARGET}
GNU_CONFIGURE= yes
CONFIGURE_SCRIPT= ../support/configure
PATCH_ARGS= -E ${PATCH_STRIP}
NO_CDROM= 'Commercial use is Prohibited'
pre-patch:
@${REINPLACE_CMD} -e 's,macintosh,__STDC__,' \
${WRKDIR}/Hptools/common/envfile.c \
${WRKDIR}/Hptools/rplcomp/defer.c \
${WRKDIR}/Hptools/rplcomp/masd.c
cd ${WRKDIR}/Hptools && \
${PATCH} ${PATCH_ARGS} < ${FILESDIR}/p-common_getopt.c
cd ${WRKDIR}/Hptools && \
${PATCH} ${PATCH_ARGS} < ${FILESDIR}/p-sload_symb.c
pre-configure:
@(${MKDIR} ${WRKSRC})
post-install:
@${STRIP_CMD} ${PREFIX}/bin/makerom ${PREFIX}/bin/rplcomp \
${PREFIX}/bin/sasm ${PREFIX}/bin/sload
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/Hptools/doc/*.DOC ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/Hptools/doc/*.pdf ${DOCSDIR}
.endif
.include <bsd.port.mk>
|