aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2015-02-15 21:33:25 +0800
committerantoine <antoine@FreeBSD.org>2015-02-15 21:33:25 +0800
commitd09ce0f63f676bc2b7008172c790e53fe600b6e8 (patch)
tree564efd14d553a1a2b020275d456e35f8605bd0de /misc
parent0df14646ed400a1c898723a8fec437c480f10775 (diff)
downloadfreebsd-ports-graphics-d09ce0f63f676bc2b7008172c790e53fe600b6e8.tar.gz
freebsd-ports-graphics-d09ce0f63f676bc2b7008172c790e53fe600b6e8.tar.zst
freebsd-ports-graphics-d09ce0f63f676bc2b7008172c790e53fe600b6e8.zip
Unbreak on head
Diffstat (limited to 'misc')
-rw-r--r--misc/fortune-mod-bible/Makefile14
-rw-r--r--misc/fortune-mod-bofh/Makefile13
-rw-r--r--misc/fortune-mod-culmea-culmilor/Makefile.fortune15
-rw-r--r--misc/fortune-mod-epictetus/Makefile8
-rw-r--r--misc/fortune-mod-futurama/Makefile12
-rw-r--r--misc/fortuneit/Makefile23
6 files changed, 54 insertions, 31 deletions
diff --git a/misc/fortune-mod-bible/Makefile b/misc/fortune-mod-bible/Makefile
index 90fdc4d39b0..570654e4f43 100644
--- a/misc/fortune-mod-bible/Makefile
+++ b/misc/fortune-mod-bible/Makefile
@@ -14,17 +14,25 @@ COMMENT= King James V Bible in fortune file format
DIST_SUBDIR= ${PORTNAME}
NO_WRKSUBDIR= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
-USES= tar:bzip2
+USES= tar:bzip2
SUB_FILES+= pkg-message
+.if exists(/usr/games/strfile)
_STRFILE= /usr/games/strfile
+.elif exists(/usr/bin/strfile)
+_STRFILE= /usr/bin/strfile
+.else
+IGNORE= needs strfile command. Please install games distribution of base system
+.endif
+
+post-extract:
+ ${RM} ${WRKSRC}/bible.dat
do-build:
@cd ${WRKSRC} && ${_STRFILE} -C bible
do-install:
- @${MKDIR} ${STAGEDIR}${PREFIX}/share/games
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
- @${INSTALL_DATA} ${WRKSRC}/bible* ${STAGEDIR}${PREFIX}/share/games/fortune
+ ${INSTALL_DATA} ${WRKSRC}/bible* ${STAGEDIR}${PREFIX}/share/games/fortune
.include <bsd.port.mk>
diff --git a/misc/fortune-mod-bofh/Makefile b/misc/fortune-mod-bofh/Makefile
index 9936a9786ac..c3100d6f20f 100644
--- a/misc/fortune-mod-bofh/Makefile
+++ b/misc/fortune-mod-bofh/Makefile
@@ -13,17 +13,24 @@ DISTFILES= bofh-fortune-mod${PORTVERSION}${EXTRACT_SUFX}:original,freebsd
MAINTAINER= onatan@gmail.com
COMMENT= Compilation of excuses from the "Bastard Operator From Hell"
-NO_BUILD= yes
WRKSRC= ${WRKDIR}/bofh-fortune-mod2.0
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
+.if exists(/usr/games/strfile)
STRFILE= /usr/games/strfile
+.elif exists(/usr/bin/strfile)
+STRFILE= /usr/bin/strfile
+.else
+IGNORE= needs strfile command. Please install games distribution of base system
+.endif
+
+do-build:
+ @${STRFILE} ${WRKSRC}/bofh
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
- @${INSTALL_DATA} ${WRKSRC}/bofh ${STAGEDIR}${PREFIX}/share/games/fortune
- @${STRFILE} ${STAGEDIR}${PREFIX}/share/games/fortune/bofh
+ ${INSTALL_DATA} ${WRKSRC}/bofh* ${STAGEDIR}${PREFIX}/share/games/fortune
.include <bsd.port.mk>
diff --git a/misc/fortune-mod-culmea-culmilor/Makefile.fortune b/misc/fortune-mod-culmea-culmilor/Makefile.fortune
index ab526cabae7..99ea4224b80 100644
--- a/misc/fortune-mod-culmea-culmilor/Makefile.fortune
+++ b/misc/fortune-mod-culmea-culmilor/Makefile.fortune
@@ -2,7 +2,13 @@
NO_WRKSUBDIR= yes
+.if exists(/usr/games/strfile)
_STRFILE= /usr/games/strfile
+.elif exists(/usr/bin/strfile)
+_STRFILE= /usr/bin/strfile
+.else
+IGNORE= needs strfile command. Please install games distribution of base system
+.endif
_STRFILE_ARGS?= -C
_FORTUNE_DIR= share/games/fortune
FORTUNE_DIR= ${PREFIX}/${_FORTUNE_DIR}
@@ -29,16 +35,13 @@ do-build:
fi
do-install:
@${MKDIR} ${STAGEDIR}${FORTUNE_DIR}
- @${INSTALL_DATA} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${FORTUNE_DIR}/${FORTUNE_FILE}
- @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.dat ${STAGEDIR}${FORTUNE_DIR}/${FORTUNE_FILE}.dat
- @if [ -f ${WRKSRC}/${PORTNAME}-o ]; then \
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${FORTUNE_DIR}/${FORTUNE_FILE}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.dat ${STAGEDIR}${FORTUNE_DIR}/${FORTUNE_FILE}.dat
+ if [ -f ${WRKSRC}/${PORTNAME}-o ]; then \
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-o ${STAGEDIR}${FORTUNE_DIR}/${FORTUNE_FILE_O}; \
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-o.dat ${STAGEDIR}${FORTUNE_DIR}/${FORTUNE_FILE_O}.dat; \
fi
-post-install:
@if [ -f ${WRKSRC}/${PORTNAME}-o ]; then \
${ECHO_CMD} ${_FORTUNE_DIR}/${FORTUNE_FILE_O} >> ${TMPPLIST}; \
${ECHO_CMD} ${_FORTUNE_DIR}/${FORTUNE_FILE_O}.dat >> ${TMPPLIST}; \
fi
- @${ECHO_CMD} "@unexec rmdir %D/${_FORTUNE_DIR} 2>/dev/null || true" >> ${TMPPLIST}
- @${ECHO_CMD} "@unexec rmdir %D/share/games 2>/dev/null || true" >> ${TMPPLIST}
diff --git a/misc/fortune-mod-epictetus/Makefile b/misc/fortune-mod-epictetus/Makefile
index 6ceb3b1b3cd..b028206f379 100644
--- a/misc/fortune-mod-epictetus/Makefile
+++ b/misc/fortune-mod-epictetus/Makefile
@@ -15,13 +15,19 @@ USES= tar:bzip2
PLIST_FILES= share/games/fortune/epictetus \
share/games/fortune/epictetus.dat
+.if exists(/usr/games/strfile)
STRFILE= /usr/games/strfile
+.elif exists(/usr/bin/strfile)
+STRFILE= /usr/bin/strfile
+.else
+IGNORE= needs strfile command. Please install games distribution of base system
+.endif
do-build:
@(cd ${WRKSRC} && ${STRFILE} epictetus)
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
- @${INSTALL_DATA} ${WRKSRC}/epictetus* ${STAGEDIR}${PREFIX}/share/games/fortune
+ ${INSTALL_DATA} ${WRKSRC}/epictetus* ${STAGEDIR}${PREFIX}/share/games/fortune
.include <bsd.port.mk>
diff --git a/misc/fortune-mod-futurama/Makefile b/misc/fortune-mod-futurama/Makefile
index 1c954e4a055..ef26cfd4d02 100644
--- a/misc/fortune-mod-futurama/Makefile
+++ b/misc/fortune-mod-futurama/Makefile
@@ -11,13 +11,21 @@ MASTER_SITES= http://www.netmeister.org/apps/ \
MAINTAINER= freebsd@skysmurf.nl
COMMENT= Compilation of quotes from the TV series "Futurama"
-USES= tar:bzip2
+USES= tar:bzip2
SUB_FILES= pkg-message
PLIST_FILES= share/games/fortune/futurama share/games/fortune/futurama.dat
+.if exists(/usr/games/strfile)
+STRFILE= /usr/games/strfile
+.elif exists(/usr/bin/strfile)
+STRFILE= /usr/bin/strfile
+.else
+IGNORE= needs strfile command. Please install games distribution of base system
+.endif
+
do-build:
- @cd ${WRKSRC} && /usr/games/strfile futurama
+ @${STRFILE} ${WRKSRC}/futurama
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
diff --git a/misc/fortuneit/Makefile b/misc/fortuneit/Makefile
index 355906fe41b..4e6ee5c3dff 100644
--- a/misc/fortuneit/Makefile
+++ b/misc/fortuneit/Makefile
@@ -10,38 +10,29 @@ DISTNAME= fortune-it-${PORTVERSION}
MAINTAINER= gmarco@gufi.org
COMMENT= Funny fortune file in Italian
+.if exists(/usr/games/strfile)
STRCMD= /usr/games/strfile
+.elif exists(/usr/bin/strfile)
+STRCMD= /usr/bin/strfile
+.else
+IGNORE= needs strfile command. Please install games distribution of base system
+.endif
FORTUNEFILES= adams banner computer definizioni formiche italia itatrek \
jackfr leggi luke luttazzi norm paolotedeschi zuse \
computer-o definizioni-o film-o italia-o jackfr-o leggi-o \
luttazzi-o obsc-o zuse-o
-pre-build:
-.if !exists(${STRCMD})
- @${ECHO_MSG} "Please install the games distribution"
- @exit 1
-.endif
-
do-build:
.for f in ${FORTUNEFILES}
${STRCMD} ${WRKSRC}/testi/${f}
.endfor
do-install:
- @${MKDIR} ${STAGEDIR}${PREFIX}/share/games
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
.for f in ${FORTUNEFILES}
- @${INSTALL_DATA} ${WRKSRC}/testi/${f}* \
+ ${INSTALL_DATA} ${WRKSRC}/testi/${f}* \
${STAGEDIR}${PREFIX}/share/games/fortune
.endfor
-post-install:
- @${ECHO_MSG} ""
- @${ECHO_MSG} "Usage:"
- @${ECHO_MSG} "/usr/games/fortune [-aDefilosw] ${PREFIX}/share/games/fortune/"
- @${ECHO_MSG} ""
- @${ECHO_MSG} "Please check fortune manual pages for more informations"
- @${ECHO_MSG} ""
-
.include <bsd.port.mk>