freebsd-ports/games/hlserver-admin/Makefile
Patrick Li cada8ce4fc - Fix metamod load problem
- Make use of slaveport targets
- Fix hardcoded paths
2001-12-15 11:13:58 +00:00

33 lines
880 B
Makefile

# New ports collection makefile for: Half Life Admin Mod
# Date created: Sun Apr 29 15:58:33 EDT 2001
# Whom: pat@databits.net et al
#
# $FreeBSD$
#
PORTNAME= admin
PORTVERSION= 2.50.09
PORTEPOCH= 1
MASTER_SITES= http://www.adminmod.org/downloads/ \
http://metamod.org/files/other/
DISTFILES= halflife-${PORTNAME}-${PORTVERSION}.tgz \
metamod_i386.so
DIST_SUBDIR= ${PORTNAME}
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"