65 lines
1.4 KiB
Makefile
65 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.15 2013/11/25 14:16:22 sthen Exp $
|
|
|
|
COMMENT-main= GPS processing toolkit
|
|
COMMENT-devel= GPStk development libraries and headers
|
|
|
|
V= 1.5
|
|
DISTNAME= gpstk${V}
|
|
PKGNAME-main= gpstk-${V}
|
|
REVISION-main= 4
|
|
PKGNAME-devel= gpstk-devel-${V}
|
|
REVISION-devel= 6
|
|
CATEGORIES= geo devel
|
|
SHARED_LIBS= base 15.0 \
|
|
geomatics 15.0 \
|
|
gpstk 15.0 \
|
|
mdplib 15.0 \
|
|
procframe 15.0 \
|
|
rlib 15.0 \
|
|
rxio 15.0 \
|
|
simlib 15.0 \
|
|
toolslib 15.0 \
|
|
vplot 15.0
|
|
|
|
HOMEPAGE= http://www.gpstk.org/
|
|
|
|
# LGPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gpstk/}
|
|
DISTFILES= ${DISTNAME}.src.tar.gz
|
|
|
|
AUTOCONF_VERSION= 2.60
|
|
AUTOMAKE_VERSION= 1.9
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
NO_TEST= Yes
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
|
|
# way faster than -O0, a bit slower than -O2, but doesn't need 800M to compile
|
|
CFLAGS+= -O1 -g
|
|
CXXFLAGS+= -O1 -g
|
|
.else
|
|
# ...but -O1 is still too much for most build machines, so just use it on the
|
|
# fastest ones.
|
|
CFLAGS+= -O0 -g
|
|
CXXFLAGS+= -O0 -g
|
|
.endif
|
|
|
|
BUILD_DEPENDS= ${MODGNU_AUTOCONF_DEPENDS} \
|
|
devel/libtool \
|
|
${MODGNU_AUTOMAKE_DEPENDS}
|
|
MULTI_PACKAGES= -main -devel
|
|
WANTLIB-main= m c stdc++ curses
|
|
WANTLIB-devel=
|
|
RUN_DEPENDS-devel= ${PKGNAME-main}:geo/gpstk
|
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME}
|
|
|
|
pre-configure:
|
|
cd ${WRKDIST} && sh autogen.sh
|
|
|
|
post-install:
|
|
@mv ${PREFIX}/bin/tracker ${PREFIX}/bin/gpstracker
|
|
|
|
.include <bsd.port.mk>
|