2000-02-10 05:46:18 +00:00
|
|
|
# New ports collection makefile for: pm3-base
|
|
|
|
# Date created: 6 Feb 2000
|
2000-02-13 23:16:52 +00:00
|
|
|
# Whom: John Polstra <jdp@FreeBSD.org>
|
2000-02-10 05:46:18 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-12 06:21:15 +00:00
|
|
|
PORTNAME= pm3-base
|
2000-07-26 03:40:48 +00:00
|
|
|
PORTVERSION= 1.1.14
|
2000-02-10 05:46:18 +00:00
|
|
|
CATEGORIES= lang
|
2000-06-28 15:35:58 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR=jdp/pm3
|
2000-02-10 05:46:18 +00:00
|
|
|
DISTFILES= ${BOOTSTRAP} \
|
2000-04-12 06:21:15 +00:00
|
|
|
pm3-${PORTVERSION}-src.tar.bz2
|
2000-02-10 05:46:18 +00:00
|
|
|
|
2000-02-13 23:16:52 +00:00
|
|
|
MAINTAINER= jdp@FreeBSD.org
|
2000-02-10 05:46:18 +00:00
|
|
|
|
|
|
|
DIST_SUBDIR= pm3
|
2000-04-12 06:21:15 +00:00
|
|
|
WRKSRC= ${WRKDIR}/pm3-base-${PORTVERSION}
|
2000-02-10 05:46:18 +00:00
|
|
|
INSTALL_TARGET= all
|
|
|
|
MAKE_ARGS+= M3OPTIONS="-DBUILD_ALL -DSHIP_ALL"
|
|
|
|
MAN1= m3bundle.1
|
|
|
|
PLIST_SUB+= SOVERSION=${SOVERSION} TARGET=${TARGET} \
|
|
|
|
TARGETDIR=${TARGETDIR} WORDSIZE=${WORDSIZE}
|
|
|
|
SCRIPTS_ENV+= TARGET=${TARGET}
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
2000-04-12 06:21:15 +00:00
|
|
|
WRKSRC= ${WRKDIR}/pm3-${PORTVERSION}
|
2000-02-10 05:46:18 +00:00
|
|
|
|
|
|
|
PROGS= bin/m3build \
|
|
|
|
bin/m3bundle \
|
|
|
|
bin/m3coco \
|
|
|
|
bin/m3ship \
|
|
|
|
bin/m3tosgml \
|
|
|
|
bin/sgmlconv \
|
|
|
|
bin/sgmllinear \
|
|
|
|
bin/sgmlnormalize \
|
|
|
|
bin/sgmlstructure \
|
|
|
|
bin/sgmltom3 \
|
|
|
|
lib/m3/${TARGET}/m3cgc1
|
|
|
|
SOVERSION= 7
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PORTOBJFORMAT} == "aout"
|
|
|
|
TARGET= FreeBSD2
|
|
|
|
TARGETDIR= freebsd-2
|
|
|
|
WORDSIZE= 32
|
2000-04-12 06:21:15 +00:00
|
|
|
BOOTSTRAP= pm3-${PORTVERSION}-${TARGET}-boot.tar.bz2
|
2000-02-10 05:46:18 +00:00
|
|
|
.elif ${ARCH} == "i386"
|
|
|
|
.if ${OSVERSION} < 400011
|
|
|
|
TARGET= FreeBSD3
|
|
|
|
TARGETDIR= freebsd-3
|
2000-04-12 06:21:15 +00:00
|
|
|
BOOTSTRAP= pm3-${PORTVERSION}-${TARGET}-boot.tar.bz2
|
2000-02-10 05:46:18 +00:00
|
|
|
.else
|
|
|
|
TARGET= FreeBSD4
|
|
|
|
TARGETDIR= freebsd-4
|
2000-04-12 06:21:15 +00:00
|
|
|
BOOTSTRAP= pm3-${PORTVERSION}a-${TARGET}-boot.tar.bz2
|
2000-02-10 05:46:18 +00:00
|
|
|
.endif
|
|
|
|
WORDSIZE= 32
|
|
|
|
.elif ${ARCH} == "alpha"
|
|
|
|
.if ${OSVERSION} < 400011
|
|
|
|
BROKEN= Not supported on older versions of FreeBSD/Alpha
|
|
|
|
.endif
|
|
|
|
CFLAGS+= -mieee
|
|
|
|
TARGET= FBSD_ALPHA
|
|
|
|
TARGETDIR= fbsd-alpha
|
|
|
|
WORDSIZE= 64
|
2000-07-26 03:40:48 +00:00
|
|
|
BOOTSTRAP= pm3-${PORTVERSION}-${TARGET}-boot.tar.bz2
|
2000-02-10 05:46:18 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if empty(TARGET)
|
|
|
|
pre-fetch:
|
|
|
|
@${ECHO_MSG} "Cannot determine M3 target for this architecture"
|
|
|
|
@${FALSE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${CP} ${WRKSRC}/libs/m3core/src/runtime/${TARGET}/RTHeapDepC.c \
|
|
|
|
${WRKSRC}/boot-${TARGET}/m3core/${TARGET}/RTHeapDepC.c
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@${ECHO_MSG} "This port does everything in the install step."
|
|
|
|
@${ECHO_MSG} "The build step is a no-op."
|
|
|
|
|
2000-02-13 23:16:52 +00:00
|
|
|
pre-install:
|
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/check_conflicts
|
|
|
|
|
2000-02-10 05:46:18 +00:00
|
|
|
do-install:
|
|
|
|
@${RM} -rf ${WRKSRC}/${TARGET}
|
|
|
|
@(ulimit -d `ulimit -Hd` && ulimit -m `ulimit -Hm` && \
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
|
|
|
|
${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
|
|
|
|
@for i in ${PROGS}; do strip ${PREFIX}/$$i; done
|
2000-02-13 23:16:52 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/pm3-base
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/src/COPYRIGHT ${PREFIX}/share/pm3-base
|
2000-02-10 05:46:18 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|