diff options
Diffstat (limited to 'games/q3cellshading/Makefile')
-rw-r--r-- | games/q3cellshading/Makefile | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/games/q3cellshading/Makefile b/games/q3cellshading/Makefile index bd5ded09b76a..385ae31185e0 100644 --- a/games/q3cellshading/Makefile +++ b/games/q3cellshading/Makefile @@ -14,9 +14,10 @@ COMMENT= Quake III engine with Cell Shading capabilities ONLY_FOR_ARCHS= i386 ONLY_FOR_ARCHS_REASON= does not run properly; try games/ioquake3 with option -USES= gmake dos2unix zip +USES= compiler dos2unix gmake zip WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} BUILD_WRKSRC= ${WRKSRC}/code/unix +MAKE_JOBS_UNSAFE= yes LIBDIR= ${PREFIX}/lib/${PORTNAME} MAKE_ENV= LIBDIR="${LIBDIR}" @@ -28,13 +29,13 @@ OPTIONS_DEFINE= GAMELIBS OPTIMIZED_CFLAGS OPTIONS_MULTI= FLAVOR OPTIONS_MULTI_FLAVOR= CLIENT DEDICATED SMP_CLIENT OPTIONS_DEFAULT= CLIENT DEDICATED OPTIMIZED_CFLAGS SMP_CLIENT +OPTIONS_SUB= yes CLIENT_DESC= Build client DEDICATED_DESC= Build dedicated server GAMELIBS_DESC= Force building game libraries SMP_CLIENT_DESC= Build SMP (threaded) client -NO_STAGE= yes .include <bsd.port.pre.mk> .if ${ARCH} == "i386" @@ -58,25 +59,16 @@ USE_XORG= xxf86dga .if ${PORT_OPTIONS:MCLIENT} MAKE_ENV+= CLIENT=YES -PLIST_SUB+= CLIENT="" Q3BIN+= quake3 -.else -PLIST_SUB+= CLIENT="@comment " .endif .if ${PORT_OPTIONS:MDEDICATED} MAKE_ENV+= DEDICATED=YES -PLIST_SUB+= DEDICATED="" Q3BIN+= q3ded -.else -PLIST_SUB+= DEDICATED="@comment " .endif .if ${PORT_OPTIONS:MGAMELIBS} || !defined(HAVE_VM_COMPILED) MAKE_ENV+= GAMELIBS=YES -PLIST_SUB+= GAMELIBS="" -.else -PLIST_SUB+= GAMELIBS="@comment " .endif .if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} @@ -85,10 +77,7 @@ MAKE_ENV+= OPTIMIZED_CFLAGS=YES .if ${PORT_OPTIONS:MSMP_CLIENT} MAKE_ENV+= SMP=YES PTHREAD_LIBS="${PTHREAD_LIBS}" -PLIST_SUB+= SMP="" Q3BIN+= quake3-smp -.else -PLIST_SUB+= SMP="@comment " .endif post-patch: @@ -98,17 +87,22 @@ post-patch: 's|//[[:blank:]]*\(Swap_Init[[:blank:]]*();\)|\1|' \ ${WRKSRC}/code/botlib/be_interface.c \ ${WRKSRC}/code/renderer/tr_init.c +.if ${COMPILER_TYPE} == clang + @${REINPLACE_CMD} -E 's,-falign-(jumps|loops)=2,,g; s|-O6||' \ + ${WRKSRC}/code/unix/Makefile +.endif do-install: .for bin in ${Q3BIN} # Adjust program names to avoid conflicts with other Quake3 ports ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/release/${bin} \ - ${PREFIX}/bin/${bin:C/(quake3|q3)/\1cel/} + ${STAGEDIR}${PREFIX}/bin/${bin:C/(quake3|q3)/\1cel/} .endfor .if ${PORT_OPTIONS:MGAMELIBS} || !defined(HAVE_VM_COMPILED) .for dir in baseq3 missionpack - @${MKDIR} ${LIBDIR}/${dir} - ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/release/${dir}/*.so ${LIBDIR}/${dir} + @${MKDIR} ${STAGEDIR}${LIBDIR}/${dir} + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/release/${dir}/*.so \ + ${STAGEDIR}${LIBDIR}/${dir} .endfor .endif |