aboutsummaryrefslogtreecommitdiffstats
path: root/astro/pp3/Makefile
blob: a81e4461288bca497f43deceec27ea3d8a8eccbf (plain) (blame)
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
35
36
37
38
# ex:ts=8
# Ports collection makefile for:    pp3
# Date created:         Dec 24, 2003
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   pp3
PORTVERSION=    1.3.3
CATEGORIES= astro
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

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

RUN_DEPENDS=    latex:${PORTSDIR}/print/teTeX

USE_BZIP2=  yes

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

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/pp3 ${PREFIX}/bin
    @${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/*.dat ${DATADIR}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/WHATSNEW ${DOCSDIR}
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>