aboutsummaryrefslogtreecommitdiff
path: root/www/mozilla-embedded-devel/Makefile
blob: 5739052e4846e1f2dbe3ee292d7607b94cb8a485 (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
54
55
56
57
58
59
60
# New ports collection makefile for:	mozilla-embedded
# Date created:				16 August 2000
# Whom:					Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	mozilla-embedded
PORTVERSION=	${MAKE} -V PORTVERSION -f ${MAINDIR}/${MKFILE}
PORTREVISION=	${MAKE} -V PORTREVISION -f ${MAINDIR}/${MKFILE}
PORTEPOCH=	${MAKE} -V PORTEPOCH -f ${MAINDIR}/${MKFILE}
CATEGORIES=	www
DISTFILES=

MAINTAINER=	ports@FreeBSD.org
COMMENT=	The embeddable component of mozilla communicator web-surfboard

BUILD_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/www/mozilla-devel:build \
		zip:${PORTSDIR}/archivers/zip \
		unzip:${PORTSDIR}/archivers/unzip
LIB_DEPENDS=	${MAKE} -V LIB_DEPENDS -f ${MAINDIR}/${MKFILE}
RUN_DEPENDS=	${MAKE} -V RUN_DEPENDS -f ${MAINDIR}/${MKFILE}

USE_X_PREFIX=	yes

LATEST_LINK=	mozilla-embedded-devel
PLIST=		${WRKSRC}/pkg-plist
MAINDIR=	${.CURDIR}/../mozilla-devel
MKFILE!=	/usr/bin/basename ${MAKEFILE}
PORTVERSION!=	${PORTVERSION}
PORTREVISION!=	${PORTREVISION}
PORTEPOCH!=	${PORTEPOCH}
RUN_DEPENDS!=	${RUN_DEPENDS}
LIB_DEPENDS!=	${LIB_DEPENDS}
WRKSRC=		${WRKDIRPREFIX}${MAINDIR}/work/mozilla

do-build:
	@cd ${WRKSRC}/embedding/config && ${SETENV} ${MAKE_ENV} ${GMAKE} \
		${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}
	@(cd ${WRKSRC}/dist/Embed; \
	  ${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ../bin/regxpcom; \
	  ${SETENV} LD_LIBRARY_PATH=. MOZILLA_FIVE_HOME=. ../bin/regchrome)
	@${FIND} ${WRKSRC}/dist/Embed -name "*.so" | ${XARGS} ${STRIP_CMD}

pre-install:
	${RM} -f ${PLIST}
	${TOUCH} -f ${PLIST}
	cd ${WRKSRC}/dist/Embed && ${FIND} -s * -type f -o -type l | \
		${SED} -e 's:^:lib/mozilla-embedded-devel/:' >> ${PLIST} \
		&& ${FIND} -d * -type d | \
		${SED} -e 's:^:@dirrm lib/mozilla-embedded-devel/:' >> ${PLIST}
	${ECHO_CMD} @dirrm lib/mozilla-embedded-devel >> ${PLIST}

do-install:
	${MKDIR} ${PREFIX}/lib/mozilla-embedded-devel
	${CHMOD} 755 ${PREFIX}/lib/mozilla-embedded-devel
	cd ${WRKSRC}/dist/Embed && ${FIND} . | \
		cpio -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/mozilla-embedded-devel

.include <bsd.port.mk>