aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2014-04-12 02:44:16 +0800
committerdinoex <dinoex@FreeBSD.org>2014-04-12 02:44:16 +0800
commit3b5be4744334b82211a7d660246140231d830108 (patch)
treed8aa7ed15f79cd34cbc82b3add3180e3db12285c /emulators
parent05ae4be1e0080f218b42bad2efc13c705403d000 (diff)
downloadfreebsd-ports-gnome-3b5be4744334b82211a7d660246140231d830108.tar.gz
freebsd-ports-gnome-3b5be4744334b82211a7d660246140231d830108.tar.zst
freebsd-ports-gnome-3b5be4744334b82211a7d660246140231d830108.zip
- use STAGEDIR
Diffstat (limited to 'emulators')
-rw-r--r--emulators/stonx/Makefile21
-rw-r--r--emulators/stonx/files/patch-Makefile.in63
2 files changed, 71 insertions, 13 deletions
diff --git a/emulators/stonx/Makefile b/emulators/stonx/Makefile
index 08d500aed1b4..a34086de80af 100644
--- a/emulators/stonx/Makefile
+++ b/emulators/stonx/Makefile
@@ -18,7 +18,6 @@ BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \
RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
RESTRICTED= Contains ROM (C) by Atari
-NO_STAGE= yes
TOSIMG?= tos.img
USE_XORG= x11 sm ice xext xextproto
@@ -46,25 +45,21 @@ pre-build:
post-install:
.for f in ${ETCFILES}
- ${INSTALL_DATA} ${WRKSRC}/etc/$f ${ETCDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/etc/$f ${STAGEDIR}${ETCDIR}/
.endfor
@${ECHO_MSG} "===> Installing fonts"
+ ${MKDIR} ${STAGEDIR}${FNTDIR}
.for f in ${FONTS}
- ${INSTALL_DATA} ${WRKSRC}/data/$f ${FNTDIR}/
- ${GZIP_CMD} ${FNTDIR}/$f
+ ${INSTALL_DATA} ${WRKSRC}/data/$f ${STAGEDIR}${FNTDIR}/
+ ${GZIP_CMD} ${STAGEDIR}${FNTDIR}/$f
.endfor
- mkfontdir ${FNTDIR}
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/docs/,} ${DOCSDIR}/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/docs/,} ${STAGEDIR}${DOCSDIR}/
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
- ${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${DATA:S,^,${WRKSRC}/,} ${EXAMPLESDIR}/
-.endif
-.if (defined(DISPLAY) && ${DISPLAY} != "")
- xset fp+ ${FNTDIR}
- xset fp rehash
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${DATA:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR}/
.endif
.if !exists(${DISTDIR}/${TOSIMG})
diff --git a/emulators/stonx/files/patch-Makefile.in b/emulators/stonx/files/patch-Makefile.in
new file mode 100644
index 000000000000..bac91f146e06
--- /dev/null
+++ b/emulators/stonx/files/patch-Makefile.in
@@ -0,0 +1,63 @@
+--- Makefile.in.orig 2004-08-15 16:35:04.000000000 +0200
++++ Makefile.in 2014-04-11 20:36:37.000000000 +0200
+@@ -19,7 +19,7 @@
+ exec_prefix = @exec_prefix@
+ SYSCONFDIR = @sysconfdir@/stonx
+ STONXDIR=@datadir@/stonx
+-INSTBIN=@bindir@
++INSTBIN=${DESTDIR}@bindir@
+ DISTDIR=STonX-@version@
+
+
+@@ -199,32 +199,32 @@
+
+ install:
+ install -d -m 755 $(INSTBIN)
+- install -d -m 755 $(SYSCONFDIR)
+- install -d -m 755 $(STONXDIR)
+- install -d -m 755 $(STONXDIR)/gemdos_c
+- install -d -m 755 $(STONXDIR)/gemdos_c/mint
++ install -d -m 755 ${DESTDIR}$(SYSCONFDIR)
++ install -d -m 755 ${DESTDIR}$(STONXDIR)
++ install -d -m 755 ${DESTDIR}$(STONXDIR)/gemdos_c
++ install -d -m 755 ${DESTDIR}$(STONXDIR)/gemdos_c/mint
+ install -c -s stonx $(INSTBIN)/stonx
+ @if test -f stonvga ; then \
+ install -c -s -m 755 stonvga $(INSTBIN)/stonvga; \
+ fi
+- install -c -m 0644 cartridge/cartridge.img $(STONXDIR)/cartridge.img
+- install -c -m 0644 mint/atari/stonx.xfs $(STONXDIR)/gemdos_c/mint/stonx.xfs
+- install -c -m 0644 atari/bench1.prg $(STONXDIR)/gemdos_c/bench1.prg
+- install -c -m 0644 atari/final.tos $(STONXDIR)/gemdos_c/final.tos
+- install -c -m 0644 etc/keysyms $(SYSCONFDIR)/keysyms
+- @if test -f $(SYSCONFDIR)/stonxrc; then \
+- echo "$(SYSCONFDIR)/stonxrc already exists: Not creating a new one!" >&2; \
++ install -c -m 0644 cartridge/cartridge.img ${DESTDIR}$(STONXDIR)/cartridge.img
++ install -c -m 0644 mint/atari/stonx.xfs ${DESTDIR}$(STONXDIR)/gemdos_c/mint/stonx.xfs
++ install -c -m 0644 atari/bench1.prg ${DESTDIR}$(STONXDIR)/gemdos_c/bench1.prg
++ install -c -m 0644 atari/final.tos ${DESTDIR}$(STONXDIR)/gemdos_c/final.tos
++ install -c -m 0644 etc/keysyms ${DESTDIR}$(SYSCONFDIR)/keysyms
++ @if test -f ${DESTDIR}$(SYSCONFDIR)/stonxrc; then \
++ echo "${DESTDIR}$(SYSCONFDIR)/stonxrc already exists: Not creating a new one!" >&2; \
+ else \
+- echo "Creating $(SYSCONFDIR)/stonxrc" >&2; \
+- echo "cartridge $(STONXDIR)/cartridge.img" > $(SYSCONFDIR)/stonxrc ; \
+- echo "tos $(STONXDIR)/tos.img" >> $(SYSCONFDIR)/stonxrc ; \
+- echo "fs C:$(STONXDIR)/gemdos_c" >> $(SYSCONFDIR)/stonxrc ; \
+- echo "vbl 2 refresh 2 chunky" >> $(SYSCONFDIR)/stonxrc ; \
+- echo "boot c" >> $(SYSCONFDIR)/stonxrc ; \
++ echo "Creating ${DESTDIR}$(SYSCONFDIR)/stonxrc" >&2; \
++ echo "cartridge $(STONXDIR)/cartridge.img" > ${DESTDIR}$(SYSCONFDIR)/stonxrc ; \
++ echo "tos $(STONXDIR)/tos.img" >> ${DESTDIR}$(SYSCONFDIR)/stonxrc ; \
++ echo "fs C:$(STONXDIR)/gemdos_c" >> ${DESTDIR}$(SYSCONFDIR)/stonxrc ; \
++ echo "vbl 2 refresh 2 chunky" >> ${DESTDIR}$(SYSCONFDIR)/stonxrc ; \
++ echo "boot c" >> ${DESTDIR}$(SYSCONFDIR)/stonxrc ; \
+ fi
+ @if test -f data/tos.img ; then \
+- echo "install -c -m 0644 data/tos.img" $(STONXDIR)/tos.img ; \
+- install -c -m 0644 data/tos.img $(STONXDIR)/tos.img ; \
++ echo "install -c -m 0644 data/tos.img" ${DESTDIR}$(STONXDIR)/tos.img ; \
++ install -c -m 0644 data/tos.img ${DESTDIR}$(STONXDIR)/tos.img ; \
+ else \
+ echo "To complete installation you should copy a tos.img to:" ; \
+ echo " " $(STONXDIR) ; \