0e36dadb66
individual port, introduce a new variable for bsd.port.mk, VMEM_WARNING. By setting this variable to `Yes', the user is given a warning about the virtual memory requirements just before the pre-build stage. o Also give some examples for different shells for what to do about it, and mention login.conf(5). bash, for example, has a confusing -v flag to ulimit. o Document this in bsd.port.mk.5 espie@ ok
60 lines
1.9 KiB
Makefile
60 lines
1.9 KiB
Makefile
# $OpenBSD: Makefile,v 1.10 2001/11/11 13:57:32 heko Exp $
|
|
|
|
COMMENT= "solving toolkit for linear equalities and inequalities"
|
|
|
|
DISTNAME= cassowary-0.60
|
|
CATEGORIES= math
|
|
NEED_VERSION= 1.475
|
|
HOMEPAGE= http://www.cs.washington.edu/research/constraints/cassowary/
|
|
|
|
MAINTAINER= Peter Valchev <pvalchev@openbsd.org>
|
|
|
|
PERMIT_PACKAGE_CDROM= "no due to GTL dependency"
|
|
PERMIT_PACKAGE_FTP= "no due to GTL dependency"
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
|
|
PATCH_LIST= ${PORTSDIR}/infrastructure/patches/patch-lt1.3.3-ltconfig \
|
|
${PORTSDIR}/infrastructure/patches/patch-lt1.3.3-ltmain_sh \
|
|
patch-*
|
|
|
|
BUILD_DEPENDS= ::devel/bison
|
|
LIB_DEPENDS= GTL.1::devel/gtl \
|
|
guile.9::lang/guile
|
|
|
|
USE_GMAKE= Yes
|
|
YACC= bison -y
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} --enable-static \
|
|
--enable-fd-solver \
|
|
--with-gtl=${LOCALBASE} \
|
|
--with-guile-prefix=${LOCALBASE}
|
|
MAKE_FLAGS= MACHINE_ARCH=${MACHINE_ARCH}
|
|
FAKE_FLAGS= PREFIX="${WRKINST}${PREFIX}"
|
|
|
|
# work around internal compiler error
|
|
.if ${MACHINE_ARCH} == "sparc"
|
|
CXXFLAGS+= -O0
|
|
.endif
|
|
|
|
VMEM_WARNING= Yes
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/cassowary-config ${PREFIX}/bin/cassowary-config
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/cassowary
|
|
${INSTALL_DATA} ${WRKSRC}/c++/Cl.h ${PREFIX}/include
|
|
${INSTALL_DATA} ${WRKSRC}/c++/ClC.h ${PREFIX}/include
|
|
${INSTALL_DATA} ${WRKSRC}/c++/*.h ${PREFIX}/include/cassowary
|
|
${INSTALL_DATA} ${WRKSRC}/guile/*.h ${PREFIX}/include/cassowary
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/cassowary/tests
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/guile/site/cassowary
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cassowary
|
|
${INSTALL_PROGRAM} ${WRKSRC}/c++/ClTests ${PREFIX}/lib/cassowary/tests
|
|
${INSTALL_DATA} ${WRKSRC}/guile/.libs/* ${PREFIX}/lib/guile/site/cassowary
|
|
${INSTALL_DATA} ${WRKSRC}/c++/.libs/* ${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKSRC}/docs/cassowary-tr.* ${PREFIX}/share/doc/cassowary
|
|
|
|
.include <bsd.port.mk>
|