summaryrefslogblamecommitdiffstats
path: root/textproc/gnome-doc-utils/Makefile
blob: 0c5f448460ca534c9c0e89fbc6677e3e15a3b427 (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$
#

PORTNAME=   gnomedocutils
PORTVERSION=    0.1.2
PORTREVISION=   2
CATEGORIES= textproc gnome
MASTER_SITES=   ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-doc-utils/0.1
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

PREFIX?=    ${X11BASE}

USE_BZIP2=  yes
USE_GMAKE=  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"

DOCBOOK_VERSION=4.1.2

.include <bsd.port.pre.mk>

.if ${X_WINDOW_SYSTEM:L} == xfree86-3
MTREE_FILE= /etc/mtree/BSD.x11.dist
.else
MTREE_FILE= /etc/mtree/BSD.x11-4.dist
.endif

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

.include <bsd.port.post.mk>