blob: bca087afbe4d9e84a5f8b453d536b98f620e446e (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# New ports collection makefile for: STonX
# Date created: 3rd August, 1997
# Whom: Tobias Reifenberger <tr@freebsd.mayn.de>
#
# $FreeBSD$
#
PORTNAME= stonx
PORTVERSION= 0.6.7e.6
CATEGORIES= emulators
MASTER_SITES= SF/stonx/stonx/0.6.7.6
DISTNAME= STonX-0.6.7.6
MAINTAINER= dinoex@FreeBSD.org
COMMENT= AtariST emulator
BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \
gccmakedep:${PORTSDIR}/devel/gccmakedep \
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
RESTRICTED= tos.img is copyrighted
TOSIMG?= tos.img
USE_XORG= x11 sm ice xext xextproto
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --x-includes=${LOCALBASE}/include \
--x-libraries=${LOCALBASE}/lib
ALL_TARGET= all fnttobdf tosfonts fonts
pre-build:
${CP} ${DISTDIR}/${TOSIMG} ${WRKSRC}/tos.img
# Installing
#
BINDIR= ${PREFIX}/bin
FNTDIR= ${PREFIX}/lib/X11/fonts/misc
DATA= atari/bench1.pas atari/bench1.prg
ETCFILES= keysyms-alternative keysyms-german keysyms-spanish
DOCS= ../COPYING AUTHORS DEBUGGING INSTALL README RELEASE_NOTES \
TOS-VERSIONS
FONTS= System0-iso.pcf System0.pcf System1-iso.pcf System1.pcf \
System2-iso.pcf System2.pcf
post-install:
.for f in ${ETCFILES}
${INSTALL_DATA} ${WRKSRC}/etc/$f ${ETCDIR}/
.endfor
@${ECHO_MSG} "===> Installing fonts"
.for f in ${FONTS}
${INSTALL_DATA} ${WRKSRC}/data/$f ${FNTDIR}/
@${GZIP_CMD} ${FNTDIR}/$f
.endfor
@mkfontdir ${FNTDIR}
.if !defined(NOPORTDOCS)
@${ECHO_MSG} "===> Installing docs"
@${MKDIR} ${DOCSDIR}
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/docs/$f ${DOCSDIR}/
.endfor
@${MKDIR} ${EXAMPLESDIR}
.for f in ${DATA}
${INSTALL_DATA} ${WRKSRC}/$f ${EXAMPLESDIR}/
.endfor
.endif
.if (defined(DISPLAY) && ${DISPLAY} != "")
@xset fp+ ${FNTDIR}
@xset fp rehash
.endif
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${TOSIMG})
IGNORE="Please get a ROM dump from your AtariST and save it as"\
"\"${TOSIMG}\" in \"${DISTDIR}\" manually, and then make again"
.endif
BUILD_DEPENDS+= ${LOCALBASE}/lib/X11/fonts/misc/10x20-ISO8859-1.pcf.gz:${PORTSDIR}/x11-fonts/font-misc-misc
.include <bsd.port.post.mk>
|