summaryrefslogtreecommitdiff
path: root/astro/gpstk/Makefile
blob: 84f69565c5f4dc9d61e29133091573b45667d369 (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
39
40
41
42
43
44
45
46
47
48
# Created by: bms@FreeBSD.org
# $FreeBSD$

PORTNAME=	gpstk
PORTVERSION=	2.0
CATEGORIES=	astro devel
MASTER_SITES=	SF
DISTNAME=	${PORTNAME}-${PORTVERSION}.src

MAINTAINER=	jhein@symmetricom.com
COMMENT=	Toolkit for developing GPS applications

BUILD_DEPENDS=	jam:${PORTSDIR}/devel/jam

WRKSRC=		${WRKDIR}/${PORTNAME}

NO_STAGE=	yes
USE_PYTHON_RUN=	yes
USE_LDCONFIG=	yes
USE_DOS2UNIX=	yes
USE_GCC=	4.2+
DOS2UNIX_REGEX=	${WRKSRC}/Jamrules

JAM=		jam
JAM_ENV=	PREFIX="${PREFIX}" \
		BINDIR="${PREFIX}/bin" \
		INCDIR="${PREFIX}/include/${PORTNAME}" \
		LIBDIR="${PREFIX}/lib" \
		CC="${CC}" CCFLAGS="${CFLAGS}" \
		C++="${CXX}" C++FLAGS="${CXXFLAGS}"

do-build:
	cd ${WRKSRC} && ${SETENV} ${JAM_ENV} ${JAM}

NOSTRIPFILES=	ddPlot|ordPlot  # don't strip scripts
SHLIBS=		geodyn geomatics gpstk procframe rxio vdraw vplot
SHLIBVER=	${PORTVERSION:C/\.//g}
do-install:
	@${MKDIR} ${PREFIX}/include/${PORTNAME}
	cd ${WRKSRC} && ${SETENV} ${JAM_ENV} ${JAM} install
.for shlib in ${SHLIBS}
	@${LN} -sf lib${shlib}.so.${SHLIBVER} ${PREFIX}/lib/lib${shlib}.so
.endfor
	@${STRIP_CMD} `${GREP} '^bin/' ${PLIST} | \
		 ${GREP} -E -v '^bin/(${NOSTRIPFILES})$$' | \
		 ${SED} 's:^:${PREFIX}/:g'`

.include <bsd.port.mk>