blob: b21a04068c176ce15772e079f1541bd2e71bd5f6 (
plain)
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
|
# $NetBSD: Makefile,v 1.6 2003/12/15 06:21:33 grant Exp $
#
DISTNAME= compat14-crypto-${MACHINE_ARCH}-${VERSION}
PKGNAME= compat14-crypto-${VERSION}
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_LOCAL}
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.NetBSD.org/Releases/formal-1.4/index.html
COMMENT= Shared libraries for NetBSD 1.4 (and earlier) compatibility
VERSION= 1.4.3.1
CONFLICTS= compat14-[0-9]*
ONLY_FOR_PLATFORM= NetBSD-*-sparc NetBSD-*-i386
NOT_FOR_PLATFORM= NetBSD-1.3*-* NetBSD-1.4*-*
CRYPTO= YES
NO_MTREE= # defined
NO_BUILD= # defined
SHLIB_HANDLING= NO
USE_PKGINSTALL= YES
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
FILES_SUBST+= COMPAT_LIBDIR=${COMPAT_LIBDIR}
FILES_SUBST+= COMPAT_XLIBDIR=${COMPAT_XLIBDIR}
FILES_SUBST+= MACHINE_ARCH=${MACHINE_ARCH}
FILES_SUBST+= OBJECT_FMT=${OBJECT_FMT}
FILES_SUBST+= LDCONFIG=${LDCONFIG}
.include "../../mk/bsd.prefs.mk"
# This installs in /usr (or /emul/aout/usr) to avoid dynamic linker annoyances
.if ${OBJECT_FMT} == "ELF" && \
(${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "sparc")
EMULSUBDIR= emul/aout
COMPAT_LIBDIR= ${EMULSUBDIR}/usr/lib
COMPAT_XLIBDIR= ${EMULSUBDIR}/usr/X11R6/lib
.else
LOCALBASE= /usr
COMPAT_LIBDIR= lib
COMPAT_XLIBDIR= X11R6/lib
.endif
PLIST_SRC+= ${PKGDIR}/PLIST
.if exists(${PKGDIR}/PLIST.${MACHINE_ARCH})
PLIST_SRC+= ${PKGDIR}/PLIST.${MACHINE_ARCH}
.endif
PLIST_SUBST+= COMPAT_LIBDIR=${COMPAT_LIBDIR} COMPAT_XLIBDIR=${COMPAT_XLIBDIR}
# note that the INSTALL_DATA for the lib*.so symlinks will copy the file, not the symlink.
# FIXME.
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/${COMPAT_LIBDIR}
${INSTALL_DATA} ${WRKDIR}/lib/lib*.so* ${PREFIX}/${COMPAT_LIBDIR}
if [ -d ${WRKDIR}/X11R6/lib ]; then \
${INSTALL_DATA_DIR} ${PREFIX}/${COMPAT_XLIBDIR}; \
${INSTALL_DATA} ${WRKDIR}/X11R6/lib/lib*.so* ${PREFIX}/${COMPAT_XLIBDIR}; \
fi
.include "../../mk/bsd.pkg.mk"
|