openbsd-ports/math/ccolamd/Makefile
steven 2149b68d1c add run-depend on ufconfig package, then UFconfig.h is always around so that
dependent ports can pick this port up correctly during configure

ok pirofti@
2010-10-27 18:25:08 +00:00

47 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.5 2010/10/27 18:25:08 steven Exp $
COMMENT = library for column approximate minimum degree ordering
DISTNAME = CCOLAMD-2.7.2
PKGNAME = ${DISTNAME:L}
REVISION = 2
SHARED_LIBS += ccolamd 0.0
CATEGORIES = math
HOMEPAGE = http://www.cise.ufl.edu/research/sparse/ccolamd/
MAINTAINER = Paul Irofti <pirofti@openbsd.org>
# LGPL
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${HOMEPAGE}/
WRKDIST = ${WRKDIR}/CCOLAMD
WRKSRC = ${WRKDIST}/Source
BUILD_DEPENDS = ::math/ufconfig
RUN_DEPENDS = ::math/ufconfig
MAKE_ENV= SHLIB_MAJOR=${LIBccolamd_VERSION:R} \
SHLIB_MINOR=${LIBccolamd_VERSION:E}
CFLAGS += -I${WRKDIST}/Include -I${LOCALBASE}/include
FAKE_FLAGS = LIBDIR=${LOCALBASE}/lib DEBUGLIBS=no
MAKE_FILE= ${FILESDIR}/Makefile
# See bsd.lib.mk:162
.if ${MACHINE_ARCH:Mmips64*}
PKG_ARGS+= -Dno_mips64=0
.else
PKG_ARGS+= -Dno_mips64=1
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/include/ccolamd
${INSTALL_DATA} ${WRKDIST}/Include/ccolamd.h ${PREFIX}/include/ccolamd
.include <bsd.port.mk>