summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/xmhtml/Makefile
blob: 95aa4d35750799ec0d04927a4460488c714ad069 (plain)
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
# Created by: Peter Hawkins <thepish@FreeBSD.org>
# $FreeBSD$

PORTNAME=	XmHTML
PORTVERSION=	1.1.9
PORTREVISION=	3
CATEGORIES=	x11-toolkits www
MASTER_SITES=	SF/${PORTNAME:tl}

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

LICENSE=	LGPL20+
LICENSE_FILE=	${WRKSRC}/COPYING.LIB

LIB_DEPENDS=	libpng.so:${PORTSDIR}/graphics/png

USES=		gmake jpeg libtool:build motif pkgconfig tar:tgz
USE_XORG=	xft xmu xpm xt
USE_LDCONFIG=	yes

LIBTOOL=	libtool
MAKE_ENV=	LIBTOOL=${LIBTOOL}

OPTIONS_DEFINE=	DOCS EXAMPLES

do-install:
	(cd ${WRKSRC}/lib && ${LIBTOOL} --mode=install ${INSTALL_DATA} \
		libXmHTML.la ${STAGEDIR}${PREFIX}/lib)
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libXmHTML.so
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/XmHTML
	${INSTALL_DATA} ${WRKSRC}/include/XmHTML/*.h \
		${STAGEDIR}${PREFIX}/include/XmHTML

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	@(cd ${WRKSRC}/html && ${FIND} . ! -name "*Makefile*" | \
		${CPIO} --quiet -dump -R ${SHAREOWN}:${SHAREGRP} \
		${STAGEDIR}${DOCSDIR})

do-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	@cd ${WRKSRC} && ${COPYTREE_SHARE} "book contrib examples" \
		${STAGEDIR}${EXAMPLESDIR} "! -type d ! -name Makefile"

.include <bsd.port.mk>
OpenPOWER on IntegriCloud