aboutsummaryrefslogtreecommitdiffstats
path: root/x11/XFree86-4-manuals/Makefile
blob: 4959e739a31ef27f917a6e0828a8daa97b1ef87d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# New ports collection makefile for:    XFree86-manuals
# Date created:     10 Oct 1999
# Whom:         taguchi@tohoku.iij.ad.jp
#
# $FreeBSD$
#

PORTNAME=   manuals
PORTVERSION=    4.4.0
PORTREVISION=   1
CATEGORIES= x11
MASTER_SITES=   ${MASTER_SITE_XFREE}
MASTER_SITE_SUBDIR= ${PORTVERSION}
PKGNAMEPREFIX=  XFree86-
DISTFILES=  XFree86-${PORTVERSION}-src-1.tgz

MAINTAINER= x11@FreeBSD.org
COMMENT=    XFree86-4 man pages

CONFLICTS=  xorg-manpages-*

USE_IMAKE=      YES
EXTRACT_TARGET=     xc/doc/man \
            xc/extras/ogl-sample/main/doc/man
EXTRACT_AFTER_ARGS= | ${TAR} -xf - ${EXTRACT_TARGET}
PROJECTROOT=        -DProjectRoot=${PREFIX}
DIST_SUBDIR=        xc
WRKSRC=         ${WRKDIR}/xc/doc/man
CFGDIR=         ${WRKDIR}/xc/config
INSTALL_TARGET=     install.man

pre-configure:
    @${MKDIR} ${CFGDIR}
    @${CP} ${PREFIX}/lib/X11/config/* ${CFGDIR}
    @${ECHO} "#define BuildHtmlManPages NO" >>${CFGDIR}/xf86site.def

do-configure:
    (cd ${WRKSRC} && \
     imake -DUseInstalled ${PROJECTROOT} -I${CFGDIR} \
        -DTOPDIR=../.. -DCURDIR=.; \
     ${MAKE} Makefiles CONFIGDIR=${CFGDIR} ; \
     ${MAKE} includes ; \
     ${MAKE} depend)

.include <bsd.port.pre.mk>

.if ${X_WINDOW_SYSTEM:L} != xfree86-4
IGNORE= is part of XFree86-4
.endif

.include "${FILESDIR}/manpages"

.include <bsd.port.post.mk>