aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2009-08-27 23:49:48 +0800
committergarga <garga@FreeBSD.org>2009-08-27 23:49:48 +0800
commit72b9fa785cdb426a94a39bf1b96129348cf31a0b (patch)
tree1cd2aa8e6d7c5267dae6e23615bde3567bd8a43d /misc
parentc2b501e944c339d9ca42fbf9c072ffa6dd0ba5bf (diff)
downloadfreebsd-ports-gnome-72b9fa785cdb426a94a39bf1b96129348cf31a0b.tar.gz
freebsd-ports-gnome-72b9fa785cdb426a94a39bf1b96129348cf31a0b.tar.zst
freebsd-ports-gnome-72b9fa785cdb426a94a39bf1b96129348cf31a0b.zip
When installing on 8.x (>= 800105), don't install libpthread.so.1 but create a
symlink to /usr/lib/libpthr.so Discussed with: jhb
Diffstat (limited to 'misc')
-rw-r--r--misc/compat5x/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/misc/compat5x/Makefile b/misc/compat5x/Makefile
index 255fc521bf57..335d7f37a363 100644
--- a/misc/compat5x/Makefile
+++ b/misc/compat5x/Makefile
@@ -11,7 +11,7 @@
PORTNAME= compat5x
PORTVERSION= 5.4.0.8
-PORTREVISION= 9
+PORTREVISION= 10
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=lesi/compat5x
@@ -67,9 +67,17 @@ post-extract:
do-install:
@${MKDIR} ${TARGET_DIR}
+.if ${OSVERSION} >= 800105
+ ${RM} -f ${WRKSRC}/libpthread.so.1
+ (cd ${TARGET_DIR} && ${LN} -s /usr/lib/libpthr.so ./libpthread.so.1)
+.endif
(cd ${WRKSRC} && ${INSTALL_DATA} *.so.* ${TARGET_DIR})
.if ${ARCH} == amd64
@${MKDIR} ${TARGET32_DIR}
+. if ${OSVERSION} >= 800105
+ ${RM} -f ${WRKSRC}/lib32/libpthread.so.1
+ (cd ${TARGET32_DIR} && ${LN} -s /usr/lib32/libpthr.so ./libpthread.so.1)
+. endif
(cd ${WRKSRC}/lib32 && ${INSTALL_DATA} *.so.* ${TARGET32_DIR})
.endif