aboutsummaryrefslogtreecommitdiffstats
path: root/www/mozilla-embedded-vendor/Makefile
blob: 3d8ee01f08eb1301d08cb9bebafdb5a9d62ed9d1 (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
# 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}/${MAKEFILE}
PORTREVISION=   ${MAKE} -V PORTREVISION -f ${MAINDIR}/${MAKEFILE}
PORTEPOCH=  ${MAKE} -V PORTEPOCH -f ${MAINDIR}/${MAKEFILE}
CATEGORIES= www
DISTFILES=

MAINTAINER= sobomax@FreeBSD.org

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

USE_X_PREFIX=   yes

MAINDIR=    ${.CURDIR}/../mozilla
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

do-install:
    ${MKDIR} ${PREFIX}/lib/mozilla-embedded
    ${CHMOD} 755 ${PREFIX}/lib/mozilla-embedded
    cd ${WRKSRC}/dist/Embed && ${TAR} -chf - * | \
        ${TAR} -xf - -C ${PREFIX}/lib/mozilla-embedded

.include <bsd.port.mk>