aboutsummaryrefslogtreecommitdiffstats
path: root/astro/swe/Makefile
blob: 29686d2ea8bd5aa8047066798fce1b81b81b02d1 (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
# New ports collection makefile for:    swe
# Date created:             30 Oct 2008
# Whom:                 Wen Heping <wenheping@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   swe
PORTVERSION=    1.75.00
CATEGORIES= astro devel
MASTER_SITES=   ftp://ftp.astro.com/pub/swisseph/
DISTNAME=   ${PORTNAME}_unix_src_${PORTVERSION}

MAINTAINER= wenheping@gmail.com
COMMENT=    The High Precision Ephemeris Developed By Astrodienst

WRKSRC=     ${WRKDIR}/src
USE_GMAKE=  yes
ALL_TARGET=
USE_LDCONFIG=   yes

post-patch:
    @${REINPLACE_CMD} -e 's|-pedantic||' ${WRKSRC}/Makefile

do-install:
    ${INSTALL_DATA} ${WRKSRC}/libswe.a ${LOCALBASE}/lib
    ${MKDIR} ${LOCALBASE}/include/swe
    ${INSTALL_DATA} ${WRKSRC}/*.h ${LOCALBASE}/include/swe

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKDIR}/doc/* ${DOCSDIR}/
.endif

.include <bsd.port.mk>