aboutsummaryrefslogtreecommitdiff
path: root/games/crafty
diff options
context:
space:
mode:
authorJohan van Selst <johans@FreeBSD.org>2015-07-01 19:54:56 +0000
committerJohan van Selst <johans@FreeBSD.org>2015-07-01 19:54:56 +0000
commitd1a57d31030f49051e58fed7bacdb017e2867a0a (patch)
tree63992f82855ba82e97c5bd7578bb9637546b857f /games/crafty
parent82fb08a31346de115b0a2d9a78ba815e228b507a (diff)
downloadports-d1a57d31030f49051e58fed7bacdb017e2867a0a.tar.gz
ports-d1a57d31030f49051e58fed7bacdb017e2867a0a.zip
Notes
Diffstat (limited to 'games/crafty')
-rw-r--r--games/crafty/Makefile23
-rw-r--r--games/crafty/pkg-plist5
2 files changed, 10 insertions, 18 deletions
diff --git a/games/crafty/Makefile b/games/crafty/Makefile
index 9e674ac01c2f..53927b7cf3cd 100644
--- a/games/crafty/Makefile
+++ b/games/crafty/Makefile
@@ -31,7 +31,7 @@ WITH_RCDIR?= ~/
WITH_TBDIR?= ${PREFIX}/lib/crafty/TB
WITH_PERSDIR?= ${PREFIX}/lib/crafty/cpf
-OPT= -DCPUS=4 -DHASHSTATS -DTRACE -DBOOKDIR=\\\"${WITH_BOOKDIR}\\\" \
+OPT= -DHASHSTATS -DTRACE -DBOOKDIR=\\\"${WITH_BOOKDIR}\\\" \
-DLOGDIR=\\\"${WITH_LOGDIR}\\\" \
-DRCDIR=\\\"${WITH_RCDIR}\\\" \
-DTBDIR=\\\"${WITH_TBDIR}\\\" \
@@ -42,22 +42,17 @@ OPTIONS_DEFAULT=DOCS
OPTIONS_SUB= yes
BOOK_DESC= Include (default) opening book
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "i386"
-# The i386 assembly is currently broken - disable for this version
-#OPT+= -DINLINE32
-.elif ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
-BROKEN= Does not compile on ia64, powerpc, or sparc64
-.endif
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
DOCFILES= crafty.doc.ascii crafty.doc.ps
DISTFILES+= ${DOCFILES:S/$/:doc/}
UTILS= bitmaps.tgz sound.zip
DISTFILES+= ${UTILS:S/$/:utils/}
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "i386" || ${ARCH} == "amd64"
+OPT+= -DCPUS=4
+.else
+OPT+= -DCPUS=1 # disables x86 assembler
.endif
.if ${PORT_OPTIONS:MBOOK}
@@ -85,10 +80,8 @@ do-install:
.endif
${INSTALL_DATA} ${WRKSRC}/books.bin ${WRKSRC}/crafty.hlp \
${STAGEDIR}${PREFIX}/lib/crafty
-.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${DOCFILES} ${UTILS} \
${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.post.mk>
diff --git a/games/crafty/pkg-plist b/games/crafty/pkg-plist
index da378873522a..1de6a89b71ee 100644
--- a/games/crafty/pkg-plist
+++ b/games/crafty/pkg-plist
@@ -12,10 +12,9 @@ lib/crafty/crafty.hlp
%%PORTDOCS%%%%DOCSDIR%%/crafty.doc.ps
%%PORTDOCS%%%%DOCSDIR%%/bitmaps.tgz
%%PORTDOCS%%%%DOCSDIR%%/sound.zip
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
@mode 775
@group nogroup
-@dirrm lib/crafty/cpf
-@dirrm lib/crafty
+@dir lib/crafty/cpf
+@dir lib/crafty
@mode
@group wheel