aboutsummaryrefslogtreecommitdiffstats
path: root/astro/swe/Makefile
blob: 0426bdfb4081a3754884a54dca66b878d5910d75 (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
# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD$

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

MAINTAINER= bofh@FreeBSD.org
COMMENT=    High Precision Ephemeris Developed By Astrodienst

LICENSE=    GPLv2

WRKSRC=     ${WRKDIR}/src
USES=       gmake
ALL_TARGET= #
MAKE_ARGS=  CFLAGS="${CFLAGS}"
USE_LDCONFIG=   yes

OPTIONS_DEFINE= DOCS

do-install:
    ${INSTALL_LIB} ${WRKSRC}/libswe.a ${STAGEDIR}${PREFIX}/lib
    ${MKDIR} ${STAGEDIR}${PREFIX}/include/swe
    ${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/swe
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKDIR}/doc/* ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>