mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Create a makeself uses to handle makeself archives
This commit is contained in:
parent
cfc6f0bb2a
commit
1efa84b8f3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=347390
23
Mk/Uses/makeself.mk
Normal file
23
Mk/Uses/makeself.mk
Normal file
@ -0,0 +1,23 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
# handle makeself archives
|
||||
#
|
||||
# MAINTAINER: portmgr@FreeBSD.org
|
||||
#
|
||||
# Feature: makeself
|
||||
# Usage: USES=makeself
|
||||
#
|
||||
.if !defined(_INCLUDE_USES_MAKESELF_Mk)
|
||||
_INCLUDE_USES_MAKESELF_MK= yes
|
||||
|
||||
.if defined(gmake_ARGS)
|
||||
IGNORE= Incorrect 'USES+= gmake:${gmake_ARGS}' gmake takes no arguments
|
||||
.endif
|
||||
|
||||
EXTRACT_DEPENDS= ${UNMAKESELF_CMD}:${PORTSDIR}/archivers/unmakeself
|
||||
|
||||
EXTRACT_CMD= ${UNMAKESELF_CMD}
|
||||
EXTRACT_BEFORE_ARGS=
|
||||
EXTRACT_AFTER_ARGS=
|
||||
|
||||
.endif
|
@ -11,13 +11,16 @@ DISTNAME= ${PORTNAME}_linux_gui-${PORTVERSION}
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:game \
|
||||
${MAP_PACK}:maps
|
||||
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
||||
EXTRACT_SUFX= .run
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Fast-paced first-person-perspective online multiplayer game
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
|
||||
|
||||
USE_MAKESELF= yes
|
||||
USES= makeself
|
||||
USE_LINUX= yes
|
||||
USE_LINUX_APPS+=dri
|
||||
NO_BUILD= yes
|
||||
@ -28,7 +31,6 @@ DATADIR= ${PREFIX}/lib/${PORTNAME}
|
||||
MAP_PACK= BTMappack-1.05.unf
|
||||
PLIST_SUB= MAP_PACK="${MAP_PACK}"
|
||||
|
||||
NO_STAGE= yes
|
||||
post-extract:
|
||||
@cd ${WRKDIR} && ${TAR} xf legends.tar
|
||||
|
||||
@ -38,19 +40,17 @@ post-patch:
|
||||
${WRKSRC}/bin/runlegends
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${DATADIR}
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
cd ${WRKSRC} && \
|
||||
${INSTALL_PROGRAM} LinLegends lindedicated *.so* ${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/bin/runlegends ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/legends.ico ${PREFIX}/share/pixmaps
|
||||
${LN} -sf ${DATADIR}/runlegends ${PREFIX}/bin/${PORTNAME}
|
||||
${INSTALL_PROGRAM} LinLegends lindedicated *.so* ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/bin/runlegends ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/legends.ico ${STAGEDIR}${PREFIX}/share/pixmaps
|
||||
${LN} -sf ${DATADIR}/runlegends ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
||||
.for f in common legends main.cs show
|
||||
${CP} -r ${WRKSRC}/${f} ${DATADIR}
|
||||
${CP} -r ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
|
||||
.endfor
|
||||
${INSTALL_DATA} ${DISTDIR}/${MAP_PACK} ${DATADIR}/legends
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
|
||||
.endif
|
||||
${INSTALL_DATA} ${DISTDIR}/${MAP_PACK} ${STAGEDIR}${DATADIR}/legends
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/*.txt ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -8,11 +8,12 @@ MASTER_SITES= ${MASTER_SITE_IDSOFTWARE}
|
||||
MASTER_SITE_SUBDIR= wolf/linux
|
||||
PKGNAMEPREFIX= linux-
|
||||
DISTNAME= wolf-linux-${DISTVERSION}.x86
|
||||
EXTRACT_SUFX= .run
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Return to Castle Wolfenstein (Linux version)
|
||||
|
||||
USE_MAKESELF= yes
|
||||
USES= makeself
|
||||
USE_LINUX= yes
|
||||
USE_LINUX_APPS= dri xorglibs
|
||||
NO_WRKSUBDIR= yes
|
||||
|
@ -18,8 +18,7 @@ COMMENT= Open source FPS game inspired by the Padman comic strip
|
||||
|
||||
NO_PACKAGE= package will be ~600MB; set FORCE_PACKAGE if you really want it
|
||||
|
||||
USES= gmake
|
||||
USE_MAKESELF= yes
|
||||
USES= gmake makeself
|
||||
MAKE_ENV= DEFAULT_BASEDIR="${DATADIR}" PTHREAD_LIBS="${PTHREAD_LIBS}"
|
||||
ALL_TARGET= release
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user