blob: 167434a1f19fbc7fbaa4f1485cda7a2fa9a8ed15 (
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
|
# New ports collection makefile for: kchmviewer
# Date created: Mon Jul 25 10:42:16 CEST 2005
# Whom: Markus Brueffer <markus@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= kchmviewer
PORTVERSION= 2.7
CATEGORIES= deskutils kde
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= markus@FreeBSD.org
COMMENT= A Qt/KDE viewer for CHM files
LIB_DEPENDS+= chm:${PORTSDIR}/misc/chmlib
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
DO_NOT_COMPILE+=chmlib
CONFIGURE_ENV+= LDFLAGS="${PTHREAD_LIBS}" DO_NOT_COMPILE="${DO_NOT_COMPILE}"
.if !defined(WITHOUT_KDE)
USE_KDELIBS_VER=3
PLIST_SUB+= KDE=""
CONFIGURE_ARGS+=--with-kde
.else
USE_QT_VER= 3
PLIST_SUB+= KDE="@comment "
CONFIGURE_TARGET=
CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
DO_NOT_COMPILE+=kio-msits
.endif
pre-everything::
.if !defined(WITHOUT_KDE)
@${ECHO_MSG} "You can disable KDE support by defining WITHOUT_KDE."
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-O2||g;s|-lpthread|${PTHREAD_LIBS}|g' \
${WRKSRC}/${CONFIGURE_SCRIPT}
.include <bsd.port.mk>
|