1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/games/mvdsv/Makefile
Alexey Dokuchaev a8793d3005 - Remove hardcoded "gcc" in configure script to unbreak on -CURRENT
- Stagify; drop no longer needed MAKE_ARGS and post-install target
- Touch pkg-descr and slave port's COMMENT while I'm at them

Reported by:	pkg-fallout
2013-10-08 15:59:56 +00:00

55 lines
1.1 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@regency.nsu.ru>
# $FreeBSD$
PORTNAME?= mvdsv
PORTVERSION= 0.29
PORTEPOCH= 2
CATEGORIES?= games
MASTER_SITES= http://qw-dev.net/attachments/download/201/
DISTNAME= mvdsv_${PORTVERSION}-sources
MAINTAINER= danfe@FreeBSD.org
COMMENT?= Enhanced QuakeWorld server with multi-view demos capability
LICENSE= GPLv2
USE_ZIP= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= ${OPSYS} ${ARCH:C/.*(64)/\1/}
ALL_TARGET= ${PORTNAME}
WRKSRC= ${WRKDIR}/mvdsv
PLIST_FILES= bin/${PORTNAME}
OPTIONS_DEFINE_i386= ASM
OPTIONS_DEFINE_amd64= ASM
OPTIONS_DEFAULT_i386= ASM
OPTIONS_DEFAULT_amd64= ASM
.if ${PORTNAME} == "mvdsv"
OPTIONS_DEFINE+= KQUEUE
OPTIONS_DEFAULT+= KQUEUE
.endif
KQUEUE_DESC= Kqueue support
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MKQUEUE}
MAKE_ARGS+= -DNOKQUEUE
.endif
.if ! ${PORT_OPTIONS:MASM}
MAKE_ARGS+= -DWITHOUT_X86_ASM
.endif
post-patch:
@${REINPLACE_CMD} -e 's,gcc,${CC},' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's,^inline ,,' ${WRKSRC}/source/sv_sys_unix.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>