freebsd-ports/games/linux-darwinia-demo/Makefile
Mathieu Arnold 065c026fe5 Fix ports that confused the meaning of WRKDIR and WRKSRC.
PR:		204056
Submitted by:	mat
Reviewed by:	bapt
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D2735
2015-11-05 12:36:25 +00:00

57 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= darwinia-demo
PORTVERSION= 1.3.0
CATEGORIES= games linux
MASTER_SITES= http://download.introversion.co.uk/mirror/introversion/darwinia/downloads/
PKGNAMEPREFIX= linux-
DISTNAME= ${PORTNAME}2-${PORTVERSION}
EXTRACT_SUFX= .sh
MAINTAINER= mva@FreeBSD.org
COMMENT= Real-time action strategy with programs
ONLY_FOR_ARCHS= i386 amd64
USE_LINUX= yes
USE_LINUX_APPS= sdl12 libogg libvorbis xorglibs
NO_CDROM= Redistribution is limited, see license
NO_BUILD= yes
NO_WRKSUBDIR= yes
DATADIR= ${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME}
SUB_FILES= darwinia
OPTIONS_DEFINE= NVIDIA DOCS
NVIDIA_DESC= Enable nvidia graphics driver support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNVIDIA}
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
USE_LINUX_APPS+=libglu
.else
USE_LINUX_APPS+=dri
.endif
do-extract:
@cd ${WRKSRC} && ${TAIL} +376 ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \
${TAR} zxf -
do-build:
${BRANDELF} -t Linux ${WRKSRC}/lib/darwinia.bin.x86
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
@cd ${WRKSRC}/lib && \
${INSTALL_PROGRAM} darwinia.bin.x86 ${STAGEDIR}${DATADIR} && \
${INSTALL_DATA} *.dat open-www.sh ${STAGEDIR}${DATADIR}
${INSTALL_PROGRAM} ${WRKDIR}/darwinia \
${STAGEDIR}${PREFIX}/bin/${PKGNAMEPREFIX}darwinia
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/LICENSE ${STAGEDIR}${DOCSDIR}/LICENSE
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/README
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>