1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/games/linux-savage/Makefile
Eitan Adler 2ceda74a65 LEGAL: fix multiple ports
Rename lang/dmd -> lang/dmd1 (cy)
	Merge legal text for net/vmware-vsphere-cli (zi)
	Fix sysutils/tarsnap to have text in LEGAL (cperciva)
	games/linux-savage restricted reason (acm)
	text edit for archivers/rar (gabor)
	copy from port to LEGAL for lang/ifc (maho)
	copy from LEGAL to port for science/gamess (maho)
	add LEGAL_PACKAGE to lang/dmd1 (cy)

This brings the total number of ports with issues to below 100

Approved by:	portmgr (implicit)
2014-05-17 07:24:47 +00:00

86 lines
2.6 KiB
Makefile

# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
# $FreeBSD$
PORTNAME= savage
PORTVERSION= 2.00e
PORTREVISION= 2
CATEGORIES= games linux
MASTER_SITES= http://www.notforidiots.com/SFE/ \
http://www.newerth.com/downloads/ \
http://newerth.downloads.groentjuh.eu/ \
http://guf.newerth.com/downloads/ \
http://mnky.newerth.com/
PKGNAMEPREFIX= linux-
DISTFILES= SFE-Standalone${EXTRACT_SUFX}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= acm@FreeBSD.org
COMMENT= The Savage game (Linux version)
USE_LINUX= yes
USE_LINUX_APPS= libvorbis tiff
NO_BUILD= yes
RESTRICTED= Freeware, but license terms are unclear
NO_PACKAGE= Package will be 150MB, set FORCE_PACKAGE if you really want it
PLIST_SUB+= SAVAGEDIR="${SAVAGEDIR}"
SUB_FILES= pkg-message savage savage_editor
SUB_LIST+= SAVAGEDIR="${PREFIX}/${SAVAGEDIR}"
DOCSDIR= share/doc/${PKGNAMEPREFIX}${PORTNAME}
WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME}
SAVAGEDIR= lib/${PKGNAMEPREFIX}${PORTNAME}
OPTIONS_DEFINE= NVIDIA_GL
NVIDIA_GL_DESC= Support for nvidia
NO_STAGE= yes
.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MNVIDIA_GL}
. if !exists(${LINUXBASE}/usr/X11R6/lib/libGL.so.1)
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver \
${LINUXBASE}/usr/X11R6/lib/libGLU.so.1:${PORTSDIR}/graphics/linux-libGLU
. endif
.else
USE_LINUX_APPS+=dri
.endif
do-extract:
@${MKDIR} ${WRKSRC}
@cd ${WRKSRC} && \
${TAR} xfz ${_DISTDIR}/${DISTFILES} --directory ${WRKSRC}
do-install:
@${MKDIR} ${PREFIX}/${SAVAGEDIR}
.for DIRE in graveyard game
@${MKDIR} ${PREFIX}/${SAVAGEDIR}/${DIRE}
@cd ${WRKSRC}/${DIRE} && \
${FIND} * -type d -exec ${MKDIR} "${PREFIX}/${SAVAGEDIR}/${DIRE}/{}" \; && \
${FIND} * -type f -name "*.so" -exec ${INSTALL_PROGRAM} "{}" \
"${PREFIX}/${SAVAGEDIR}/${DIRE}/{}" \; && \
${FIND} -E * -type f -iregex ".*\.(cfg|dat|db|dll|jpg|mcfg|objgroup|ogg|tga|txt|ttf|s2g|s2z)" \
-exec ${INSTALL_DATA} "{}" "${PREFIX}/${SAVAGEDIR}/${DIRE}/{}" \;
.endfor
@${MKDIR} ${PREFIX}/${SAVAGEDIR}/libs
@cd ${WRKSRC}/libs && \
${FIND} * -type f -exec ${INSTALL_PROGRAM} "{}" "${PREFIX}/${SAVAGEDIR}/libs/{}" \;
${INSTALL_PROGRAM} ${WRKSRC}/silverback.bin ${PREFIX}/${SAVAGEDIR}
.for FILE in savage savage_editor
${INSTALL_SCRIPT} ${WRKDIR}/${FILE} ${PREFIX}/bin/${PKGNAMEPREFIX}${FILE}
.endfor
${LN} -s ${PREFIX}/${SAVAGEDIR}/libs/libfmod-3.75.so ${PREFIX}/${SAVAGEDIR}/libs/libfmod.so
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${PREFIX}/${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/licenses.txt ${PREFIX}/${DOCSDIR}
.endif
post-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>