mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
bc07afc1c2
the ECHO macro is set to "echo" by default, but it is set to "true" if make(1) is invoked with the -s option while ECHO_CMD is always set to the echo command. Use command macros where appropriate.
57 lines
1.8 KiB
Makefile
57 lines
1.8 KiB
Makefile
# 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_CMD} "#!${SH}" > ${WRKSRC}/newkind
|
|
@ ${ECHO_CMD} "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>
|