aboutsummaryrefslogtreecommitdiffstats
path: root/comms/unixcw/Makefile
blob: 0c0f8cf6e67ec563e0a19909d0015c7259332b54 (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
50
51
52
53
54
55
56
# ports collection makefile for:    unixcw
# Date created:     24 Dec 2007
# Whom:         Diane Bruce <db@db.net>
#
# $FreeBSD$
#

PORTNAME=   unixcw
PORTVERSION=    2.3
CATEGORIES= comms hamradio
MASTER_SITES=   http://www.ibiblio.org/pub/linux/apps/ham/morse/ \
        ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= db
EXTRACT_SUFX=   .tgz

MAINTAINER= db@FreeBSD.org
COMMENT=    Libs for cw on unix

GNU_CONFIGURE=  yes
CONFIGURE_ARGS+=    --includedir="${LOCALBASE}/include" \
            --libdir="${LOCALBASE}/lib"
MAN1=       cw.1 cwgen.1 cwcp.1
MAN3=       cwlib.3
.if defined(WITH_XCWCP)
MAN1+=      xcwcp.1
USE_QT_VER= 3
CONFIGURE_ARGS+=    QTLIB=qt-mt
PLIST_SUB+= XCWCP=""
.else
PLIST_SUB+= XCWCP="@comment "
.endif
MAN7=       cw.7 CW.7
MANCOMPRESSED=  yes
USE_AUTOTOOLS=  autoconf:261
USE_LDCONFIG=   yes
USE_GMAKE=  yes

.include <bsd.port.pre.mk>
.if ${OSVERSION} < 600000
BUILD_DEPENDS+= gawk:${PORTSDIR}/lang/gawk
.endif

pre-extract:
.if !defined(WITH_XCWCP)
    @${ECHO_CMD}
    @${ECHO_CMD} "****** To build xcwcp, interrupt the build  ******"
    @${ECHO_CMD} "****** now, set WITH_XCWCP and start again. ******"
    @${ECHO_CMD}
    @sleep 3
.endif

post-patch:
    @${REINPLACE_CMD} -e "s|%%LIBDATA%%|${PREFIX}/libdata|" \
    ${WRKSRC}/src/cwlib/Makefile

.include <bsd.port.post.mk>