# New ports collection makefile for:	GLPK
# Date created:		16 December 2000
# Whom:			Dmitry Sivachenko <demon@FreeBSD.org>
#
# $FreeBSD: ports/math/glpk/Makefile,v 1.21 2006/05/29 14:04:13 demon Exp $
#

PORTNAME=	glpk
PORTVERSION=	4.10
CATEGORIES=	math
MASTER_SITES=	${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=	glpk

MAINTAINER=	demon@FreeBSD.org
COMMENT=	A GNU Linear Programming Kit

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
CFLAGS+=	-trigraphs

DOCFILES=	lang.ps refman.ps bench.txt GLPK_FAQ.txt

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	for file in ${DOCFILES} ; do \
		${INSTALL_DATA} ${WRKSRC}/doc/$$file ${DOCSDIR} ; \
	done
.endif

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
CFLAGS+=	-fPIC
.endif

.include <bsd.port.post.mk>
