1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Fix the usage of 'python' to get rid of the implicit lang/python

dependency
- Restrict the build to the supported Python versions

Reported by:	exp-run (PR 184591)
Approved by:	portmgr (blanket)
This commit is contained in:
Marcus von Appen 2013-12-15 13:35:52 +00:00
parent c410082fc9
commit 5a4d34c9a4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=336530

View File

@ -16,7 +16,7 @@ LICENSE= ZLIB
LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
USE_PYTHON_BUILD= yes
USE_PYTHON_BUILD= 2
BAM_VERSION= 0.4.0
BAM_WRKSRC= ${WRKDIR}/bam-${BAM_VERSION}
@ -52,6 +52,8 @@ DESKTOP_ENTRIES="Teeworlds" \
.endif
post-patch:
@${REINPLACE_CMD} -e 's|"python "|"${PYTHON_CMD} "|' \
${WRKSRC}/bam.lua
@${REINPLACE_CMD} -e 's|-O.||; s|-lpthread|${PTHREAD_LIBS}|; s|^gcc|${CC} ${CFLAGS}|; s|-ldl||g' \
${BAM_WRKSRC}/make_unix.sh
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/other/sdl/sdl.lua