1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/math/ogdf/Makefile
Baptiste Daroussin 4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00

62 lines
1.3 KiB
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= ogdf
PORTVERSION= 2012.07
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://people.freebsd.org/~gahr/distfiles/
MASTER_SITE_SUBDIR= gahr
DISTNAME= ogdf.v2012.07
MAINTAINER= gahr@FreeBSD.org
COMMENT= C++ class library for the automatic layout of diagrams
LICENSE= GPLv2
OPTIONS_DEFINE= COIN ABACUS
COIN_DESC= Use the Coin Open Solver Interface (Osi)
ABACUS_DESC= Use the ABACUS branch-and-cut library
USES= zip
USE_LDCONFIG= yes
USE_PYTHON= build
WRKSRC= ${WRKDIR}/${PORTNAME:tu}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCOIN}
LIB_DEPENDS+= libClp.so:${PORTSDIR}/math/coinmp
USE_COIN= true
.else
USE_COIN= false
.endif
.if ${PORT_OPTIONS:MABACUS}
USE_GCC= yes
LIB_DEPENDS+= libabacus-osi.so:${PORTSDIR}/math/abacus
USE_ABACUS= true
USE_COIN= true
.else
USE_ABACUS= false
.endif
post-patch:
${REINPLACE_CMD} -e '\
s|%%CXX%%|${CXX}|g; \
s|%%LOCALBASE%%|${LOCALBASE}|g; \
s|%%USE_COIN%%|${USE_COIN}|g; \
s|%%USE_ABACUS%%|${USE_ABACUS}|g' \
${WRKSRC}/makeMakefile.config
do-configure:
cd ${WRKSRC} && ${PYTHON_CMD} makeMakefile.py
do-install:
${INSTALL_DATA} ${WRKSRC}/_release/libOGDF.so ${STAGEDIR}${PREFIX}/lib/libOGDF.so.1
${LN} -sf libOGDF.so.1 ${STAGEDIR}${PREFIX}/lib/libOGDF.so
cd ${WRKSRC} && ${COPYTREE_SHARE} ogdf ${STAGEDIR}${PREFIX}/include
.include <bsd.port.mk>