aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/xmris/Makefile37
-rw-r--r--games/xmris/pkg-plist12
-rw-r--r--games/xmris/scripts/pre-configure10
3 files changed, 34 insertions, 25 deletions
diff --git a/games/xmris/Makefile b/games/xmris/Makefile
index 84533e987ce3..ab75eff3b36c 100644
--- a/games/xmris/Makefile
+++ b/games/xmris/Makefile
@@ -3,10 +3,9 @@
PORTNAME= xmris
PORTVERSION= 4.04
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_XCONTRIB}
-MASTER_SITE_SUBDIR= games
+MASTER_SITES= XCONTRIB/games
DISTNAME= ${PORTNAME}.${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
@@ -14,17 +13,31 @@ COMMENT= Version of the Mr Do video arcade game for X11
USES= imake tar:tgz
USE_XORG= x11 xext xaw xmu xt sm ice
-MAKE_FLAGS= XAPPLOADDIR=${PREFIX}/lib/X11/app-defaults -f
+MAKE_ARGS= XAPPLOADDIR=${PREFIX}/lib/X11/app-defaults
ALL_TARGET= xmris xmred
-MAN6= xmred.6 xmris.6 xmsit.6
-NO_STAGE= yes
-post-configure:
- cd ${WRKSRC} && ${REINPLACE_CMD} -e 's/MANSUFFIX = 1/MANSUFFIX = 6/' \
- -e 's/OWNER = -o games/OWNER = -g games/' \
- -e 's/^INSTMRISFLAGS.*/INSTMRISFLAGS = \$(OWNER) -m 2555/' Makefile
+DESKTOP_ENTRIES="XMRis" "" "" "${PORTNAME}" "" ""
-post-install:
- @${CHMOD} g+w ${LOCALBASE}/lib/X11/xmris
+post-build:
+ @${LN} -sf Xmris-ad.src ${WRKSRC}/Xmris
+
+do-install:
+.for i in xmred xmris
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} \
+ ${STAGEDIR}${PREFIX}/bin)
+.endfor
+ @${LN} -sf xmris ${STAGEDIR}${PREFIX}/bin/xmsit
+.for i in xmred xmris
+ (cd ${WRKSRC} && ${INSTALL_MAN} ${i}.man \
+ ${STAGEDIR}${MANPREFIX}/man/man6/${i}.6)
+.endfor
+ @${LN} -sf xmris.6 ${STAGEDIR}${MANPREFIX}/man/man6/xmsit.6
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/app-defaults
+ (cd ${WRKSRC} && ${INSTALL_DATA} Xmris \
+ ${STAGEDIR}${PREFIX}/lib/X11/app-defaults)
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/xmris
+ (cd ${WRKSRC} && ${INSTALL_DATA} *.gdn \
+ ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/xmris)
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xmris
.include <bsd.port.mk>
diff --git a/games/xmris/pkg-plist b/games/xmris/pkg-plist
index dc36102f0c57..1a6081a0f0cb 100644
--- a/games/xmris/pkg-plist
+++ b/games/xmris/pkg-plist
@@ -1,12 +1,18 @@
+@group games
+@mode 2555
bin/xmris
bin/xmsit
bin/xmred
-@exec mkdir -p %D/lib/X11/xmris
-@exec chmod 775 %D/lib/X11/xmris
-@unexec rm -rf %D/lib/X11/xmris
+@mode
+@group
+man/man6/xmred.6.gz
+man/man6/xmris.6.gz
+man/man6/xmsit.6.gz
lib/X11/app-defaults/Xmris
lib/X11/app-defaults/xmris/alphabet.gdn
lib/X11/app-defaults/xmris/digits.gdn
lib/X11/app-defaults/xmris/puzzle.gdn
lib/X11/app-defaults/xmris/xmred.gdn
+@exec install -d -g games -m 775 %D/lib/X11/xmris
+@dirrmtry lib/X11/xmris
@dirrm lib/X11/app-defaults/xmris
diff --git a/games/xmris/scripts/pre-configure b/games/xmris/scripts/pre-configure
deleted file mode 100644
index 1f40dd7c9a56..000000000000
--- a/games/xmris/scripts/pre-configure
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-mv ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
-
-echo "LOCAL=$PREFIX" >${WRKSRC}/Imakefile || exit 1;
-
-# remove extra space after \ in continuation lines
-sed -e 's/\\ $/\\/' <${WRKSRC}/Imakefile.orig >>${WRKSRC}/Imakefile || exit 1
-
-exit 0