- use STAGEDIR

This commit is contained in:
Dirk Meyer 2014-04-11 18:44:16 +00:00
parent 4442eb971e
commit cf58836a10
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351026
2 changed files with 71 additions and 13 deletions

View file

@ -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})

View file

@ -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) ; \