aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2013-11-18 23:08:34 +0800
committerdanilo <danilo@FreeBSD.org>2013-11-18 23:08:34 +0800
commit27d9f7df3a103a3fe85bb4beba09f5f4f7ac1bad (patch)
treeefa3fcb3d5bb54d5ae7baeed283be6241ecb9535
parent13052f354a4b1bbd7d4e828582117e0b5314114a (diff)
downloadfreebsd-ports-gnome-27d9f7df3a103a3fe85bb4beba09f5f4f7ac1bad.tar.gz
freebsd-ports-gnome-27d9f7df3a103a3fe85bb4beba09f5f4f7ac1bad.tar.zst
freebsd-ports-gnome-27d9f7df3a103a3fe85bb4beba09f5f4f7ac1bad.zip
- Add stage support
- Put Makefile variables in order
-rw-r--r--games/inform/Makefile32
-rw-r--r--games/inform/files/Makefile.inform2
2 files changed, 11 insertions, 23 deletions
diff --git a/games/inform/Makefile b/games/inform/Makefile
index 04c519b01fcb..3f1279b54fd0 100644
--- a/games/inform/Makefile
+++ b/games/inform/Makefile
@@ -5,13 +5,11 @@ PORTNAME= inform
PORTVERSION= 6.32
CATEGORIES= games
MASTER_SITES= ftp://ftp.ifarchive.org/if-archive/infocom/compilers/inform6/source/ \
- ftp://ftp.ifarchive.org/if-archive/infocom/compilers/inform6/library/:lib
+ ftp://ftp.ifarchive.org/if-archive/infocom/compilers/inform6/library/:lib \
+ ftp://ftp.ifarchive.org/if-archive/infocom/compilers/inform6/manuals/:doc
+DISTFILES= inform${PORTVERSION:S/.//}_source.zip inform_library611.zip:lib \
+ designers_manual_4.zip:doc
DIST_SUBDIR= inform
-DISTFILES= inform${PORTVERSION:S/.//}_source.zip inform_library611.zip:lib
-.if !defined(NOPORTDOCS)
-MASTER_SITES+= ftp://ftp.ifarchive.org/if-archive/infocom/compilers/inform6/manuals/:doc
-DISTFILES+= designers_manual_4.zip:doc
-.endif
EXTRACT_ONLY= inform${PORTVERSION:S/.//}_source.zip
MAINTAINER= ports@FreeBSD.org
@@ -24,27 +22,17 @@ NO_WRKSUBDIR= yes
USE_ZIP= yes
MAKEFILE= ${FILESDIR}/Makefile.inform
-# Install the library files in ${PREFIX}/share/inform, and install
-# documentation if appropriate.
-
-NO_STAGE= yes
post-install:
- @${MKDIR} ${DATADIR}
- (cd ${DATADIR} && \
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ (cd ${STAGEDIR}${DATADIR} && \
${UNZIP_CMD} -qq -o ${DISTDIR}/${DIST_SUBDIR}/inform_library611.zip)
.for file in English.h Grammar.h Parser.h VerbLib.h infix.h linklpa.h \
linklv.h parserm.h verblibm.h
- ${CHMOD} ${SHAREMODE} ${DATADIR}/${file}
- ${CHOWN} ${SHAREOWN}:${SHAREGRP} ${DATADIR}/${file}
+ ${CHMOD} ${SHAREMODE} ${STAGEDIR}${DATADIR}/${file}
.endfor
-.if defined(NOPORTDOCS)
- @${RM} ${DATADIR}/readme.txt
-.else
- @${MKDIR} ${DOCSDIR}
- (umask 222 && ${UNZIP_CMD} -qq -o -d ${DOCSDIR} \
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (umask 222 && ${UNZIP_CMD} -qq -o -d ${STAGEDIR}${DOCSDIR} \
${DISTDIR}/${DIST_SUBDIR}/designers_manual_4.zip)
- @${MV} ${DATADIR}/readme.txt ${DOCSDIR}
- @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
-.endif
+ @${MV} ${STAGEDIR}${DATADIR}/readme.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/games/inform/files/Makefile.inform b/games/inform/files/Makefile.inform
index 37e2570f10dd..7bd9d461091a 100644
--- a/games/inform/files/Makefile.inform
+++ b/games/inform/files/Makefile.inform
@@ -12,4 +12,4 @@ inform: $(OBJS)
$(CC) $(CFLAGS) -o ${.TARGET} $(OBJS)
install: inform
- ${BSD_INSTALL_PROGRAM} inform ${PREFIX}/bin
+ ${BSD_INSTALL_PROGRAM} inform ${DESTDIR}${PREFIX}/bin