summaryrefslogtreecommitdiff
path: root/comms/xcwcp/Makefile
blob: 8aa44db1a6bf7f54df51ca2c2ff04f777d811bda (plain)
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

PORTNAME=	xcwcp
PORTREVISION=	2

COMMENT=	X11 CW Tutor using unixcw

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libcw.so:comms/unixcw

MASTERDIR=	${.CURDIR}/../unixcw

USES=		compiler:c++11-lang gettext qt:5
USE_QT=		gui widgets buildtools_build qmake_build
USE_CXXSTD=	c++11
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-xcwcp
XCWCP=		yes
PLIST_FILES=	bin/xcwcp \
		man/man1/xcwcp.1.gz
LDFLAGS+=	-L${LOCALBASE}/lib -lintl

PLIST=		${.CURDIR}/pkg-plist

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/xcwcp/xcwcp ${STAGEDIR}${PREFIX}/bin/
	${INSTALL_DATA} ${WRKSRC}/src/xcwcp/xcwcp.1 ${STAGEDIR}${MANPREFIX}/man/man1

.include "${MASTERDIR}/Makefile"