blob: 1e9fc59e0780926f97a03f5e1ba107fb84c71e27 (
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
|
# New ports collection makefile for: zh-gbfs
# Date created: Oct 13, 2000
# Whom: statue@freebsd.sinica.edu.tw
#
# $FreeBSD$
#
PORTNAME= gbfs
PORTVERSION= 1.4
CATEGORIES= chinese
MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/statue/gbfs/
MAINTAINER= statue@freebsd.sinica.edu.tw
COMMENT= Reads GB2312 filenames on Joliet and VFAT filesystems
NO_PACKAGE= "Different versions definitely cause crash"
SYSDIR= /usr/src/sys
KMODDIR= ${PREFIX}/modules
PLIST_SUB= MSDOSFSKO=${MSDOSFSKO}
USE_REINPLACE= yes
NO_WRKSUBDIR= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500000
MSDOSFSDIR= ${SYSDIR}/fs/msdosfs
MSDOSFSKO= msdosfs.ko
MSDOSFSKODIR= ${SYSDIR}/modules/msdosfs
MSDOSFSPATCH= msdosfs.diff.5
CD9660PATCH= cd9660.diff.5
NTFSDIR= ${SYSDIR}/fs/ntfs
NTFSPATCH= ntfs.diff.5
.else
MSDOSFSDIR= ${SYSDIR}/msdosfs
MSDOSFSKO= msdos.ko
MSDOSFSKODIR= ${SYSDIR}/modules/msdos
MSDOSFSPATCH= msdosfs.diff
CD9660PATCH= cd9660.diff
NTFSDIR= ${SYSDIR}/ntfs
NTFSPATCH= ntfs.diff
.endif
.if !exists (${SYSDIR})
IGNORE= "You need to extract kernel source tree before you build this package"
.endif
do-extract:
@${MKDIR} ${WRKSRC}/msdos ${WRKSRC}/cd9660 ${WRKSRC}/ntfs
@${CP} -r ${MSDOSFSDIR}/* ${MSDOSFSKODIR}/Makefile ${WRKSRC}/msdos
@${CP} -r ${SYSDIR}/isofs/cd9660/* ${SYSDIR}/modules/cd9660/Makefile ${WRKSRC}/cd9660
@${CP} -r ${NTFSDIR}/* ${SYSDIR}/modules/ntfs/Makefile ${WRKSRC}/ntfs
@(cd ${WRKSRC}; ${TAR} xzf ${DISTDIR}/${DISTFILES} )
@${REINPLACE_CMD} -e "/^\.PATH/d" ${WRKSRC}/*/Makefile
do-patch:
@(cd ${WRKSRC}/msdos; ${PATCH} --quiet < ${WRKSRC}/${MSDOSFSPATCH} )
@(cd ${WRKSRC}/cd9660; ${PATCH} --quiet < ${WRKSRC}/${CD9660PATCH} )
@(cd ${WRKSRC}/ntfs; ${PATCH} --quiet < ${WRKSRC}/${NTFSPATCH} )
do-build:
@(cd ${WRKSRC}/msdos; make all)
@(cd ${WRKSRC}/cd9660; make all)
@(cd ${WRKSRC}/ntfs; make all)
do-install:
@${MKDIR} ${KMODDIR}
@${INSTALL_SCRIPT} ${FILESDIR}/gbfs.sh ${PREFIX}/etc/rc.d
@${INSTALL_SCRIPT} ${WRKSRC}/*/*.ko ${KMODDIR}
.include <bsd.port.post.mk>
|