aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/xmhtml/Makefile
blob: d1c52f6106a5a97e2ede1b18c93d1936032717ed (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:    xmhtml
# Date created:     18 Feb 1999
# Whom:         Peter Hawkins <thepish@freebsd.org>
#
# $FreeBSD$
#

PORTNAME=   XmHTML
PORTVERSION=    1.1.7
PORTREVISION=   4
CATEGORIES= x11-toolkits www
MASTER_SITES=   ${MASTER_SITE_NETBSD}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A Motif widget set for displaying HTML 3.2 documents

LIB_DEPENDS=    png.5:${PORTSDIR}/graphics/png \
        jpeg.9:${PORTSDIR}/graphics/jpeg

USE_AUTOTOOLS=  libtool:15:env
USE_MOTIF=  yes
USE_X_PREFIX=   yes
USE_GMAKE=  yes
MAKE_ENV=   CC="${LIBTOOL} ${CC}"
USE_LDCONFIG=   yes

EXMP_DIR=   ${PREFIX}/share/examples/${PORTNAME}
DOCS_DIR=   ${PREFIX}/share/doc/${PORTNAME}

do-configure:
    @${DO_NADA}

post-build:
    ${RM} -rf ${WRKSRC}/examples/.libs ${WRKSRC}/examples/*.lo ${WRKSRC}/examples/*.o
    ${RM} -rf ${WRKSRC}/book/.libs ${WRKSRC}/book/*.lo ${WRKSRC}/book/*.o
    ${RM} -rf ${WRKSRC}/contrib/.libs ${WRKSRC}/contrib/*.lo ${WRKSRC}/contrib/*.o

do-install:
    ${LIBTOOL} --mode=install ${INSTALL_DATA} \
        ${WRKSRC}/lib/libXmHTML.la ${PREFIX}/lib
    @${MKDIR} ${PREFIX}/include/XmHTML
    ${INSTALL_DATA} ${WRKSRC}/include/XmHTML/*.h ${PREFIX}/include/XmHTML
.if !defined(NOPORTDOCS)
    @${ECHO_MSG} "===>   Installing examples into ${EXMP_DIR}"
    @${MKDIR} ${EXMP_DIR}
    ${TAR} -C ${WRKSRC} -cpf- book contrib examples | \
        ${TAR} -C ${EXMP_DIR} -xpf-
    @${ECHO_MSG} "===>   Installing docs into ${DOCS_DIR}"
    @${MKDIR} ${DOCS_DIR}
    ${TAR} -C ${WRKSRC}/html -cpf- . | ${TAR} -C ${DOCS_DIR} -xpf-
.endif

.include <bsd.port.mk>