# New ports collection makefile for: liblqr-1 # Date created: 30 Jan 2008 # Whom: Dmitry Marakasov # # $FreeBSD$ # PORTNAME= liblqr-1 DISTVERSION= 0.4.1 PORTREVISION= 2 CATEGORIES= graphics MASTER_SITES= http://liblqr.wdfiles.com/local--files/en:download-page/ \ http://mirror.amdmi3.ru/distfiles/ MAINTAINER= amdmi3@FreeBSD.org COMMENT= An easy to use C/C++ seam carving library WITH_FBSD10_FIX= yes GNU_CONFIGURE= yes USE_BZIP2= yes USE_GMAKE= yes USE_GNOME= glib20 pkgconfig USE_GETTEXT= yes MAKE_JOBS_SAFE= yes USE_LDCONFIG= yes # Use GNU89 inline semantics USE_CSTD= gnu89 .if !defined(NOPORTEXAMPLES) PORTEXAMPLES= * SUB_FILES= pkg-message SUB_LIST= PORTSDIR=${PORTSDIR} .endif OPTIONS= HTMLDOCS "Build and install HTML documentation" off .include .if defined(WITH_HTMLDOCS) && !defined(NOPORTDOCS) BUILD_DEPENDS+= ${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt \ ${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl \ ${LOCALBASE}/share/xml/docbook/4.5/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml-450 PORTDOCS= * .endif post-patch: .if ${OSVERSION} < 700042 @${REINPLACE_CMD} -e 's|FVISIBILITY_FLAG=".*"|FVISIBILITY_FLAG=""|' ${WRKSRC}/configure .endif @${REINPLACE_CMD} -e '/^lqr_pkgconfigdir/ s|$$(libdir)|$${exec_prefix}/libdata|' \ ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e 's|/usr.*chunk\.xsl|${LOCALBASE}/share/xsl/docbook/html/chunk.xsl|' \ ${WRKSRC}/docs/lqr_style.xsl @${REINPLACE_CMD} -e 's|/usr.*docbookx.dtd|${LOCALBASE}/share/xml/docbook/4.5/docbookx.dtd|' \ ${WRKSRC}/docs/liblqr_manual.docbook post-build: .if defined(WITH_HTMLDOCS) && !defined(NOPORTDOCS) cd ${WRKSRC}/docs && ${SETENV} ${MAKE_ENV} ${MAKE} html .endif post-install: .if defined(WITH_HTMLDOCS) && !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/html/* ${DOCSDIR} .endif .if !defined(NOPORTEXAMPLES) ${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR} .if !exists(${LOCALBASE}/lib/libpngwriter.a) @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD} .endif .endif .include