mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
d0190bfe05
PR: 22337 Submitted by: Kazu TAKAMUNE <takamune@avrl.mei.co.jp>
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
# 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}
|
|
CATEGORIES= www
|
|
DISTFILES=
|
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
|
|
|
BUILD_DEPENDS= /nonexistent:${PORTSDIR}/www/mozilla:build
|
|
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}
|
|
RUN_DEPENDS!= ${RUN_DEPENDS}
|
|
LIB_DEPENDS!= ${LIB_DEPENDS}
|
|
WRKSRC= ${WRKDIRPREFIX}${MAINDIR}/work/mozilla
|
|
|
|
do-build:
|
|
perl -pi -e 's|\\|/|g' ${WRKSRC}/embedding/config/Makefile
|
|
cd ${WRKSRC}/embedding/config && ${SETENV} ${MAKE_ENV} ${GMAKE} \
|
|
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}
|
|
(cd ${WRKSRC}/dist/bin && \
|
|
${SETENV} LD_LIBRARY_PATH=${WRKSRC}/dist/Embed \
|
|
MOZILLA_FIVE_HOME=${WRKSRC}/dist/Embed ./regxpcom)
|
|
find ${WRKSRC}/dist/Embed -name "*.so" | xargs strip
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/lib/mozilla-embedded
|
|
${CHMOD} 755 ${PREFIX}/lib/mozilla-embedded
|
|
${MKDIR} ${PREFIX}/include/mozilla-embedded
|
|
${CHMOD} 755 ${PREFIX}/include/mozilla-embedded
|
|
cd ${WRKSRC}/dist/Embed && ${TAR} -chf - * | \
|
|
${TAR} -xf - -C ${PREFIX}/lib/mozilla-embedded
|
|
cd ${WRKSRC}/dist/include && ${TAR} -chf - . | \
|
|
${TAR} -xf - -C ${PREFIX}/include/mozilla-embedded
|
|
|
|
.include <bsd.port.mk>
|