1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/lang/pm3-base/Makefile
Erwin Lansing e2a1c28c4d Use INST_TARGET instead of TARGETDIR to avoid the name clash
after DESTDIR was added.

PR:		104045
Submitted by:	gabor
Prodded by:	kris
2006-10-06 20:25:43 +00:00

88 lines
2.2 KiB
Makefile

# New ports collection makefile for: pm3-base
# Date created: 6 Feb 2000
# Whom: John Polstra <jdp@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= pm3-base
PORTVERSION= 1.1.15
PORTREVISION= 2
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=jdp/pm3
DISTFILES= ${BOOTSTRAP} \
pm3-${PORTVERSION}-src.tar.bz2
MAINTAINER= ports@FreeBSD.org
COMMENT= Compiler and base libs of Polytechnique Montreal Modula-3 distribution
DIST_SUBDIR= pm3
WRKSRC= ${WRKDIR}/pm3-base-${PORTVERSION}
INSTALL_TARGET= all
MAKE_ARGS+= M3OPTIONS="-DBUILD_ALL -DSHIP_ALL"
MAN1= m3bundle.1
PLIST_SUB+= SOVERSION=${SOVERSION} TARGET=${TARGET} \
INST_TARGET=${INST_TARGET} WORDSIZE=${WORDSIZE}
SCRIPTS_ENV+= TARGET=${TARGET}
USE_BZIP2= yes
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/pm3-${PORTVERSION}
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 ${ARCH} == "i386"
TARGET= FreeBSD4
INST_TARGET= freebsd-4
BOOTSTRAP= pm3-${PORTVERSION}-${TARGET}-boot.tar.bz2
WORDSIZE= 32
.elif ${ARCH} == "alpha"
CFLAGS+= -mieee
TARGET= FBSD_ALPHA
INST_TARGET= fbsd-alpha
WORDSIZE= 64
BOOTSTRAP= pm3-${PORTVERSION}-${TARGET}-boot.tar.bz2
.else
IGNORE= is not supported on ${ARCH}
.endif
EXTRA_PATCHES!= ${ECHO_CMD} ${PATCHDIR}/${TARGET}-patch-*
.if ${EXTRA_PATCHES} == ${PATCHDIR}/${TARGET}-patch-*
.undef EXTRA_PATCHES
.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."
pre-install:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/check_conflicts
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_CMD} ${PREFIX}/$$i; done
@${MKDIR} ${PREFIX}/share/pm3-base
@${INSTALL_DATA} ${WRKSRC}/src/COPYRIGHT ${PREFIX}/share/pm3-base
.include <bsd.port.post.mk>