pkgsrc/misc/kchmviewer/options.mk
2012-03-29 08:44:41 +00:00

27 lines
700 B
Makefile

# $NetBSD: options.mk,v 1.7 2012/03/29 08:44:41 markd Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.kchmviewer
PKG_SUPPORTED_OPTIONS= kde4
.include "../../mk/bsd.options.mk"
PLIST_VARS+= kde4
.if !empty(PKG_OPTIONS:Mkde4)
USE_CMAKE= yes
USE_TOOLS+= msgfmt
BUILD_DEPENDS+= automoc4-[0-9]*:../../devel/automoc4
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../meta-pkgs/kde4/kde4.mk"
.include "../../x11/kdelibs4/buildlink3.mk"
PLIST.kde4= yes
.else
INSTALLATION_DIRS= bin
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QTDIR}/bin/qmake
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/kchmviewer ${DESTDIR}${PREFIX}/bin
.endif