aboutsummaryrefslogtreecommitdiffstats
path: root/astro/roadnav/Makefile
blob: 27d73d3ebe49fd3fc7f5a2301de409a677a1f9fc (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
# Created by: stevef
# $FreeBSD$

PORTNAME=   roadnav
PORTVERSION=    0.19
PORTREVISION=   4
CATEGORIES= astro geography
MASTER_SITES=   SF/${PORTNAME}/Roadnav/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A 3D GPS Mapping program

BUILD_DEPENDS=  ${LOCALBASE}/lib/libroadnav.a:${PORTSDIR}/astro/libroadnav

USE_WX=     2.6+
WX_COMPS=   wx contrib
USE_GMAKE=  yes

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-wx-prefix=${LOCALBASE} --with-wx-config=${WX_CONFIG}
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

PORTDOCS=   *

pre-install:
    ${MKDIR} ${PREFIX}/share/applications

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \
        ${WRKSRC}/Makefile.in ${WRKSRC}/src/Makefile.in
.if defined(NOPORTDOCS)
    @${REINPLACE_CMD} -e '/^install-data-am:/ s|install-roadnavdocDATA||' \
        ${WRKSRC}/Makefile.in
.endif

.include <bsd.port.mk>