aboutsummaryrefslogtreecommitdiffstats
path: root/comms/unixcw/Makefile
blob: 9c2b7a0673e80cfb96acc2d0edc8f3f6aac8c54b (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
# 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:262
USE_LDCONFIG=   yes
USE_GMAKE=  yes

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.mk>