Fix the old FindLua51 module too.

This commit is contained in:
dcoppa 2012-07-12 16:26:13 +00:00
parent 4ef301dd98
commit 957583efb2
2 changed files with 23 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.61 2012/07/12 15:36:20 dcoppa Exp $
# $OpenBSD: Makefile,v 1.62 2012/07/12 16:26:13 dcoppa Exp $
VMEM_WARNING = Yes
BROKEN-arm = build fails since move to gcc4
@ -7,7 +7,7 @@ HOMEPAGE = http://www.cmake.org/
CATEGORIES = devel
COMMENT = portable build system
DISTNAME = cmake-2.8.8
REVISION = 8
REVISION = 9
MASTER_SITES = ${HOMEPAGE}files/v2.8/
MAINTAINER = David Coppa <dcoppa@openbsd.org>

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-Modules_FindLua51_cmake,v 1.1 2012/07/12 16:26:13 dcoppa Exp $
--- Modules/FindLua51.cmake.orig Thu Jul 12 18:17:15 2012
+++ Modules/FindLua51.cmake Thu Jul 12 18:23:12 2012
@@ -28,7 +28,7 @@
FIND_PATH(LUA_INCLUDE_DIR lua.h
HINTS
$ENV{LUA_DIR}
- PATH_SUFFIXES include/lua51 include/lua5.1 include/lua include
+ PATH_SUFFIXES include/lua-5.1 include/lua51 include/lua5.1 include/lua include
PATHS
~/Library/Frameworks
/Library/Frameworks
@@ -41,7 +41,7 @@ FIND_PATH(LUA_INCLUDE_DIR lua.h
)
FIND_LIBRARY(LUA_LIBRARY
- NAMES lua51 lua5.1 lua-5.1 lua
+ NAMES lua5.1 lua51 lua-5.1 lua
HINTS
$ENV{LUA_DIR}
PATH_SUFFIXES lib64 lib