diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2009-06-29 10:27:53 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2009-06-29 10:27:53 +0000 |
commit | 37fc47bb2214bdb85fafd64d4b8b01e7ef145574 (patch) | |
tree | e3302ebbc9e615aa1857833cf78c5527bd2ddb1f /games/mvdsv/Makefile | |
parent | 674ce85efcdb63d83b17032184398d5556caa783 (diff) | |
download | ports-37fc47bb2214bdb85fafd64d4b8b01e7ef145574.tar.gz ports-37fc47bb2214bdb85fafd64d4b8b01e7ef145574.zip |
- Update to version 0.28
- Reflect project move to qw-dev.net
- Drop custom Makefile, use vendor provided
- Utilize OPTIONS
- Properly display pkg-message
Notes
Notes:
svn path=/head/; revision=236766
Diffstat (limited to 'games/mvdsv/Makefile')
-rw-r--r-- | games/mvdsv/Makefile | 51 |
1 files changed, 27 insertions, 24 deletions
diff --git a/games/mvdsv/Makefile b/games/mvdsv/Makefile index aa3265cb0991..c6673b06187a 100644 --- a/games/mvdsv/Makefile +++ b/games/mvdsv/Makefile @@ -6,49 +6,52 @@ # PORTNAME?= mvdsv -PORTVERSION= 0.27 +PORTVERSION= 0.28 PORTEPOCH= 2 CATEGORIES?= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ - http://quakeworld.ru/files/vvd/mvdsv/ -MASTER_SITE_SUBDIR= ${PORTNAME} -DISTNAME= mvdsv_${PORTVERSION}_sources +MASTER_SITES= http://qw-dev.net/attachments/download/130/ +DISTNAME= mvdsv_${PORTVERSION}-sources MAINTAINER= danfe@FreeBSD.org COMMENT?= Enhanced QuakeWorld server with multi-view demos capability -USE_BZIP2= yes +USE_ZIP= yes -MAKEFILE= ${FILESDIR}/Makefile +HAS_CONFIGURE= yes +CONFIGURE_ARGS= ${OPSYS} ALL_TARGET= ${PORTNAME} +WRKSRC= ${WRKDIR}/mvdsv-${PORTVERSION} PLIST_FILES= bin/${PORTNAME} -WRKSRC= ${WRKDIR}/mvdsv_${PORTVERSION}/source + +OPTIONS= X86_ASM "Compile with x86 assembly code" on +.if ${PORTNAME} == "mvdsv" +OPTIONS+= KQUEUE "Enable Kqueue support" on +.endif .include <bsd.port.pre.mk> -.if ${ARCH} == "alpha" || ${ARCH} == "amd64" || ${ARCH} == "i386" || ${ARCH} == "ia64" -MAKE_ARGS+= BYTE_ORDER=__LITTLE_ENDIAN__ -.else -MAKE_ARGS+= BYTE_ORDER=__BIG_ENDIAN__ +.if defined(WITHOUT_KQUEUE) +MAKE_ARGS+= -DNOKQUEUE .endif -pre-everything:: -.if !defined(WITHOUT_KQUEUE) - @${ECHO_MSG} "Define WITHOUT_KQUEUE to disable Kqueue support" -.endif -.if !defined(WITH_OPTIMIZED_CFLAGS) - @${ECHO_MSG} "Define WITH_OPTIMIZED_CFLAGS to enable extra optimization options" -.endif -.if ${ARCH} == "i386" && !defined(WITHOUT_X86_ASM) - @${ECHO_MSG} "Define WITHOUT_X86_ASM to disable x86 assembly code" +.if defined(WITHOUT_X86_ASM) +MAKE_ARGS+= -DWITHOUT_X86_ASM .endif post-extract: -# Fix bogus directories permissions - @${FIND} ${WRKDIR} -type d -exec ${CHMOD} +X '{}' \; +# Allow execution of configure script (fix permissions) + @${CHMOD} +x ${WRKSRC}/configure do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/../${PORTNAME} ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + +post-install: +# Checking for presence of ${PKGMESSAGE} explicitly does not work here +.if exists(${.CURDIR}/pkg-message) + @${ECHO_MSG} + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} +.endif .include <bsd.port.post.mk> |