mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
43 lines
948 B
Makefile
43 lines
948 B
Makefile
# 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= 1.0
|
|
CATEGORIES= deskutils kde
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= markus@FreeBSD.org
|
|
COMMENT= A Qt/KDE viewer for CHM files
|
|
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_REINPLACE= yes
|
|
CONFIGURE_ENV= LDFLAGS="${PTHREAD_LIBS}"
|
|
|
|
.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}
|
|
.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>
|