openbsd-ports/devel/cmake/Makefile
espie eab92da0b6 fix shared library numbers for OpenBSD. Patch may still change, but it
appears to work fine w/ kde4.

cmake will still generate a libfoo.so (which is useful as a placeholder to
know the lib has been built, since other directories don't have access to
the version number), but it obeys OpenBSD conventions for the actual library
now.

ld does the right thing, namely it ignores the libfoo.so and links against
libfoo.so.5.0 properly.

Also take environment into account to allow the ports tree to override
version numbers.

Todo: logfile of built libraries.
2007-03-26 21:27:44 +00:00

44 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.6 2007/03/26 21:27:44 espie Exp $
HOMEPAGE= http://www.cmake.org/
CATEGORIES= devel
COMMENT= portable build system
DISTNAME= cmake-2.4.6
PKGNAME= ${DISTNAME}p1
MASTER_SITES= ${HOMEPAGE}files/v2.4/
MAINTAINER= Marc Espie <espie@openbsd.org>
# BSD
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
CONFIGURE_STYLE= simple
CONFIGURE_SCRIPT= ${WRKSRC}/bootstrap
SEPARATE_BUILD= simple
CONFIGURE_ENV= LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} MAKE=make
CONFIGURE_ARGS= --prefix=${LOCALBASE} --docdir=/share/doc/CMake \
--datadir=/share/CMake --system-libs
LIB_DEPENDS= curl::net/curl \
expat::textproc/expat \
xmlrpc,xmlrpc_client,xmlrpc_util,xmlrpc_xmlparse,xmlrpc_xmltok::net/xmlrpc-c
WANTLIB= m curses c stdc++ z crypto pthread ssl
# Add these if you need to figure out what's going on.
#CONFIGURE_ARGS+= --verbose
#MAKE_FLAGS= VERBOSE=1
REGRESS_TARGET= test
# For the registry test to work
pre-regress:
mkdir -p ${WRKDIR}/registryhome
REGRESS_FLAGS=HOME=${WRKDIR}/registryhome
.include <bsd.port.mk>