2001-08-13 04:32:06 +00:00
|
|
|
# New ports collection makefile for: compat3x libraries
|
|
|
|
# Date created: 01 Aug 2001
|
|
|
|
# Whom: Scot W. Hetzel
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= compat3x
|
2001-10-12 07:37:15 +00:00
|
|
|
PORTVERSION= ${COMPAT3X_PORTVERSION}
|
2001-08-13 04:32:06 +00:00
|
|
|
CATEGORIES= misc
|
2002-09-25 18:17:26 +00:00
|
|
|
MASTER_SITES= ftp://ftp.mk.bsdclub.org/pub/FreeBSD/distfiles/ \
|
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= motoyuki
|
2001-08-13 04:32:06 +00:00
|
|
|
PKGNAMESUFFIX= -${ARCH}
|
2002-09-25 18:17:26 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${COMPAT3X_OSRELDATE}
|
|
|
|
DIST_SUBDIR= ${ARCH}
|
2001-08-13 04:32:06 +00:00
|
|
|
|
2001-10-12 07:37:15 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= A convenience package to install the compat3x libraries
|
2001-08-13 04:32:06 +00:00
|
|
|
|
2004-03-08 08:17:41 +00:00
|
|
|
FORBIDDEN= "FreeBSD-SA-03:05.xdr, FreeBSD-SA-03:08.realpath - not fixed / no lib available"
|
|
|
|
|
2001-08-13 04:32:06 +00:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
2002-09-25 18:17:26 +00:00
|
|
|
NO_WRKSUBDIR= yes
|
2001-08-13 04:32:06 +00:00
|
|
|
NO_MTREE= yes
|
|
|
|
|
|
|
|
TARGET_DIR= ${PREFIX}/lib/compat
|
|
|
|
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
LDCONFIG_DIRS= %%PREFIX%%/lib/compat
|
|
|
|
|
2001-08-15 18:17:47 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2001-10-12 07:37:15 +00:00
|
|
|
.if ${OSVERSION} >= 500000
|
|
|
|
COMPAT3X_OSVERSION= 5.0
|
2002-09-25 18:17:26 +00:00
|
|
|
COMPAT3X_OSRELDATE= 20020925
|
2001-10-12 07:37:15 +00:00
|
|
|
PLIST_SUB= CURRENT_ONLY:=""
|
|
|
|
.else
|
|
|
|
COMPAT3X_OSVERSION= 4.4
|
2002-09-25 18:17:26 +00:00
|
|
|
COMPAT3X_OSRELDATE= 20020925
|
2001-10-12 07:37:15 +00:00
|
|
|
PLIST_SUB= CURRENT_ONLY:="@comment "
|
|
|
|
.endif
|
|
|
|
|
2002-09-25 18:17:26 +00:00
|
|
|
FREEBSD4_LIBS= libc_r.so.4 libperl.so.3
|
|
|
|
|
2001-10-12 07:37:15 +00:00
|
|
|
.if defined(COMPAT3X_OSRELDATE) && !empty(COMPAT3X_OSRELDATE)
|
|
|
|
COMPAT3X_PORTVERSION= ${COMPAT3X_OSVERSION}.${COMPAT3X_OSRELDATE}
|
|
|
|
.else
|
|
|
|
COMPAT3X_PORTVERSION= ${COMPAT3X_OSVERSION}
|
|
|
|
.endif
|
2001-08-15 07:40:36 +00:00
|
|
|
|
2002-09-25 18:17:26 +00:00
|
|
|
post-extract:
|
|
|
|
.for lib in ${FREEBSD4_LIBS}
|
|
|
|
.if ${OSVERSION} >= 500000
|
|
|
|
${MV} ${WRKSRC}/${lib} ${WRKSRC}/${lib}.compat3x
|
|
|
|
.else
|
|
|
|
${RM} -f ${WRKSRC}/${lib}
|
|
|
|
.endif
|
|
|
|
.endfor
|
2001-08-13 04:32:06 +00:00
|
|
|
|
2001-08-15 18:17:47 +00:00
|
|
|
do-build:
|
2002-01-29 11:48:57 +00:00
|
|
|
@( ${ECHO_CMD} '#!/bin/sh'; ${ECHO_CMD} '${LDCONFIG} -m ${LDCONFIG_RUNLIST}'; \
|
2001-08-15 18:17:47 +00:00
|
|
|
) > ${WRKDIR}/000.${PORTNAME}.sh
|
|
|
|
|
2001-08-13 04:32:06 +00:00
|
|
|
do-install:
|
2001-08-24 14:55:36 +00:00
|
|
|
${MKDIR} ${TARGET_DIR} ${PREFIX}/etc/rc.d
|
2002-09-25 18:17:26 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib*.so.* ${TARGET_DIR}/
|
|
|
|
.for lib in ${FREEBSD4_LIBS}
|
|
|
|
cd ${TARGET_DIR}; \
|
|
|
|
if [ -e ${lib}.compat3x -a ! -e ${lib}.compat4x ]; then \
|
|
|
|
${LN} -sf ${lib}.compat3x ${lib}; \
|
2001-08-13 04:32:06 +00:00
|
|
|
fi
|
2002-09-25 18:17:26 +00:00
|
|
|
.endfor
|
2001-08-15 18:17:47 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/000.${PORTNAME}.sh ${PREFIX}/etc/rc.d/
|
2001-08-13 04:32:06 +00:00
|
|
|
|
2001-08-15 18:17:47 +00:00
|
|
|
.include <bsd.port.post.mk>
|