games/{quake2lnx,r1q2}: unbreak the build after src commit 660331da7a

Reported by:	pkg-fallout
This commit is contained in:
Alexey Dokuchaev 2025-01-30 06:45:56 +00:00
parent e564411db2
commit a095df27d3
2 changed files with 4 additions and 0 deletions

View file

@ -201,6 +201,8 @@ post-patch: .SILENT
${WRKSRC}/src/linux/vid_so.c
${REINPLACE_CMD} -e 's|dllname, RTLD_LAZY|& \| RTLD_GLOBAL|' \
${WRKSRC}/src/linux/qgl_linux.c
${REINPLACE_CMD} -e '/param\.h/s|machine|sys|' \
${WRKSRC}/src/linux/q_shlinux.c
${REINPLACE_CMD} -e 's|/js|/joy|' ${WRKSRC}/src/linux/joystick.c
${REINPLACE_CMD} -e 's|jpeg_mem_src|local_&|' \
${WRKSRC}/src/ref_candygl/gl_image.c

View file

@ -70,6 +70,8 @@ PLIST_SUB+= REF_GL="@comment "
post-patch:
@${REINPLACE_CMD} -e 's|game$$(ARCH)|game|g' \
${BUILD_WRKSRC}/game/Makefile
@${REINPLACE_CMD} -e '/param\.h/s|machine|sys|' \
${WRKSRC}/linux/q_shlinux.c
@${REINPLACE_CMD} -e '/SV_FixPlayerSkin/s,__inline,static,' \
${WRKSRC}/server/sv_game.c