aboutsummaryrefslogtreecommitdiffstats
path: root/games/ptools
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2013-10-21 22:12:26 +0800
committereadler <eadler@FreeBSD.org>2013-10-21 22:12:26 +0800
commit5fa49fbac35966faeb2c5500307040a639e0165a (patch)
treec8e37f3ec6e023072cc0586757bdba2481c6a5cc /games/ptools
parent3c241eddb1e7feb11b20e4500a722c36d7ad8e8e (diff)
downloadfreebsd-ports-gnome-5fa49fbac35966faeb2c5500307040a639e0165a.tar.gz
freebsd-ports-gnome-5fa49fbac35966faeb2c5500307040a639e0165a.tar.zst
freebsd-ports-gnome-5fa49fbac35966faeb2c5500307040a639e0165a.zip
- Convert to staging
- Fix Package Name Collision - Convert to OptionsNG
Diffstat (limited to 'games/ptools')
-rw-r--r--games/ptools/Makefile15
-rw-r--r--games/ptools/pkg-plist2
2 files changed, 10 insertions, 7 deletions
diff --git a/games/ptools/Makefile b/games/ptools/Makefile
index 949c01992fee..9178558e073b 100644
--- a/games/ptools/Makefile
+++ b/games/ptools/Makefile
@@ -6,6 +6,7 @@ PORTVERSION= 1.1
CATEGORIES= games
MASTER_SITES= http://www.koth.org/pmars/:koth \
http://www.infionline.net/~wtnewton/corewar/:corestep
+PKGNAMESUFFIX= -game
DISTFILES= ${PORTNAME}${PORTVERSION:S/.//}.zip:koth \
pmars08s.zip:koth \
p3-2.pl:koth \
@@ -24,7 +25,7 @@ NO_WRKSUBDIR= yes
MAN6= ptools-mopt.6 ptools-mts.6
-NO_STAGE= yes
+.include <bsd.port.options.mk>
post-build:
(${ECHO_CMD} "#!${PERL}"; ${CAT} ${DISTDIR}/p3-2.pl) \
> ${WRKSRC}/p3-2.pl
@@ -32,16 +33,16 @@ post-build:
do-install:
.for f in corestep mopt mts pname
- ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin/${PORTNAME}-${f}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-${f}
.endfor
- ${INSTALL_SCRIPT} ${WRKSRC}/p3-2.pl ${PREFIX}/bin/${PORTNAME}-p3-2
+ ${INSTALL_SCRIPT} ${WRKSRC}/p3-2.pl ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-p3-2
.for f in mopt.6 mts.6
- ${INSTALL_MAN} ${WRKSRC}/${f} ${MAN6PREFIX}/man/man6/${PORTNAME}-${f}
+ ${INSTALL_MAN} ${WRKSRC}/${f} ${STAGEDIR}${MAN6PREFIX}/man/man6/${PORTNAME}-${f}
.endfor
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
. for f in mopt.doc mts.doc pname.doc readme.ptools
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
. endfor
.endif
diff --git a/games/ptools/pkg-plist b/games/ptools/pkg-plist
index cf368cc6001f..f08cccc268c4 100644
--- a/games/ptools/pkg-plist
+++ b/games/ptools/pkg-plist
@@ -3,6 +3,8 @@ bin/ptools-mopt
bin/ptools-mts
bin/ptools-p3-2
bin/ptools-pname
+man/man6/ptools-mopt.6.gz
+man/man6/ptools-mts.6.gz
%%PORTDOCS%%%%DOCSDIR%%/mopt.doc
%%PORTDOCS%%%%DOCSDIR%%/mts.doc
%%PORTDOCS%%%%DOCSDIR%%/pname.doc