1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/misc/compat4x/Makefile
Akinori MUSHA f5f58d0f23 - Update to the latest available versions:
4-STABLE/alpha:	4.4-RELEASE
  4-STABLE/i386:	4.4-20011011-STABLE
  5-CURRENT/alpha:	5.0-20010721-CURRENT
  5-CURRENT/i386:	5.0-20011011-CURRENT

  I could not find up-to-date snapshots available for alpha.  If
  anyone knows one, please let me know.

- Transfer the maintainership to ports@, because this rather belongs
  to the base/ports infrastructure.

  We greatly appreciate your inititial idea and work, Scott! :)
2001-10-12 07:19:29 +00:00

105 lines
2.7 KiB
Makefile

# 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}
MASTER_SITE_SUBDIR= ${COMPAT4X_MASTER_SITE_SUBDIR}
PKGNAMESUFFIX= -${ARCH}
DISTFILES= ${COMPAT4X_DISTFILES}
DIST_SUBDIR= ${ARCH}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
WRKSRC= ${WRKDIR}/usr/lib/compat
NO_MTREE= yes
TARGET_DIR= ${PREFIX}/lib/compat
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= %%PREFIX%%/lib/compat
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500000
COMPAT4X_OSVERSION= 5.0
COMPAT4X_OSBRANCH= CURRENT
COMPAT4X_MASTER_SITES= ftp://current.FreeBSD.org/pub/FreeBSD/%SUBDIR%/
.if ${ARCH} == i386
COMPAT4X_OSRELDATE= 20011011
COMPAT4X_DISTFILES= ${PORTNAME}.aa \
${PORTNAME}.ab \
${PORTNAME}.ac \
${PORTNAME}.ad \
${PORTNAME}.ae \
${PORTNAME}.af
LATEST_ONLY= ""
.elif ${ARCH} == alpha
COMPAT4X_OSRELDATE= 20010721
COMPAT4X_DISTFILES= ${PORTNAME}.aa \
${PORTNAME}.ab \
${PORTNAME}.ac \
${PORTNAME}.ad \
${PORTNAME}.ae
.else
IGNORE= unsupported architecture
.endif
CURRENT_ONLY= ""
.else
COMPAT4X_OSVERSION= 4.4
.if ${ARCH} == i386
COMPAT4X_OSRELDATE= 20011011
COMPAT4X_OSBRANCH= STABLE
COMPAT4X_MASTER_SITES= ftp://stable.FreeBSD.org/pub/FreeBSD/%SUBDIR%/
COMPAT4X_DISTFILES= ${PORTNAME}.aa \
${PORTNAME}.ab
LATEST_ONLY= ""
.elif ${ARCH} == alpha
COMPAT4X_MASTER_SITES= ${MASTER_SITE_FREEBSD_ORG}
COMPAT4X_DISTFILES= ${PORTNAME}.aa \
${PORTNAME}.ab
.else
IGNORE= unsupported architecture
.endif
.endif
CURRENT_ONLY?= "@comment "
LATEST_ONLY?= "@comment "
PLIST_SUB+= CURRENT_ONLY:=${CURRENT_ONLY} \
LATEST_ONLY:=${LATEST_ONLY}
.if defined(COMPAT4X_OSRELDATE) && !empty(COMPAT4X_OSRELDATE)
COMPAT4X_PORTVERSION= ${COMPAT4X_OSVERSION}.${COMPAT4X_OSRELDATE}
COMPAT4X_MASTER_SITE_SUBDIR= snapshots/${ARCH}/${COMPAT4X_OSVERSION}-${COMPAT4X_OSRELDATE}-${COMPAT4X_OSBRANCH}/${PORTNAME}
.else
COMPAT4X_PORTVERSION= ${COMPAT4X_OSVERSION}
COMPAT4X_MASTER_SITE_SUBDIR= releases/${ARCH}/${COMPAT4X_OSVERSION}-RELEASE/${PORTNAME}
.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-build:
@( ${ECHO} '#!/bin/sh'; ${ECHO} '${LDCONFIG} -m ${LDCONFIG_RUNLIST}'; \
) > ${WRKDIR}/000.${PORTNAME}.sh
do-install:
${MKDIR} ${TARGET_DIR} ${PREFIX}/etc/rc.d
${INSTALL_DATA} ${WRKSRC}/* ${TARGET_DIR}/
.if ${OSVERSION} >= 500000
${LN} -sf ${TARGET_DIR}/libc_r.so.4.compat4x ${TARGET_DIR}/libc_r.so.4
.endif
${INSTALL_SCRIPT} ${WRKDIR}/000.${PORTNAME}.sh ${PREFIX}/etc/rc.d/
.include <bsd.port.post.mk>