aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/kchmviewer-kde4/Makefile
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2009-01-19 05:48:14 +0800
committermakc <makc@FreeBSD.org>2009-01-19 05:48:14 +0800
commitb7553ea5512e35da5d6341e34b4c5492b9e18f14 (patch)
tree1b2f4b17da2c47fbf539b0ede2237411e67e7f97 /deskutils/kchmviewer-kde4/Makefile
parent68c960c119161465559b77df950a804ae2c62fe5 (diff)
downloadfreebsd-ports-gnome-b7553ea5512e35da5d6341e34b4c5492b9e18f14.tar.gz
freebsd-ports-gnome-b7553ea5512e35da5d6341e34b4c5492b9e18f14.tar.zst
freebsd-ports-gnome-b7553ea5512e35da5d6341e34b4c5492b9e18f14.zip
Update deskutils/kchmviewer-kde4 to 4.0
Approved by: miwi (implicit)
Diffstat (limited to 'deskutils/kchmviewer-kde4/Makefile')
-rw-r--r--deskutils/kchmviewer-kde4/Makefile64
1 files changed, 10 insertions, 54 deletions
diff --git a/deskutils/kchmviewer-kde4/Makefile b/deskutils/kchmviewer-kde4/Makefile
index 908133cd1af4..e5c8cfffa508 100644
--- a/deskutils/kchmviewer-kde4/Makefile
+++ b/deskutils/kchmviewer-kde4/Makefile
@@ -6,65 +6,21 @@
#
PORTNAME= kchmviewer
-PORTVERSION= 3.1
-PORTREVISION= 1
+PORTVERSION= 4.0
CATEGORIES= deskutils kde
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= ${PORTNAME}
-DISTNAME= ${PORTNAME}-${PORTVERSION}-2
+MASTER_SITES= SF
-MAINTAINER= markus@FreeBSD.org
+MAINTAINER= makc@FreeBSD.org
COMMENT= A Qt/KDE viewer for CHM files
-LIB_DEPENDS+= chm:${PORTSDIR}/misc/chmlib
+LIB_DEPENDS= chm.0:${PORTSDIR}/misc/chmlib
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-USE_GMAKE= yes
-USE_AUTOTOOLS= libtool:15
-DO_NOT_COMPILE+=chmlib
-CONFIGURE_ENV+= LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib" \
- CPPFLAGS="-I${LOCALBASE}/include" \
- DO_NOT_COMPILE="${DO_NOT_COMPILE}"
+LATEST_LINK= ${PORTNAME}-kde4
-.if !defined(WITHOUT_KDE)
-USE_KDELIBS_VER=3
-PLIST_SUB+= KDE=""
-PLIST_SUB+= QT="@comment "
-CONFIGURE_ARGS+=--with-kde
-.else
-USE_QT_VER= 3
-USE_PERL5_BUILD=yes
-RUN_DEPENDS+= ${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme
-PLIST_SUB+= KDE="@comment "
-PLIST_SUB+= QT=""
-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}
-
-post-configure:
-.if defined(WITHOUT_KDE)
- @${REINPLACE_CMD} -e 's|src po|src|g' ${WRKSRC}/Makefile
- @${REINPLACE_CMD} \
- -e 's|kde_icondir =.*|kde_icondir = ${PREFIX}/share/icons|g' \
- ${WRKSRC}/src/pics/Makefile
- @${REINPLACE_CMD} -e 's|crystalsvg|hicolor|g' \
- ${WRKSRC}/src/pics/Makefile
-.endif
-
-pre-install:
-.if defined(WITHOUT_KDE)
- @${REINPLACE_CMD} -e 's|Categories=.*|Categories=Utility;|g' \
- ${WRKSRC}/lib/kio-msits/kchmviewer.desktop
- @${INSTALL_DATA} ${WRKSRC}/lib/kio-msits/kchmviewer.desktop \
- ${PREFIX}/share/applications
-.endif
+USE_CMAKE= yes
+USE_KDE4= kdeprefix kdelibs automoc4
+USE_QT_VER= 4
+QT_COMPONENTS= dbus gui network svg xml designer_build \
+ qmake_build moc_build rcc_build uic_build
.include <bsd.port.mk>