mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
f9116b2e98
- Use options helpers - Support STAGEDIR PR: ports/186109 (based on) [1] Submitted by: Jakub Lach <jakub_lach@mailplus.pl> (maintainer) [1]
55 lines
1.2 KiB
Makefile
55 lines
1.2 KiB
Makefile
# Created by: Alejandro Pulver <alejandro@varnet.biz>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= data
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://www.ijs.si/~lesi/distfiles/doom/
|
|
PKGNAMEPREFIX= ${DMPKGNAMEPREFIX}
|
|
DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
MAINTAINER= jakub_lach@mailplus.pl
|
|
COMMENT= Shareware data files for Doom, Doom II, Hexen, Heretic, and Strife
|
|
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
OPTIONS_MULTI= WADS
|
|
OPTIONS_MULTI_WADS= DOOM HERETIC HEXEN STRIFE
|
|
OPTIONS_DEFAULT= DOOM
|
|
|
|
DOOM_DESC= Install Doom shareware data
|
|
HERETIC_DESC= Install Heretic shareware data
|
|
HEXEN_DESC= Install Hexen shareware data
|
|
STRIFE_DESC= Install Strife shareware data
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
|
|
DATADIR= ${DMDIR}
|
|
|
|
DOOM_DISTFILES= doom1.wad.bz2
|
|
HERETIC_DISTFILES= heretic1.wad.bz2
|
|
HEXEN_DISTFILES= hexen.wad.bz2
|
|
STRIFE_DISTFILES= strife0.wad.bz2
|
|
|
|
.include "Makefile.include"
|
|
.include <bsd.port.options.mk>
|
|
|
|
do-extract:
|
|
@${MKDIR} ${WRKDIR}
|
|
.for f in ${DISTFILES}
|
|
@${BZIP2_CMD} -dc ${_DISTDIR}/${f} > ${WRKDIR}/${f:S/.bz2$//}
|
|
.endfor
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
.for f in ${DISTFILES}
|
|
${INSTALL_DATA} ${WRKSRC}/${f:S/.bz2$//} ${STAGEDIR}${DATADIR}/
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|