# Created by: Yi-Jheng Lin # $FreeBSD$ PORTNAME= ansifilter PORTVERSION= 2.3 CATEGORIES= textproc MASTER_SITES= http://www.andre-simon.de/zip/ MAINTAINER= ports@FreeBSD.org COMMENT= Customizable ANSI Code Converter LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING USES= gmake tar:bzip2 MAKEFILE= makefile PORTDOCS= ChangeLog README PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz OPTIONS_DEFINE= DOCS QT4 QT4_USES= qmake:norecursive QT4_USE= QT4=gui,moc_build QT4_ALL_TARGET= all all-gui QT4_PLIST_FILES= bin/${PORTNAME}-gui QT4_DESKTOP_ENTRIES= "ANSIFilter" "" "" "${PORTNAME}-gui" \ "TextTools;Utility;Qt;" "" .include .if ${PORT_OPTIONS:MQT4} CONFIGURE_WRKSRC= ${WRKSRC}/src/qt-gui QMAKE_SOURCE_PATH= ${CONFIGURE_WRKSRC}/${PORTNAME}-gui.pro .endif post-patch: @${REINPLACE_CMD} -e \ '/QMAKE/s|^|#|' ${WRKSRC}/${MAKEFILE} @${REINPLACE_CMD} -e \ 's|^CC=|CC?=| ; \ s|^CFLAGS=|CXXFLAGS+=| ; \ s|-O2|| ; \ s|$$(CC)|$$(CXX)| ; \ s|$$(CFLAGS)|$$(CXXFLAGS)|' ${WRKSRC}/src/${MAKEFILE} pre-build: @${RM} ${WRKSRC}/src/qt-gui/moc_*.cpp do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} \ ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1.gz \ ${STAGEDIR}${MANPREFIX}/man/man1 do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} \ ${STAGEDIR}${DOCSDIR}) do-install-QT4-on: ${INSTALL_PROGRAM} ${WRKSRC}/src/qt-gui/${PORTNAME}-gui \ ${STAGEDIR}${PREFIX}/bin .include