aboutsummaryrefslogtreecommitdiffstats
path: root/comms/flwrap/Makefile
blob: cb23bb35e5ae69463ed5ed7f77e2a9e0738ac1de (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
# New ports collection makefile for:    flwrap
# Date created:             January 23 2011
# Whom:                 Diane Bruce <db@db.net>
#
# $FreeBSD$
#

PORTNAME=   flwrap
PORTVERSION=    1.3.4
CATEGORIES= comms hamradio
MASTER_SITES=   http://www.w1hkj.com/downloads/flwrap/ \
        ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= db

MAINTAINER= db@FreeBSD.org
COMMENT=    Flwrap is a companion utility for fldigi

LIB_DEPENDS=    fltk:${PORTSDIR}/x11-toolkits/fltk

USE_GMAKE=  yes
GNU_CONFIGURE=  yes
USE_DOS2UNIX=   yes
CONFIGURE_ENV=  FLTK_CONFIG="${LOCALBASE}/bin/fltk-config"

post-configure:
    @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' \
        -e 's|^CPPFLAGS|#CPPFLAGS|' \
        ${WRKSRC}/src/Makefile

post-install:
.if !defined(NOPORTDOCS)
    @${ECHO} ""
    @${MKDIR} ${DOCSDIR}
    @@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
    @${ECHO} "flwrap docs installed in ${DOCSDIR}"
    @${ECHO} ""
.endif

.include <bsd.port.mk>