diff options
author | wjv <wjv@FreeBSD.org> | 2001-10-24 08:30:33 +0000 |
---|---|---|
committer | wjv <wjv@FreeBSD.org> | 2001-10-24 08:30:33 +0000 |
commit | c7c70e24487ea6de58c13c8abe2986028fb031c7 (patch) | |
tree | 292500f97ff154bc76ef07f4591074d57fb6813d /games/newkind/Makefile | |
parent | 62e20da09d7ab6c7dbe975abb7b437aaab44832b (diff) | |
download | FreeBSD-ports-c7c70e24487ea6de58c13c8abe2986028fb031c7.zip FreeBSD-ports-c7c70e24487ea6de58c13c8abe2986028fb031c7.tar.gz |
Add newkind 1.0, Elite: The New Kind - a remake of the 8-bit classic.
Diffstat (limited to 'games/newkind/Makefile')
-rw-r--r-- | games/newkind/Makefile | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/games/newkind/Makefile b/games/newkind/Makefile new file mode 100644 index 0000000..ba216d0 --- /dev/null +++ b/games/newkind/Makefile @@ -0,0 +1,56 @@ +# New ports collection makefile for: Elite - The New Kind +# Date created: 23 October 2001 +# Whom: Johann Visagie <wjv@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= newkind +PORTVERSION= 1.0 +CATEGORIES= games +MASTER_SITES= http://home.clara.net/cjpinder/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTFILES= ${PORTNAME}${EXTRACT_SUFX} ${PORTNAME}b${EXTRACT_SUFX} + +MAINTAINER= wjv@FreeBSD.org + +# It doesn't seem possible to construct a LIB_DEPENDS for Allegro(?) +# The dependence on the version number is also sub-optimal. +BUILD_DEPENDS= allegro-config:${PORTSDIR}/devel/allegro +RUN_DEPENDS= allegro-config:${PORTSDIR}/devel/allegro + +NO_CDROM= Reverse-engineered version of copyrighted abandonware +NO_PACKAGE= ${NO_CDROM} +USE_ZIP= yes +EXTRACT_BEFORE_ARGS= -oq +NO_WRKSUBDIR= yes +USE_GMAKE= yes +MAKEFILE= makefile +ALL_TARGET= +SHAREDIR= ${PREFIX}/share/${PORTNAME} + +# Currently, everything required to run newkind (including the binary) is +# installed to ${SHAREDIR}. A shell script wrapper is then installed to +# ${PREFIX}/bin. A more elegant installation to the standard directory +# hierarchy under ${PREFIX} would require extensive patching of source files, +# which will have to be maintained across future versions. If anyone feels +# up to it, you're more than welcome... :-) +do-install: + @ ${MKDIR} ${SHAREDIR}/data + @ ${INSTALL_PROGRAM} ${WRKSRC}/newkind.exe ${SHAREDIR} + @ ${INSTALL_DATA} ${WRKSRC}/elite.dat ${WRKSRC}/*.cfg \ + ${WRKSRC}/*.bmp ${WRKSRC}/*.wav ${SHAREDIR} + @ ${INSTALL_DATA} ${WRKSRC}/data/* ${SHAREDIR}/data + @ ${MKDIR} ${PREFIX}/bin + @ ${ECHO} "#!${SH}" > ${WRKSRC}/newkind + @ ${ECHO} "cd ${SHAREDIR} && exec \"./newkind.exe\" \"\$$@\"" \ + >> ${WRKSRC}/newkind + @ ${INSTALL_SCRIPT} ${WRKSRC}/newkind ${PREFIX}/bin + +post-install: +.if !defined(NOPORTDOCS) + @ ${MKDIR} ${DOCSDIR} + @ ${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR} +.endif + +.include <bsd.port.mk> |