freebsd-ports/graphics/liblqr-1/Makefile
Dmitry Marakasov d43121ae1a - Fix build in the case of path= environement variable is set
PR:		172747
Submitted by:	João Rocha Braga Filho <goffredo@gmail.com>
Feature safe:	yes
2012-10-17 17:27:46 +00:00

75 lines
1.9 KiB
Makefile

# New ports collection makefile for: liblqr-1
# Date created: 30 Jan 2008
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#
PORTNAME= liblqr-1
DISTVERSION= 0.4.1
PORTREVISION= 3
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
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 <bsd.port.pre.mk>
.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:
@${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 <bsd.port.post.mk>