diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2001-08-13 04:32:06 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2001-08-13 04:32:06 +0000 |
commit | 1ebdec8e3d910496e4fd9b4965e4467698777174 (patch) | |
tree | 06f62b7b9e9c68c3d3269b851c8f1acdb200d635 /misc/compat4x/Makefile | |
parent | Update to 0.9.2. (diff) |
Add compat22, compat3x and compat4x. These packages allow you to
install the compat libraries on your system, so you can use legacy
binaries that depend on them.
PR: ports/29371
Submitted by: Scot W. Hetzel <hetzels@westbend.net>
Altered by: knu
Notes
Notes:
svn path=/head/; revision=46163
Diffstat (limited to 'misc/compat4x/Makefile')
-rw-r--r-- | misc/compat4x/Makefile | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/misc/compat4x/Makefile b/misc/compat4x/Makefile new file mode 100644 index 000000000000..a3cbe289b938 --- /dev/null +++ b/misc/compat4x/Makefile @@ -0,0 +1,71 @@ +# New ports collection makefile for: compat4x libraries +# Date created: 01 Aug 2001 +# Whom: Scot W. Hetzel +# +# $FreeBSD$ +# + +PORTNAME= compat4x +PORTVERSION= ${COMPAT4X_PORTVERSION} +CATEGORIES= misc +MASTER_SITES= ${COMPAT4X_MASTER_SITES} +PKGNAMESUFFIX= -${ARCH} +DISTFILES= ${COMPAT4X_DISTFILES} +DIST_SUBDIR= ${ARCH}/${PORTVERSION} + +MAINTAINER= hetzels@westbend.net + +PREFIX?= /usr + +WRKSRC= ${WRKDIR}/usr/lib/compat +NO_MTREE= yes +NO_BUILD= yes + +TARGET_DIR= ${PREFIX}/lib/compat + +INSTALLS_SHLIB= yes +LDCONFIG_DIRS= %%PREFIX%%/lib/compat + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 500000 +COMPAT4X_PORTVERSION= 5.0 +COMPAT4X_MASTER_SITES= ftp://current.FreeBSD.org/pub/FreeBSD/%SUBDIR%/ +.if ${ARCH} == i386 +MASTER_SITE_SUBDIR= snapshots/${ARCH}/${PORTVERSION}-20010618-CURRENT/${PORTNAME} +COMPAT4X_DISTFILES= ${PORTNAME}.aa \ + ${PORTNAME}.ab \ + ${PORTNAME}.ac \ + ${PORTNAME}.ad +.elif ${ARCH} == alpha +MASTER_SITE_SUBDIR= snapshots/${ARCH}/${PORTVERSION}-20010721-CURRENT/${PORTNAME} +COMPAT4X_DISTFILES= ${PORTNAME}.aa \ + ${PORTNAME}.ab \ + ${PORTNAME}.ac \ + ${PORTNAME}.ad \ + ${PORTNAME}.ae +.endif +PLIST_SUB= CURRENT_ONLY:="" +.else +COMPAT4X_PORTVERSION= 4.3 +COMPAT4X_MASTER_SITES= ${MASTER_SITE_FREEBSD_ORG} +MASTER_SITE_SUBDIR= releases/${ARCH}/${PORTVERSION}-RELEASE/${PORTNAME} +COMPAT4X_DISTFILES= ${PORTNAME}.aa \ + ${PORTNAME}.ab +PLIST_SUB= CURRENT_ONLY:="@comment " +.endif + +do-extract: + ${MKDIR} ${WRKDIR} + cd ${_DISTDIR} && ${CAT} ${DISTFILES} | ${TAR} -xzf - -C ${WRKDIR} +.if ${OSVERSION} >= 500000 + ${MV} ${WRKSRC}/libc_r.so.4 ${WRKSRC}/libc_r.so.4.compat4x +.endif + +do-install: + ${INSTALL_DATA} ${WRKSRC}/* ${TARGET_DIR}/ +.if ${OSVERSION} >= 500000 + ${LN} -sf ${TARGET_DIR}/libc_r.so.4.compat4x ${TARGET_DIR}/libc_r.so.4 +.endif + +.include <bsd.port.post.mk> |