# Created by: Markus Brueffer # $FreeBSD$ PORTNAME= tpb PORTVERSION= 0.6.4 PORTREVISION= 12 CATEGORIES= deskutils MASTER_SITES= SAVANNAH MAINTAINER= ports@FreeBSD.org COMMENT= On-Screen-Display for hotkeys of IBM ThinkPads LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libxosd.so:misc/xosd ONLY_FOR_ARCHS= i386 amd64 USES= gmake iconv localbase pkgconfig GNU_CONFIGURE= yes CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG} USE_XORG= x11 sm ice xext OPTIONS_DEFINE= EXAMPLES NLS OPTIONS_SUB= yes NLS_USES= gettext NLS_CONFIGURE_OFF= --disable-nls post-patch: .for i in man/tpb.1 src/cfg.h @${REINPLACE_CMD} -e \ 's|%%PREFIX%%|${PREFIX}|g ; \ s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/${i} .endfor @${REINPLACE_CMD} -e \ 's|void test()||' ${WRKSRC}/configure post-install: ${INSTALL_DATA} ${WRKSRC}/doc/tpbrc ${STAGEDIR}${PREFIX}/etc/tpbrc.default post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/doc/callback_example.sh ${STAGEDIR}${EXAMPLESDIR} .include