summaryrefslogtreecommitdiff
path: root/comms/kpsk/Makefile
blob: 4feb5a8bdc2cdb6197b3200bfbe9461ac3482554 (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
# New ports collection makefile for:	kpsk
# Date created:		2002-06-12
# Whom:			Patrick Gardella <patrick@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=	kpsk
PORTVERSION=	1.0
PORTREVISION=	6
CATEGORIES=	comms kde hamradio
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	kpsk

MAINTAINER=	hamradio@FreeBSD.org
COMMENT=	A PSK31 digital radio communications application for the KDE

LIB_DEPENDS=	db4:${PORTSDIR}/databases/db4

USE_BZIP2=	yes
USE_GMAKE=	yes
USE_KDELIBS_VER=3
USE_AUTOTOOLS=	libtool:15
CONFIGURE_ENV=	CPPFLAGS="-D_POSIX_C_SOURCE -I${LOCALBASE}/include" \
		USER_LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS=	--enable-debug=full

post-patch:
	@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g; \
		s,-pedantic,,g" ${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's/-ldb-4.0/-ldb4/g' ${WRKSRC}/configure

post-install:
.if !defined(NOPORTDOCS)
	${INSTALL_MAN} ${WRKSRC}/doc/en/HTML/handbook.html ${PREFIX}/share/doc/HTML/en/kpsk/
.endif

.include <bsd.port.mk>