summaryrefslogtreecommitdiff
path: root/japanese/king/Makefile
blob: 1651fbc654c4213d8e15ed8950c934136dc03c41 (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
# $NetBSD: Makefile,v 1.7 2000/08/18 22:46:36 hubertf Exp $
#

DISTNAME=	king-1.00-tb40-1
PKGNAME=	king-1.00
CATEGORIES=	japanese
EXTRACT_SUFX=	.i386.rpm
ONLY_FOR_PLATFORM=	NetBSD-*-i386

MAINTAINER=	sakamoto@netbsd.org
HOMEPAGE=	http://www.ibm.co.jp/software/internet/king/

RESTRICTED=	"A commercial licence needs to be purchased from IBM Corp"
NO_BIN_ON_CDROM=${RESTRICTED}
NO_SRC_ON_CDROM=${RESTRICTED}
NO_BIN_ON_FTP=	${RESTRICTED}
NO_SRC_ON_FTP=	${RESTRICTED}

KINGDISTDIR?=	/cdrom/linux
DISTDIR=	${KINGDISTDIR}

DEPENDS=	suse_base>=6.1:../../emulators/suse_base

EXTRACT_ONLY=	# empty
NO_BUILD=	yes
PLIST_SRC=	${WRKDIR}/PLIST_DYNAMIC

EMULSUBDIR=	emul/linux
EMULDIR=	${PREFIX}/${EMULSUBDIR}
SBINDIR=	${PREFIX}/sbin

RPM2PKG=	${PREFIX}/sbin/rpm2pkg
RPM2PKGARGS=	-d ${PREFIX} -f ${PLIST_SRC} -p ${EMULSUBDIR}

do-fetch:
	@(if [ ! -f ${KINGDISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
		${ECHO} "If CDROM not mounted, mount_cd9660 /dev/cd0a /cdrom; ${MAKE}"; \
		${ECHO} "If CDROM mounted to /mnt, ${MAKE} KINGDISTDIR=/mnt/linux"; \
		${FALSE}; \
	fi)

do-install:
	${RM} -f ${PLIST_SRC}
	${RPM2PKG} ${RPM2PKGARGS} ${KINGDISTDIR}/${DISTFILES}
	@${ECHO} "@exec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR}" \
		>> ${PLIST_SRC}
	${EMULDIR}/sbin/ldconfig -r ${EMULDIR} || ${TRUE}

show-shlib-type:
	@${ECHO} linux-${MACHINE_ARCH}

.include "../../mk/bsd.pkg.mk"