blob: e5ab458ba8ac7a9e951baab0c0508fb876d44c1e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# New ports collection makefile for: compat4x libraries
# Date created: 01 Aug 2001
# Whom: Scot W. Hetzel
#
# $FreeBSD$
#
PORTNAME= compat4x
PORTVERSION= ${COMPAT4X_PORTVERSION}
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= ${COMPAT4X_MASTER_SITES}
PKGNAMESUFFIX= -${ARCH}
DISTFILES= ${COMPAT4X_DISTFILES}
DIST_SUBDIR= ${ARCH}/${PORTVERSION}
MAINTAINER= hetzels@westbend.net
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_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-build:
@( ${ECHO} '#!/bin/sh'; ${ECHO} '${LDCONFIG} -m ${LDCONFIG_RUNLIST}'; \
) > ${WRKDIR}/000.${PORTNAME}.sh
do-install:
${MKDIR} ${TARGET_DIR}
${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>
|