- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# Created by: Alejandro Pulver <alejandro@varnet.biz>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= source
|
|
PORTVERSION= 1.01
|
|
PORTREVISION= 1
|
|
CATEGORIES= games
|
|
MASTER_SITES= IDSOFTWARE/source
|
|
PKGNAMEPREFIX= quake-
|
|
DISTNAME= qcc
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Quake game source code
|
|
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= QUAKEWORLD
|
|
OPTIONS_DEFAULT= QUAKEWORLD
|
|
|
|
QUAKEWORLD_DESC= Install QuakeWorld game source
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MQUAKEWORLD}
|
|
MASTER_SITES+= IDSOFTWARE/quakeworld/unix/:qw
|
|
DISTFILES+= qwsv-2.30-glibc-i386-unknown-linux2.0${EXTRACT_SUFX}:qw
|
|
COMMENT:= ${COMMENT:S/Quake/& and QuakeWorld/}
|
|
PLIST_SUB+= QUAKEWORLD=""
|
|
.else
|
|
PLIST_SUB+= QUAKEWORLD="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,^\.\.,.,' ${WRKSRC}/send/v101qc/progs.src
|
|
@${RM} ${WRKSRC}/send/v101qc/progs.src.bak
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${CP} -a ${WRKSRC}/send/v101qc ${STAGEDIR}${DATADIR}
|
|
.if ${PORT_OPTIONS:MQUAKEWORLD}
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/qw
|
|
. for f in *.h *.qc *.src
|
|
@${REINPLACE_CMD} -e 's,[[:cntrl:]]*$$,,' ${WRKSRC}/qw/${f}
|
|
${INSTALL_DATA} ${WRKSRC}/qw/${f} ${STAGEDIR}${DATADIR}/qw
|
|
. endfor
|
|
.endif
|
|
|
|
.include "Makefile.include"
|
|
.include <bsd.port.mk>
|