blob: 84d967dbe961f2b05d2f5a7b27526249f8e16718 (
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.7 2006/01/12 21:18:50 joerg Exp $
#
DISTNAME= xtrs-4.9
PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://www.tim-mann.org/trs80/
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= ${MASTER_SITES}
COMMENT= TRS-80 Model I/III/4 Emulator for Unix
BUILD_TARGET= default
SUBST_CLASSES+= mf
SUBST_STAGE.mf= post-patch
SUBST_FILES.mf= Makefile.local
SUBST_SED.mf= -e 's|/usr/local|${PREFIX}|g' \
-e 's|/usr/X11/|${X11PREFIX}/|g' \
-e 's|/usr/include/X11|${X11BASE}/include|g' \
-e 's|^\(LDFLAGS = \)-L/usr/X11R6/lib|\1-Wl,-R${X11BASE} -L${X11BASE}|g' \
-e 's|/share/man|/man|g'
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/xtrs
${INSTALL_DATA} ${WRKSRC}/xtrsrom4p.hex ${PREFIX}/lib/xtrs/romimage.m4p
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xtrs
${INSTALL_DATA} ${WRKSRC}/xtrsrom4p.README ${PREFIX}/share/doc/xtrs
# The sources assume <malloc.h> exists. Create a fake one for platforms
# that don't have it.
post-wrapper:
if ${TEST} ! -f /usr/include/malloc.h; then \
${ECHO} "#include <stdlib.h>" \
> ${BUILDLINK_DIR}/include/malloc.h; \
fi
.include "../../devel/ncurses/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/x11.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|