aboutsummaryrefslogtreecommitdiff
path: root/devel/piklab/Makefile
blob: 2e7f9cff7020dce56e6874e4536cd46c6bd4fc8b (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
59
# Created by: Michael Nottebrock <lofi@kiste>
# $FreeBSD$

PORTNAME=	piklab
PORTVERSION=	0.16.2
CATEGORIES=	devel
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	KDE IDE for microcontroller development

LICENSE=	GPLv2 # (or later)

OPTIONS_DEFINE=	KDE4
OPTIONS_DEFAULT=KDE4

USE_BZIP2=	yes
USE_DOS2UNIX=	Piklab.cmake
USE_QT4=	corelib gui qt3support qtestlib xml \
		moc_build qmake_build rcc_build uic_build
USE_NCURSES=	yes
USE_READLINE=	yes
USE_GETTEXT=	yes
USES=		cmake
MAKE_JOBS_SAFE=	yes

MAN1=		piklab-hex.1 piklab-prog.1

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MKDE4}
USE_KDE4=	automoc4 kdehier kdelibs kdeprefix sharedmime
INSTALLS_ICONS=	yes
MAN1+=		piklab.1x
PLIST_SUB+=	KDE4=""
.else
CMAKE_ARGS+=	-DQT_ONLY:BOOL=ON \
		-DLOCALE_INSTALL_DIR:STRING="${PREFIX}/share/locale"
PLIST_SUB+=	KDE4="@comment "
.endif

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN=		Does not compile on sparc64
.endif

post-patch:
	@${REINPLACE_CMD} -e \
		'/man/s|^|#| ; \
		 /install/s|^|#|' ${WRKSRC}/CMakeLists.txt

post-install:
	${INSTALL_MAN} ${WRKSRC}/man/piklab-*.1 ${MANPREFIX}/man/man1
.if ${PORT_OPTIONS:MKDE4}
	${INSTALL_MAN} ${WRKSRC}/man/piklab.1x ${MANPREFIX}/man/man1
.endif

.include <bsd.port.post.mk>