Skip to content

Instantly share code, notes, and snippets.

@qingfeng
Created May 26, 2009 08:24
Show Gist options
  • Select an option

  • Save qingfeng/117955 to your computer and use it in GitHub Desktop.

Select an option

Save qingfeng/117955 to your computer and use it in GitHub Desktop.
让Tokyo Tyrant开启lua支持,以及修正了BUILD_DEPENDS的Makefile patch
*** Makefile Tue May 26 16:10:20 2009
--- Makefile.bak Tue May 26 11:07:05 2009
***************
*** 14,31 ****
MAINTAINER= [email protected]
COMMENT= Network interface of Tokyo Cabinet
! BUILD_DEPENDS= tokyocabinet>=1.4.20:${PORTSDIR}/databases/tokyocabinet
LIB_DEPENDS= tokyocabinet:${PORTSDIR}/databases/tokyocabinet
! RUN_DEPENDS= tokyocabinet>=1.4.20:${PORTSDIR}/databases/tokyocabinet
!
! .if defined(WITH_LUA)
! USE_LUA= 5.1
! CONFIGURE_ARGS+=--enable-lua
! CONFIGURE_ENV+= CFLAGS="-I${LOCALBASE}/include -I${LUA_INCDIR}" \
! LDFLAGS="-L${LOCALBASE}/lib -L${LUA_LIBDIR}" \
! PKG_CONFIG_PATH="${LUA_PREFIX}/share/doc/${LUA_SUBDIR}/etc"
!
! .endif
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
--- 14,22 ----
MAINTAINER= [email protected]
COMMENT= Network interface of Tokyo Cabinet
! BUILD_DEPENDS= tokyocabinet>=1.4.7:${PORTSDIR}/databases/tokyocabinet
LIB_DEPENDS= tokyocabinet:${PORTSDIR}/databases/tokyocabinet
! RUN_DEPENDS= tokyocabinet>=1.4.7:${PORTSDIR}/databases/tokyocabinet
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment