diff options
author | beech <beech@FreeBSD.org> | 2013-03-17 15:35:44 +0800 |
---|---|---|
committer | beech <beech@FreeBSD.org> | 2013-03-17 15:35:44 +0800 |
commit | 2ef651fd01a123b11f6f774c6c363013629621ca (patch) | |
tree | 2ac5c73fa6e287412ab10b6ffe3bd834e46d01d5 /games/cre | |
parent | 51596243e757e0fb803705504ccbe2a98d4680fe (diff) | |
download | freebsd-ports-gnome-2ef651fd01a123b11f6f774c6c363013629621ca.tar.gz freebsd-ports-gnome-2ef651fd01a123b11f6f774c6c363013629621ca.tar.zst freebsd-ports-gnome-2ef651fd01a123b11f6f774c6c363013629621ca.zip |
- Convert to OptionsNG
- Add license
PR: ports/177039
Submitted by: nemysis <nemysis@gmx.ch> (maintainer)
Diffstat (limited to 'games/cre')
-rw-r--r-- | games/cre/Makefile | 30 | ||||
-rw-r--r-- | games/cre/pkg-descr | 2 | ||||
-rw-r--r-- | games/cre/pkg-plist | 4 |
3 files changed, 20 insertions, 16 deletions
diff --git a/games/cre/Makefile b/games/cre/Makefile index a1950d273e6f..0e828dbbe124 100644 --- a/games/cre/Makefile +++ b/games/cre/Makefile @@ -1,12 +1,9 @@ -# New ports collection makefile for: cre -# Date created: 2008-01-15 -# Whom: alepulver -# +# Created by: alepulver # $FreeBSD$ -# PORTNAME= cre DISTVERSION= 1.2beta_r2 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-dev/1.2%20BETA%2C%20Release%202 DISTNAME= ${PORTNAME}_${DISTVERSION}_src @@ -14,24 +11,35 @@ DISTNAME= ${PORTNAME}_${DISTVERSION}_src MAINTAINER= ports@FreeBSD.org COMMENT= Corewars Redcode Evolver +LICENSE= GPLv2 + USE_DOS2UNIX= ../*.txt WRKSRC= ${WRKDIR}/src +PLIST_FILES= bin/${PORTNAME} + +PORTDOCS= *.txt + +.include <bsd.port.options.mk> + post-extract: @${CP} ${FILESDIR}/${MAKEFILE} ${WRKSRC} + @cd ${WRKDIR} && ${MV} "CRE Manual.txt" CRE_Manual.txt && \ + ${MV} "Exhaust README.txt" Exhaust_README.txt post-patch: @cd ${WRKSRC} && ${REINPLACE_CMD} -e '/memwatch\.h/d' \ asm.c pspace.c sim.c - @cd ${WRKSRC} && ${REINPLACE_CMD} -e \ - 's|random[[:blank:]]*(|myrandom(|' \ + @cd ${WRKSRC} && ${REINPLACE_CMD} \ + -e 's|random[[:blank:]]*(|myrandom(|' \ battler.c generator.c globals.h Main.c do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKDIR}/*.txt ${DOCSDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/ + +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKDIR}/|} ${DOCSDIR} .endif .include <bsd.port.mk> diff --git a/games/cre/pkg-descr b/games/cre/pkg-descr index 59340b9c57ad..81d2bcf4efc8 100644 --- a/games/cre/pkg-descr +++ b/games/cre/pkg-descr @@ -9,4 +9,4 @@ happens: 3. The fittest warriors reproduce and replace less fit warriors. 4. The previous two steps are repeated indefinitely. -WWW: http://cre.sourceforge.net/ +WWW: http://cre.sourceforge.net/ diff --git a/games/cre/pkg-plist b/games/cre/pkg-plist index bba61c4b9abc..e69de29bb2d1 100644 --- a/games/cre/pkg-plist +++ b/games/cre/pkg-plist @@ -1,4 +0,0 @@ -bin/cre -%%PORTDOCS%%%%DOCSDIR%%/CRE Manual.txt -%%PORTDOCS%%%%DOCSDIR%%/Exhaust README.txt -%%PORTDOCS%%@dirrm %%DOCSDIR%% |