From 72b9fa785cdb426a94a39bf1b96129348cf31a0b Mon Sep 17 00:00:00 2001 From: garga Date: Thu, 27 Aug 2009 15:49:48 +0000 Subject: When installing on 8.x (>= 800105), don't install libpthread.so.1 but create a symlink to /usr/lib/libpthr.so Discussed with: jhb --- misc/compat5x/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'misc') 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 -- cgit