1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/misc/compat3x/Makefile
Max Brazhnikov e2f92a3547 Convert LDCONFIG_DIRS to USE_LDCONFIG for unmaintained ports.
PR:		based on ports/146365
Submitted by:	Alex Kozlov <spam at rm-rf.kiev.ua>
2010-05-23 18:06:57 +00:00

67 lines
1.6 KiB
Makefile

# New ports collection makefile for: compat3x libraries
# Date created: 01 Aug 2001
# Whom: Scot W. Hetzel
#
# $FreeBSD$
#
PORTNAME= compat3x
PORTVERSION= ${COMPAT3X_PORTVERSION}
CATEGORIES= misc
MASTER_SITES= ftp://ftp.mk.bsdclub.org/pub/FreeBSD/distfiles/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= motoyuki
PKGNAMESUFFIX= -${ARCH}
DISTNAME= ${PORTNAME}-${COMPAT3X_OSRELDATE}
DIST_SUBDIR= ${ARCH}
MAINTAINER= ports@FreeBSD.org
COMMENT= A convenience package to install the compat3x libraries
FORBIDDEN= "FreeBSD-SA-03:05.xdr, FreeBSD-SA-03:08.realpath - not fixed / no lib available"
ONLY_FOR_ARCHS= i386
NO_WRKSUBDIR= yes
NO_MTREE= yes
TARGET_DIR= ${PREFIX}/lib/compat
USE_LDCONFIG= ${TARGET_DIR}
.include <bsd.port.pre.mk>
COMPAT3X_OSVERSION= 5.0
COMPAT3X_OSRELDATE= 20020925
PLIST_SUB= CURRENT_ONLY:=""
FREEBSD4_LIBS= libc_r.so.4 libperl.so.3
.if defined(COMPAT3X_OSRELDATE) && !empty(COMPAT3X_OSRELDATE)
COMPAT3X_PORTVERSION= ${COMPAT3X_OSVERSION}.${COMPAT3X_OSRELDATE}
.else
COMPAT3X_PORTVERSION= ${COMPAT3X_OSVERSION}
.endif
post-extract:
.for lib in ${FREEBSD4_LIBS}
${MV} ${WRKSRC}/${lib} ${WRKSRC}/${lib}.compat3x
.endfor
do-build:
@( ${ECHO_CMD} '#!/bin/sh'; ${ECHO_CMD} '${LDCONFIG} -m ${LDCONFIG_RUNLIST}'; \
) > ${WRKDIR}/000.${PORTNAME}.sh
do-install:
${MKDIR} ${TARGET_DIR} ${PREFIX}/etc/rc.d
${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}; \
fi
.endfor
${INSTALL_SCRIPT} ${WRKDIR}/000.${PORTNAME}.sh ${PREFIX}/etc/rc.d/
.include <bsd.port.post.mk>