summaryrefslogblamecommitdiffstats
path: root/textproc/gnome-doc-utils/Makefile
blob: 0c161b4de9ba42f658af32d53ab844ca8805887e (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                                           
                                                                                        


                             
                     
                 

                                    
                                                   












                                                                                  
                   




















                                                                               
# New ports collection makefile for:    gnome-doc-utils
# Date created:             11 November 2004
# Whom:                 Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD$
#   $MCom: ports/textproc/gnomedocutils/Makefile,v 1.31 2006/03/11 21:01:47 marcus Exp $
#

PORTNAME=   gnomedocutils
PORTVERSION=    0.6.0
PORTREVISION=   1
CATEGORIES= textproc gnome
MASTER_SITES=   ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-doc-utils/0.6
DISTNAME=   gnome-doc-utils-${PORTVERSION}

MAINTAINER= gnome@FreeBSD.org
COMMENT=    GNOME doc utils

BUILD_DEPENDS=  scrollkeeper-config:${PORTSDIR}/textproc/scrollkeeper
RUN_DEPENDS=    scrollkeeper-config:${PORTSDIR}/textproc/scrollkeeper \
        ${PYTHON_SITELIBDIR}/libxml2mod.so:${PORTSDIR}/textproc/py-libxml2

PREFIX?=    ${X11BASE}

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_GETTEXT=    yes
USE_GNOME=  gnomehier gnometarget gnomehack libxslt
USE_PYTHON= yes
INSTALLS_OMF=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-omf-dir=${PREFIX}/share/gnome/omf
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

MAN1=       xml2po.1

DOCBOOK_VERSION=4.1.2

post-patch:
    @${REINPLACE_CMD} -e 's|4\.4|${DOCBOOK_VERSION}|g' \
        ${WRKSRC}/doc/xslt/C/gnome-doc-xslt.xml \
        ${WRKSRC}/doc/gnome-doc-make/C/gnome-doc-make.xml

post-install:
    @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -l ${PREFIX}/share/xml2po

.include <bsd.port.mk>