summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrafan <rafan@75cda91c-bdda-477a-9548-7b8f56199edc>2008-03-23 20:18:26 +0800
committerrafan <rafan@75cda91c-bdda-477a-9548-7b8f56199edc>2008-03-23 20:18:26 +0800
commitb877d674bceabae5c121b55a5bd1d4f8358a75a6 (patch)
tree14752e7ef116d3464209e3ced9996d887559f275
parentc1cdb389cf17467dd19a128fdbfc1b921f88da54 (diff)
downloadwslabports-b877d674bceabae5c121b55a5bd1d4f8358a75a6.tar.gz
wslabports-b877d674bceabae5c121b55a5bd1d4f8358a75a6.tar.zst
wslabports-b877d674bceabae5c121b55a5bd1d4f8358a75a6.zip
- Create links
git-svn-id: https://opensvn.csie.org/wslabports/trunk@13 75cda91c-bdda-477a-9548-7b8f56199edc
-rw-r--r--matlab/Makefile4
-rw-r--r--matlab/pkg-plist4
2 files changed, 7 insertions, 1 deletions
diff --git a/matlab/Makefile b/matlab/Makefile
index 07e6542..e1d2bee 100644
--- a/matlab/Makefile
+++ b/matlab/Makefile
@@ -8,7 +8,7 @@
PORTNAME= matlab
# set PORTVERSION equal to what matlab says
PORTVERSION= 7.5.0.338 # R2007b
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= local
DISTFILES=
@@ -26,5 +26,7 @@ pre-everything::
do-install:
${INSTALL_SCRIPT} ${FILESDIR}/matlab ${PREFIX}/bin
+ ${MKDIR} -p /compat/linux/usr/local
+ ${LN} -fs /mnt/freebsd/matlab /compat/linux/usr/local/matlab
.include <bsd.port.mk>
diff --git a/matlab/pkg-plist b/matlab/pkg-plist
index f74359d..c9d5a76 100644
--- a/matlab/pkg-plist
+++ b/matlab/pkg-plist
@@ -1 +1,5 @@
bin/matlab
+@exec mkdir -p /compat/linux/usr/local
+@exec ln -fs /mnt/freebsd/matlab /compat/linux/usr/local/matlab
+@unexec rm -f /compat/linux/usr/local/matlab
+@dirrmtry /compat/linux/usr/local