summaryrefslogtreecommitdiffstats
path: root/astro/pp3/Makefile
blob: de164c498a52257dcd01095a8c646cf2f34aaf6a (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=	pp3
PORTVERSION=	1.3.3
PORTREVISION=	6
CATEGORIES=	astro
MASTER_SITES=	SF/${PORTNAME}/PP3/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Creates celestial charts

USES=		tar:bzip2
USE_TEX=	latex

OPTIONS_DEFINE=	DOCS EXAMPLES

do-build:
	(cd ${WRKSRC} \
		&& ${CXX} ${CXXFLAGS} -DPP3DATA=\"${DATADIR}\" pp3.cc -o pp3)

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/pp3 ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/*.dat ${STAGEDIR}${DATADIR}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/WHATSNEW ${STAGEDIR}${DOCSDIR}
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}

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