blob: e27fd88b5c9fb68b4dfd7d23be47784257bae91e (
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
67
68
69
70
|
# $NetBSD: Makefile,v 1.5 2000/03/16 12:32:27 wiz Exp $
#
DISTNAME= libwcsmbs-0.0.4-4jrpm
PKGNAME= linux-locale-0.4.11
CATEGORIES= emulators
MASTER_SITES= ftp://ftp.linux.or.jp/pub/RPM/RPMS/i386-glibc/ \
ftp://mirror.nucba.ac.jp/pub/JRPM/RPMS/i386-glibc/ \
ftp://ftp.lab.kdd.co.jp/Linux/jrpm/RPMS/i386-glibc/ \
ftp://ftp.cc.miyazaki-u.ac.jp/pub/OS/Linux/JRPM/RPMS/i386-glibc/
EXTRACT_SUFX= .i386.rpm
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
wcsmbs-locale-0.4.11-1jrpm${EXTRACT_SUFX}
BROKEN= linux-locale does not work correctly with glibc-2.1.2 (suse_linux-6.3)
MAINTAINER= sakamoto@netbsd.org
ONLY_FOR_PLATFORM= *-*-i386
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
DEPENDS= suse_linux-6.1p1:../../emulators/suse_linux
.endif
EXTRACT_ONLY= # empty
NO_PATCH= yes
NO_CONFIGURE= yes
NO_BUILD= yes
PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
DEINSTALL_SRC= ${PKGDIR}/DEINSTALL
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
EMULSUBDIR= emul/linux
EMULDIR= ${PREFIX}/${EMULSUBDIR}
EMULPRELOAD= ${EMULDIR}/etc/ld.so.preload
RPM2PKG= ${PREFIX}/sbin/rpm2pkg
RPM2PKGARGS= -d ${PREFIX} -f ${PLIST_SRC} -p ${EMULSUBDIR}
.for TEMP in ${DISTFILES}
RPM2PKGARGS+= ${DISTDIR}/${DIST_SUBDIR}/${TEMP}
.endfor
do-install:
@if [ -f ${PKGDIR}/PLIST ]; then \
${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \
else \
${RM} -f ${PLIST_SRC}; \
fi
${RPM2PKG} ${RPM2PKGARGS}
@if ${GREP} -q 'lib.*\.so' ${PLIST_SRC}; then \
${ECHO_MSG} "===> [Automatic Linux shared object handling]"; \
${EMULDIR}/sbin/ldconfig -r ${EMULDIR}; \
${ECHO} "@exec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR}" >>${PLIST_SRC}; \
${ECHO} "@unexec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR} 2>/dev/null" >>${PLIST_SRC}; \
fi
post-install:
@${ECHO_MSG} "===> [Automatic Linux shared object preload handling]"
@${GREP} -v 'libwcsmbs\.so' ${EMULPRELOAD} \
> ${WRKDIR}/preload 2> /dev/null || ${TRUE}
@${MV} ${WRKDIR}/preload ${EMULPRELOAD}
@${ECHO} "libwcsmbs.so.0" >> ${EMULPRELOAD}
@${SED} -e 's|$${EMULPRELOAD}|${EMULPRELOAD}|g' \
${DEINSTALL_SRC} > ${DEINSTALL_FILE}
show-shlib-type:
@${ECHO} linux-${MACHINE_ARCH}
.include "../../mk/bsd.pkg.mk"
|