2013-03-25 19:44:20 +01:00
|
|
|
# Created by: hrs, lesi
|
2005-08-26 07:21:02 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2005-10-25 14:34:10 +02:00
|
|
|
# NOTE: libc.so.5 is built with _PATH_LOCALE defined to
|
|
|
|
# "/usr/local/share/compat/locale" in src/include/paths.h so data installed by
|
|
|
|
# misc/localedata works out of the box if installed in default PREFIX.
|
|
|
|
|
2005-08-26 07:21:02 +02:00
|
|
|
PORTNAME= compat5x
|
2010-08-24 21:32:18 +02:00
|
|
|
PORTVERSION= 5.4.0.8.1
|
2010-10-19 19:49:34 +02:00
|
|
|
PORTREVISION= 1
|
2005-08-26 07:21:02 +02:00
|
|
|
CATEGORIES= misc
|
2005-10-07 01:18:00 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
2010-08-24 21:32:18 +02:00
|
|
|
MASTER_SITE_SUBDIR=amdmi3/compat5x
|
2005-08-26 07:21:02 +02:00
|
|
|
PKGNAMESUFFIX= -${ARCH}
|
|
|
|
DISTNAME= ${PORTNAME}-${ARCH}-${PORTVERSION}
|
|
|
|
|
2006-06-03 20:02:51 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-03-25 19:44:20 +01:00
|
|
|
COMMENT= Convenience package to install the compat5x libraries
|
2005-08-26 07:21:02 +02:00
|
|
|
|
2009-01-05 22:05:49 +01:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/compat/locale/UTF-8/LC_CTYPE:${PORTSDIR}/misc/localedata
|
|
|
|
|
2005-08-26 07:21:02 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2006-06-07 14:34:51 +02:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
NO_BUILD= yes
|
2013-06-05 00:24:03 +02:00
|
|
|
ONLY_FOR_ARCHS= amd64 i386 sparc64
|
2005-08-26 07:21:02 +02:00
|
|
|
TARGET_DIR= ${PREFIX}/lib/compat
|
|
|
|
TARGET32_DIR= ${PREFIX}/lib32/compat
|
2006-06-07 14:34:51 +02:00
|
|
|
USE_LDCONFIG= ${TARGET_DIR}
|
2005-08-26 07:21:02 +02:00
|
|
|
|
2013-09-20 22:50:57 +02:00
|
|
|
NO_STAGE= yes
|
2005-08-26 07:21:02 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-12-04 07:34:49 +01:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not install on sparc64: fails to link lib/compat/libpthread.so.1
|
|
|
|
.endif
|
|
|
|
|
2005-08-26 07:21:02 +02:00
|
|
|
.if ${ARCH} == amd64
|
|
|
|
PLIST_SUB+= AMD64=""
|
|
|
|
PLIST_SUB+= LDCONFIG_LIB32="${LDCONFIG} -32"
|
2006-06-07 14:34:51 +02:00
|
|
|
USE_LDCONFIG32= ${TARGET32_DIR}
|
2005-08-26 07:21:02 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= AMD64="@comment "
|
2006-01-08 11:41:48 +01:00
|
|
|
.endif
|
2006-06-07 14:34:51 +02:00
|
|
|
|
2005-08-26 07:21:02 +02:00
|
|
|
.if ${ARCH} == i386
|
|
|
|
PLIST_SUB+= I386=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= I386="@comment "
|
|
|
|
.endif
|
2006-06-07 14:34:51 +02:00
|
|
|
|
2005-08-26 07:21:02 +02:00
|
|
|
.if ${ARCH} == sparc64
|
|
|
|
PLIST_SUB+= SPARC64=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SPARC64="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2010-10-19 19:49:34 +02:00
|
|
|
@${MKDIR} -m 0755 ${TARGET_DIR}
|
2009-08-27 17:49:48 +02:00
|
|
|
${RM} -f ${WRKSRC}/libpthread.so.1
|
2009-09-03 15:13:39 +02:00
|
|
|
(cd ${TARGET_DIR} && ${LN} -sf libthr.so.1 libpthread.so.1)
|
2005-08-26 07:21:02 +02:00
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} *.so.* ${TARGET_DIR})
|
|
|
|
.if ${ARCH} == amd64
|
2006-06-07 14:34:51 +02:00
|
|
|
@${MKDIR} ${TARGET32_DIR}
|
2009-08-27 17:49:48 +02:00
|
|
|
${RM} -f ${WRKSRC}/lib32/libpthread.so.1
|
2009-09-03 15:13:39 +02:00
|
|
|
(cd ${TARGET32_DIR} && ${LN} -sf libthr.so.1 libpthread.so.1)
|
2005-08-26 07:21:02 +02:00
|
|
|
(cd ${WRKSRC}/lib32 && ${INSTALL_DATA} *.so.* ${TARGET32_DIR})
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|