a575bb848f
on systems that have such directories but RbConfig doesn't have such options. Needed for some minor KDE SC parts. ok dcoppa@
69 lines
1.7 KiB
Makefile
69 lines
1.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.79 2013/04/22 13:13:56 zhuk Exp $
|
|
|
|
VMEM_WARNING = Yes
|
|
DPB_PROPERTIES =parallel
|
|
|
|
# avoid segfaults from binaries compiled and then used during the build
|
|
.if ${MACHINE_ARCH} == "arm"
|
|
CFLAGS += -O1 -fno-stack-protector
|
|
.endif
|
|
|
|
HOMEPAGE = http://www.cmake.org/
|
|
CATEGORIES = devel
|
|
COMMENT = portable build system
|
|
DISTNAME = cmake-2.8.10.2
|
|
REVISION = 4
|
|
MASTER_SITES = ${HOMEPAGE}files/v2.8/
|
|
|
|
MAINTAINER = David Coppa <dcoppa@openbsd.org>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB = archive c curl curses expat form m \
|
|
stdc++ z
|
|
|
|
LIB_DEPENDS = archivers/libarchive \
|
|
net/curl
|
|
|
|
CONFIGURE_STYLE = simple
|
|
CONFIGURE_ARGS = --prefix=${PREFIX} \
|
|
--datadir=/share/cmake \
|
|
--docdir=/share/doc/cmake \
|
|
--parallel=${MAKE_JOBS} \
|
|
--system-libs \
|
|
--verbose
|
|
|
|
CONFIGURE_ENV += MAKE=${MAKE_PROGRAM}
|
|
|
|
PORTHOME = ${WRKDIR}
|
|
|
|
SEPARATE_BUILD = Yes
|
|
|
|
TEST_TARGET = test
|
|
|
|
MAKE_FLAGS += VERBOSE=1
|
|
|
|
pre-configure:
|
|
cp ${FILESDIR}/*.cmake ${WRKSRC}/Modules/
|
|
${SUBST_CMD} ${WRKSRC}/Modules/CMakeDetermineJavaCompiler.cmake \
|
|
${WRKSRC}/Modules/FindFreetype.cmake \
|
|
${WRKSRC}/Modules/FindJNI.cmake \
|
|
${WRKSRC}/Modules/FindJava.cmake \
|
|
${WRKSRC}/Modules/FindLuaLibs.cmake \
|
|
${WRKSRC}/Modules/FindMPEG.cmake \
|
|
${WRKSRC}/Modules/FindMPEG2.cmake \
|
|
${WRKSRC}/Modules/FindQt.cmake \
|
|
${WRKSRC}/Modules/FindQt3.cmake \
|
|
${WRKSRC}/Modules/FindQt4.cmake \
|
|
${WRKSRC}/Modules/FindSDL.cmake \
|
|
${WRKSRC}/Modules/FindTCL.cmake \
|
|
${WRKSRC}/Modules/UseJava.cmake
|
|
|
|
post-install:
|
|
rm ${WRKINST}/${LOCALBASE}/share/cmake/Modules/*.{beforesubst,orig}
|
|
rm ${WRKINST}/${LOCALBASE}/share/cmake/Modules/Compiler/*.orig
|
|
rm ${WRKINST}/${LOCALBASE}/share/cmake/Modules/Platform/*.orig
|
|
|
|
.include <bsd.port.mk>
|