aboutsummaryrefslogtreecommitdiffstats
path: root/comms/ktrack/Makefile
blob: a68751877906fcf3804d7cdd1842f11b503a25dd (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
49
# New ports collection makefile for:    ktrack
# Date created:     22 February 2006
# Whom:         Diane Bruce <db@db.net>
#
# $FreeBSD$

PORTNAME=   ktrack
PORTVERSION=    0.3.0r1
PORTREVISION=   1
CATEGORIES= comms hamradio
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ktrack
DISTNAME=   ${PORTNAME}-0.3.0-rc1

MAINTAINER= db@FreeBSD.org
COMMENT=    Amateur Radio satellite tracking and prediction

RUN_DEPENDS=    xplanet:${PORTSDIR}/astro/xplanet:install
LIB_DEPENDS=    hamlib:${PORTSDIR}/comms/hamlib \
        jpeg:${PORTSDIR}/graphics/jpeg

WRKSRC=     ${WRKDIR}/${DISTNAME}

USE_BZIP2=  yes
USE_KDEBASE_VER=3
INSTALLS_ICONS= yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_AUTOTOOLS=  libtool:15
USE_GETTEXT=    yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
USE_GCC=    3.3+
.endif

post-patch:
    @${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/doc/HTML/en/ktrack
    ${MKDIR} ${PREFIX}/share/doc/HTML/en/ktrack/common
    ${INSTALL_MAN} ${WRKSRC}/doc/en/index.cache.bz2 ${PREFIX}/share/doc/HTML/en/ktrack/
    ${INSTALL_MAN} ${WRKSRC}/doc/en/index.docbook ${PREFIX}/share/doc/HTML/en/ktrack/
.endif

.include <bsd.port.post.mk>