aboutsummaryrefslogtreecommitdiffstats
path: root/comms/gmfsk/Makefile
blob: 8714dbc3609532879fde5875b20c98e05eb48972 (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
57
58
# New ports collection makefile for:   gmfsk
# Date created:                29th May 2003
# Whom:                        Carl Makin <carl@stagecraft.cx>
#
# $FreeBSD$
#

PORTNAME=   gmfsk
PORTVERSION=    0.6
PORTREVISION=   10
CATEGORIES= comms audio hamradio
MASTER_SITES=   http://gmfsk.connect.fi/ \
        ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= db

MAINTAINER= carl@stagecraft.cx
COMMENT=    The Gnome MFSK terminal program

LIB_DEPENDS=    fftw.2:${PORTSDIR}/math/fftw

GNU_CONFIGURE=  yes
# This is pure evil but it looks like autoconf 2.53 has a bug in linking the
# preprocessor include tests.  The following line is a work around.
CONFIGURE_ENV=  LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+=  -I${LOCALBASE}/include
USE_GMAKE=  yes
USE_GNOME=  libgnomeui gnomehack gnomeprefix
INSTALLS_OMF=   yes

GCONF_SCHEMAS=  gmfsk.schemas

OPTIONS_DEFINE= HAMLIB
HAMLIB_DESC=    Enable HAMLIB Support
OPTIONS_DEFAULT=    HAMLIB

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MHAMLIB}
LIB_DEPENDS+=   hamlib:${PORTSDIR}/comms/hamlib
CONFIGURE_ARGS+=    --enable-hamlib
CONFIGURE_ENV+= PKG_CONFIG_PATH=${LOCALBASE}/lib/pkgconfig
.else
CONFIGURE_ARGS+=    --disable-hamlib
.endif

.if ( ${OSVERSION} >= 802502 && ${OSVERSION} < 900000 ) || ${OSVERSION} >= 900027
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-misc_misc.c
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-misc_misc.h
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|[$$][(]localstatedir[)]/lib/scrollkeeper|${SCROLLKEEPER_DIR}|g' \
        ${WRKSRC}/omf.make ${WRKSRC}/help/gmfsk/C/Makefile.in

post-install:
    @${CAT} pkg-message

.include <bsd.port.post.mk>