summaryrefslogtreecommitdiffstats
path: root/math/glpk/Makefile
blob: 9b57f5a1349bebf310778884cc5dc6ccbf35d0e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# New ports collection makefile for:	GLPK
# Date created:		16 December 2000
# Whom:			Dmitry Sivachenko <demon@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	glpk
PORTVERSION=	2.2
CATEGORIES=	math
MASTER_SITES=	${MASTER_SITE_GNU} \
		http://people.freebsd.org/~demon/distfiles/
MASTER_SITE_SUBDIR=	glpk
.if !defined(NOPORTDOCS)
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${DOCFILES}
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
.endif

MAINTAINER=	demon@FreeBSD.org

GNU_CONFIGURE=	yes

DOCFILES=	glpk_lr-1.1.1.ps.gz glpk_sm.ps.gz glpk_ug-1.1.1.ps.gz

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

.include <bsd.port.mk>
OpenPOWER on IntegriCloud