blob: baa5a7d95a405f56263836bc7ee3bcb97b823d1f (
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
76
77
78
|
# New ports collection makefile for: zh-big5fs
# Date created: Oct 13, 2000
# Whom: keith@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= big5fs
PORTVERSION= 2.1
PORTREVISION= 1
CATEGORIES= chinese
MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/keith/
MAINTAINER= keith@FreeBSD.org
NO_PACKAGE= "Different versions definitely cause crash"
SYSDIR= /usr/src/sys
KMODDIR= ${PREFIX}/modules
PLIST_SUB= MSDOSFSKO=${MSDOSFSKO}
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 500018
MSDOSFSDIR= ${SYSDIR}/fs/msdosfs
MSDOSFSKO= msdosfs.ko
MSDOSFSKODIR= ${SYSDIR}/modules/msdosfs
NTFSDIR= ${SYSDIR}/fs/ntfs
.else
MSDOSFSDIR= ${SYSDIR}/msdosfs
MSDOSFSKO= msdos.ko
MSDOSFSKODIR= ${SYSDIR}/modules/msdos
NTFSDIR= ${SYSDIR}/ntfs
.endif
pre-extract:
@if [ ! -d /sys -o ! -d /usr/src/sys ]; then \
${ECHO} "****************************************" ; \
${ECHO} " You need to extract kernel source tree" ; \
${ECHO} " before you build this package..." ; \
${ECHO} "****************************************" ; \
${FALSE} ; \
fi
do-extract:
@${MKDIR} ${WRKDIR}/msdos ${WRKDIR}/cd9660 ${WRKDIR}/ntfs
@${CP} -R ${MSDOSFSDIR}/*.[ch] ${WRKDIR}/msdos
@${CP} ${MSDOSFSKODIR}/Makefile ${WRKDIR}/msdos/Makefile.orig
@${CP} -R ${SYSDIR}/isofs/cd9660/*.[ch] ${WRKDIR}/cd9660
@${CP} ${SYSDIR}/modules/cd9660/Makefile ${WRKDIR}/cd9660/Makefile.orig
@${CP} -R ${NTFSDIR}/*.[ch] ${WRKDIR}/ntfs
@${CP} ${SYSDIR}/modules/ntfs/Makefile ${WRKDIR}/ntfs/Makefile.orig
@(cd ${WRKDIR}; ${TAR} xzf ${DISTDIR}/${DISTFILES} )
@${SED} -e 's,@@PREFIX@@,${PREFIX},' ${FILESDIR}/big5fs.sh > ${WRKDIR}/big5fs.sh
do-patch:
@${SED} -e "/^\.PATH/d" ${WRKDIR}/msdos/Makefile.orig > ${WRKDIR}/msdos/Makefile
@${SED} -e "/^\.PATH/d" ${WRKDIR}/cd9660/Makefile.orig > ${WRKDIR}/cd9660/Makefile
@${SED} -e "/^\.PATH/d" ${WRKDIR}/ntfs/Makefile.orig > ${WRKDIR}/ntfs/Makefile
@(cd ${WRKDIR}/msdos; ${PATCH} --quiet < ${WRKDIR}/msdos_big5.diff )
@(cd ${WRKDIR}/cd9660; ${PATCH} --quiet < ${WRKDIR}/cd9660_big5.diff )
@(cd ${WRKDIR}/ntfs; ${PATCH} --quiet < ${WRKDIR}/ntfs_big5.diff )
do-build:
@(cd ${WRKDIR}/msdos; make all)
@(cd ${WRKDIR}/cd9660; make all)
@(cd ${WRKDIR}/ntfs; make all)
pre-install:
@${MKDIR} ${KMODDIR}
do-install:
@${INSTALL_SCRIPT} ${WRKDIR}/big5fs.sh ${PREFIX}/etc/rc.d
@${INSTALL_SCRIPT} ${WRKDIR}/msdos/${MSDOSFSKO} ${KMODDIR}/${MSDOSFSKO}
@${INSTALL_SCRIPT} ${WRKDIR}/cd9660/cd9660.ko ${KMODDIR}/cd9660.ko
@${INSTALL_SCRIPT} ${WRKDIR}/ntfs/ntfs.ko ${KMODDIR}/ntfs.ko
.include <bsd.port.post.mk>
|