aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-07-10 02:42:36 +0800
committermarcus <marcus@FreeBSD.org>2003-07-10 02:42:36 +0800
commit7fd8124f128498bdb9c4eeda01e11b028f7c4770 (patch)
tree4593600d4ddc68cfa4683b2cecb2b012b32fd375 /lang
parent215305e149cc0dd085c0ca1e9d6219f61b8a72d9 (diff)
downloadfreebsd-ports-gnome-7fd8124f128498bdb9c4eeda01e11b028f7c4770.tar.gz
freebsd-ports-gnome-7fd8124f128498bdb9c4eeda01e11b028f7c4770.tar.zst
freebsd-ports-gnome-7fd8124f128498bdb9c4eeda01e11b028f7c4770.zip
Update for compatibility with new bsd.port.mk patches.
Submitted by: maintainer
Diffstat (limited to 'lang')
-rw-r--r--lang/sml-nj-devel/Makefile42
-rw-r--r--lang/sml-nj-devel/files/plist-everything2
2 files changed, 34 insertions, 10 deletions
diff --git a/lang/sml-nj-devel/Makefile b/lang/sml-nj-devel/Makefile
index da334e8de634..d965ac01dca4 100644
--- a/lang/sml-nj-devel/Makefile
+++ b/lang/sml-nj-devel/Makefile
@@ -65,8 +65,10 @@ MLTARGETS= ml-burg eXene src-smlnj \
ml-nlffi-lib ml-nlffigen nowhere pgraph-util
MLEXE+= ml-burg ml-nlffigen nowhere
PLIST= ${WRKDIR}/.PLIST
+MLRUNTIMEPLIST= ${WRKDIR}/.PLIST.runtime
MLSRCPLIST= ${WRKDIR}/.PLIST.src
-MLPLISTFILES= ${.CURDIR}/pkg-plist ${FILESDIR}/plist-everything ${MLSRCPLIST}
+MLPLISTFILES= ${.CURDIR}/pkg-plist ${FILESDIR}/plist-everything \
+ ${MLRUNTIMEPLIST} ${MLSRCPLIST}
.endif
pre-fetch:
@@ -154,16 +156,41 @@ do-build:
MLNORUNTIMECLEAN=yes ./config/install.sh
.endif
+# Nowadays PLIST has to be computed before installation. We do it in
+# "pre-install" because source extraction happens during "build".
+.if defined(WITH_EVERYTHING)
+MLNOINSTALL= CM
+.if defined(WITH_RECOMPILE)
+MLNOINSTALL+= sml.boot.${MLARCH}-unix sml.bin.${MLARCH}-unix
+.endif
+MLSRCEXCLUDEREGEX= -e '^(@dirrm\ )?${MLROOTRELATIVE}/src/runtime'
+.for excl in ${MLNOINSTALL}
+MLSRCEXCLUDEREGEX+= -e '/${excl}$$' -e '/${excl}/'
+.endfor
+
+pre-install:
+ @${ECHO} -n 'Computing package list ...'
+ @${TAR} -tzf ${WRKDIR}/runtime.tgz | \
+ ${SED} -E -e 's%^(.*[^/])$$%${MLROOTRELATIVE}/src/\1%' \
+ -e 's%^(.*)/$$%@dirrm\ ${MLROOTRELATIVE}/src/\1%' \
+ > ${MLRUNTIMEPLIST}
+ @cd "${WRKDIR}" && ( \
+ ( ${FIND} -s -d ${MLSRCSBASE} \! -type d | \
+ ${AWK} '{ print "${MLROOTRELATIVE}/" $$0 }' ) ; \
+ ( ${FIND} -s -d ${MLSRCSBASE} -type d | \
+ ${AWK} '{ print "@dirrm ${MLROOTRELATIVE}/" $$0 }' ) ) | \
+ ${EGREP} -v ${MLSRCEXCLUDEREGEX} > ${MLSRCPLIST}
+ @${GREP} -h ^[^@] ${MLPLISTFILES} | sort -u > ${PLIST}
+ @${GREP} -h ^@dirrm ${MLPLISTFILES} | sort -r -u >> ${PLIST}
+ @${ECHO} ' done.'
+.endif
+
# The install target installs the heaps and libraries to their final
# location in ${MLBIN} and ${MLLIB}.
# In case of recompilation, installml installs the sml heap and the
# libraries built during compiler bootstrap to ${MLBIN} and ${MLLIB}.
.if defined(WITH_EVERYTHING)
-MLNOINSTALL= CM
-.if defined(WITH_RECOMPILE)
-MLNOINSTALL+= sml.boot.${MLARCH}-unix sml.bin.${MLARCH}-unix
-.endif
MLSRCEXCLUDES=
.for excl in ${MLNOINSTALL}
MLSRCEXCLUDES+= --exclude "${excl}"
@@ -206,11 +233,6 @@ do-install:
${TAR} -xf - -C "${MLROOT}"
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${MLSRCS}
@${ECHO} ' done.'
- cd "${PREFIX}" && ( ${FIND} -s -d ${MLSRCSRELATIVE} \! -type d ; \
- ( ${FIND} -s -d ${MLSRCSRELATIVE} -type d | \
- ${AWK} '{ printf "@dirrm "; print }' ) ) > ${MLSRCPLIST}
- ${GREP} -h ^[^@] ${MLPLISTFILES} | sort -u > ${PLIST}
- ${GREP} -h ^@dirrm ${MLPLISTFILES} | sort -r -u >> ${PLIST}
.endif
post-install:
diff --git a/lang/sml-nj-devel/files/plist-everything b/lang/sml-nj-devel/files/plist-everything
index 4b65bce62ca2..2fb22613d83a 100644
--- a/lang/sml-nj-devel/files/plist-everything
+++ b/lang/sml-nj-devel/files/plist-everything
@@ -19,6 +19,8 @@ smlnj/lib/mlrisc-tools/CM/%%MLARCH%%-unix/prec-parser.cm
smlnj/lib/mlrisc-tools/CM/%%MLARCH%%-unix/sml-ast.cm
smlnj/lib/mlrisc-tools/CM/%%MLARCH%%-unix/source-map.cm
smlnj/lib/pgraph-util.cm/CM/%%MLARCH%%-unix/pgraph-util.cm
+smlnj/src/runtime/config/gen-posix-names.sh.orig
+smlnj/src/runtime/objs/mk.%%MLARCH%%-freebsd.orig
@dirrm smlnj/lib/eXene.cm/CM/%%MLARCH%%-unix
@dirrm smlnj/lib/eXene.cm/CM
@dirrm smlnj/lib/eXene.cm