1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

- Fix metamod load problem

- Make use of slaveport targets
- Fix hardcoded paths
This commit is contained in:
Patrick Li 2001-12-15 11:13:58 +00:00
parent 3456c3ed44
commit cada8ce4fc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51563
2 changed files with 17 additions and 3 deletions

View File

@ -8,13 +8,26 @@
PORTNAME= admin
PORTVERSION= 2.50.09
PORTEPOCH= 1
MASTER_SITES= http://www.adminmod.org/downloads/
DISTNAME= halflife-${PORTNAME}-${PORTVERSION}
MASTER_SITES= http://www.adminmod.org/downloads/ \
http://metamod.org/files/other/
DISTFILES= halflife-${PORTNAME}-${PORTVERSION}.tgz \
metamod_i386.so
DIST_SUBDIR= ${PORTNAME}
EXTRACT_SUFX= .tgz
EXTRACT_ONLY= ${DISTFILES:S/metamod_i386.so//}
WRKSRC= ${WRKDIR}/Admin
slaveport-post-extract:
@${CP} ${DISTDIR}/${DIST_SUBDIR}/metamod_i386.so \
${WRKSRC}/dlls
@${PERL} -pi.orig -e \
's|/usr/local/games/hlds_l|${PREFIX}${HLDSDIR:S/\/$//}|' \
${WRKSRC}/install_admin
slaveport-post-install:
@${INSTALL_SCRIPT} ${WRKSRC}/install_admin \
${PREFIX}${HLDSDIR}/Admin
HALFLIFE_COUNTERSTRIKE_MASTER= ${.CURDIR}/../hlserver-cs
.include "${HALFLIFE_COUNTERSTRIKE_MASTER}/Makefile"

View File

@ -1 +1,2 @@
MD5 (admin/halflife-admin-2.50.09.tgz) = 0c3e84ab27a3c743b9528732817a5c1e
MD5 (admin/metamod_i386.so) = 95daa539247243b49a90e12f0034386d