diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-09-18 19:58:07 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-09-18 19:58:07 +0000 |
commit | 839718038b8542e6b16ad3b915d20721418694d9 (patch) | |
tree | 33b2afadfcc1b06b9c58ce6b4aa2ec989401a0dc /games/doomlegacy/Makefile | |
parent | 64eb82663b62a9861a5855f3718a3e3b6f67bc56 (diff) | |
download | ports-839718038b8542e6b16ad3b915d20721418694d9.tar.gz ports-839718038b8542e6b16ad3b915d20721418694d9.zip |
Notes
Diffstat (limited to 'games/doomlegacy/Makefile')
-rw-r--r-- | games/doomlegacy/Makefile | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/games/doomlegacy/Makefile b/games/doomlegacy/Makefile index e0d07229c6a8..a474ff7ee4db 100644 --- a/games/doomlegacy/Makefile +++ b/games/doomlegacy/Makefile @@ -6,10 +6,9 @@ PORTNAME= doomlegacy PORTVERSION= 142 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF DISTNAME= legacy_${PORTVERSION}_src DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${WADFILE} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} @@ -19,8 +18,6 @@ COMMENT= DooM Legacy: popular DooM clone! EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip -ONLY_FOR_ARCHS= i386 - USE_GL= yes USE_GMAKE= yes USE_SDL= mixer sdl @@ -40,6 +37,14 @@ DATADIR= ${PREFIX}/lib/${PORTNAME} post-extract: ${UNZIP_CMD} -q ${DISTDIR}/${WADFILE} -d ${WRKDIR}/bin +post-patch: + @${REINPLACE_CMD} -e \ + 's|-I/usr/local/include/SDL11|`${SDL_CONFIG} --cflags`|; \ + s|-lSDL-1\.1|`${SDL_CONFIG} --libs`|; \ + s|/usr/local|${LOCALBASE}|; \ + s|/usr/X11R6|${X11BASE}|' \ + ${WRKSRC}/${MAKEFILE} + pre-build: cd ${WRKSRC}/linux_x/sndserv && ${GMAKE} clean @@ -53,7 +58,7 @@ do-install: ${INSTALL} -c -s -o root -g kmem -m 2555 ${WRKDIR}/bin/lsdldoom \ ${DATADIR} ${INSTALL_DATA} ${WRKDIR}/bin/legacy.dat ${DATADIR} - ${INSTALL_SCRIPT} ${WRKDIR}/legacy ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/legacy ${PREFIX}/bin/${PORTNAME} post-install: .ifndef(NOPORTDOCS) @@ -67,7 +72,7 @@ post-install: .include <bsd.port.pre.mk> -.if defined(WITH_X86_ASM) +.if defined(WITH_X86_ASM) && ${ARCH} == "i386" BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm MAKE_ARGS+= USEASM=1 .endif |