View | Details | Raw Unified | Return to bug 187487 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-9 / +7 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	CoinMP
4
PORTNAME=	CoinMP
5
PORTVERSION=	1.7.6
5
PORTVERSION=	1.7.6
6
PORTREVISION=	1
6
CATEGORIES=	math
7
CATEGORIES=	math
7
MASTER_SITES=	http://www.coin-or.org/download/source/CoinMP/
8
MASTER_SITES=	http://www.coin-or.org/download/source/CoinMP/
8
9
Lines 22-35 Link Here
22
INSTALL_TARGET=	install-strip
23
INSTALL_TARGET=	install-strip
23
CONFIGURE_ARGS+=	PKG_CONFIG_PATH=${STAGEDIR}${PREFIX}/libdata/pkgconfig
24
CONFIGURE_ARGS+=	PKG_CONFIG_PATH=${STAGEDIR}${PREFIX}/libdata/pkgconfig
24
25
25
OPTIONS_DEFINE=	DEBUG DOCS
26
OPTIONS_DEFINE=	DEBUG DOCS GLPK
27
28
GLPK_DESC=	GNU Linear Programming Kit support
26
29
27
PORTDOCS=	*
30
PORTDOCS=	*
28
31
29
.include <bsd.port.options.mk>
32
.include <bsd.port.options.mk>
30
33
31
.if ${PORT_OPTIONS:MGLPK}
34
.if ${PORT_OPTIONS:MGLPK}
32
BROKEN =	the GLPK option requires math/glpk headers that are not currently installed by that port
33
CONFIGURE_ARGS+=	--with-gmpl-incdir=${LOCALBASE}/include	\
35
CONFIGURE_ARGS+=	--with-gmpl-incdir=${LOCALBASE}/include	\
34
		--with-gmpl-lib="-L${LOCALBASE}/lib -lglpk"
36
		--with-gmpl-lib="-L${LOCALBASE}/lib -lglpk"
35
LIB_DEPENDS+=	libglpk.so:${PORTSDIR}/math/glpk
37
LIB_DEPENDS+=	libglpk.so:${PORTSDIR}/math/glpk
Lines 43-56 Link Here
43
.endif
45
.endif
44
46
45
post-patch::
47
post-patch::
46
	@${REINPLACE_CMD} -e \
48
	@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
47
		's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
49
		's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
48
		${WRKSRC}/Clp/Makefile.in ${WRKSRC}/Osi/Makefile.in \
50
		-e 's|$$(DESTDIR)$$(addlibsdir)|$$(addlibsdir)|g' \
49
		${WRKSRC}/Cbc/Makefile.in ${WRKSRC}/Cgl/Makefile.in \
51
		-e 's|addlibs_DATA = examples/Makefile examples/example.c||g'
50
		${WRKSRC}/CoinUtils/Makefile.in ${WRKSRC}/CoinMP/Makefile.in \
51
		${WRKSRC}/Data/Sample/Makefile.in
52
	@${REINPLACE_CMD} -e 's|$$(DESTDIR)$$(addlibsdir)|$$(addlibsdir)|g' \
53
		${WRKSRC}/CoinMP/Makefile.in
54
52
55
post-install:
53
post-install:
56
	${MV} ${STAGEDIR}${PREFIX}/share/coin/doc ${STAGEDIR}${DOCSDIR}
54
	${MV} ${STAGEDIR}${PREFIX}/share/coin/doc ${STAGEDIR}${DOCSDIR}

Return to bug 187487