2001-02-01 12:43:48 +01:00
|
|
|
# New ports collection makefile for: mozilla-headers
|
|
|
|
# Date created: 1 February 2001
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mozilla-headers
|
2002-08-29 19:29:55 +02:00
|
|
|
PORTVERSION= ${MAKE} -V PORTVERSION -f ${MAINDIR}/${MKFILE}
|
|
|
|
PORTREVISION= ${MAKE} -V PORTREVISION -f ${MAINDIR}/${MKFILE}
|
|
|
|
PORTEPOCH= ${MAKE} -V PORTEPOCH -f ${MAINDIR}/${MKFILE}
|
2001-02-01 12:43:48 +01:00
|
|
|
CATEGORIES= www
|
|
|
|
DISTFILES=
|
|
|
|
|
2003-07-29 11:12:37 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Header files for mozilla communicator web-surfboard
|
2001-02-01 12:43:48 +01:00
|
|
|
|
2002-09-07 20:54:38 +02:00
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/www/mozilla-devel:configure
|
2001-02-01 12:43:48 +01:00
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
|
2002-10-22 05:42:24 +02:00
|
|
|
LATEST_LINK= mozilla-headers-devel
|
|
|
|
PLIST= ${WRKSRC}/pkg-plist
|
2002-09-07 20:54:38 +02:00
|
|
|
MAINDIR= ${.CURDIR}/../mozilla-devel
|
2002-08-29 19:29:55 +02:00
|
|
|
MKFILE!= /usr/bin/basename ${MAKEFILE}
|
2001-02-01 12:43:48 +01:00
|
|
|
PORTVERSION!= ${PORTVERSION}
|
|
|
|
PORTREVISION!= ${PORTREVISION}
|
|
|
|
PORTEPOCH!= ${PORTEPOCH}
|
|
|
|
WRKSRC= ${WRKDIRPREFIX}${MAINDIR}/work/mozilla
|
|
|
|
USE_GMAKE= yes
|
|
|
|
ALL_TARGET= export
|
|
|
|
|
2002-05-30 12:05:23 +02:00
|
|
|
.if defined(INCOWN) || defined(INCGRP)
|
|
|
|
CPIOOWN= -R ${INCOWN}:${INCGRP}
|
|
|
|
.endif
|
|
|
|
|
2002-10-22 05:42:24 +02:00
|
|
|
pre-install:
|
2002-11-18 03:30:39 +01:00
|
|
|
${RM} -f ${PLIST}
|
2002-10-22 05:42:24 +02:00
|
|
|
${TOUCH} -f ${PLIST}
|
|
|
|
cd ${WRKSRC}/dist/include && ${FIND} -s * -type f -o -type l | \
|
2002-10-26 06:22:44 +02:00
|
|
|
${SED} -e 's:^:include/mozilla-devel/:' >> ${PLIST} \
|
2002-11-14 19:29:10 +01:00
|
|
|
&& ${FIND} -d * -type d | \
|
2002-10-22 05:42:24 +02:00
|
|
|
${SED} -e 's:^:@dirrm include/mozilla-devel/:' >> ${PLIST}
|
|
|
|
${ECHO_CMD} @dirrm include/mozilla-devel >> ${PLIST}
|
|
|
|
|
2001-02-01 12:43:48 +01:00
|
|
|
do-install:
|
2002-09-03 22:45:59 +02:00
|
|
|
-${RM} -fr ${PREFIX}/include/mozilla-devel
|
|
|
|
${MKDIR} ${PREFIX}/include/mozilla-devel
|
|
|
|
${CHMOD} 755 ${PREFIX}/include/mozilla-devel
|
2002-04-13 19:06:30 +02:00
|
|
|
cd ${WRKSRC}/dist/include && ${FIND} . | \
|
2002-09-03 22:45:59 +02:00
|
|
|
cpio -pdm -L ${CPIOOWN} ${PREFIX}/include/mozilla-devel
|
2001-02-01 12:43:48 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|