# New ports collection makefile for: mozilla-embedded # Date created: 16 August 2000 # Whom: Maxim Sobolev # # $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