diff options
author | ijliao <ijliao@FreeBSD.org> | 2002-05-25 00:21:33 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2002-05-25 00:21:33 +0800 |
commit | 1f6b6759a47363ea2ad142f190639cf4320d8865 (patch) | |
tree | 86358d2439e490e8c169832768e003523ddc3451 /chinese/gbfs/Makefile | |
parent | 74b9f2cc83cea5282457fe015cd9baefa59c3af7 (diff) | |
download | freebsd-ports-gnome-1f6b6759a47363ea2ad142f190639cf4320d8865.tar.gz freebsd-ports-gnome-1f6b6759a47363ea2ad142f190639cf4320d8865.tar.zst freebsd-ports-gnome-1f6b6759a47363ea2ad142f190639cf4320d8865.zip |
add zh-gbfs 1.0
Reads GB2312 filenames on Joliet and VFAT filesystems
PR: 38513
Submitted by: Statue <statue@softwareliberty.org>
Diffstat (limited to 'chinese/gbfs/Makefile')
-rw-r--r-- | chinese/gbfs/Makefile | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/chinese/gbfs/Makefile b/chinese/gbfs/Makefile new file mode 100644 index 000000000000..d3d43cc6783c --- /dev/null +++ b/chinese/gbfs/Makefile @@ -0,0 +1,78 @@ +# New ports collection makefile for: zh-gbfs +# Date created: Oct 13, 2000 +# Whom: statue@freebsd.sinica.edu.tw +# +# $FreeBSD$ +# + +PORTNAME= gbfs +PORTVERSION= 1.0 +CATEGORIES= chinese +MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/statue/gbfs/ \ + ftp://ftp.gnuchina.org/incoming/zhBSD/ + +MAINTAINER= statue@freebsd.sinica.edu.tw + +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} > 500027 +MSDOSFSDIR= ${SYSDIR}/fs/msdosfs +MSDOSFSKO= msdosfs.ko +MSDOSFSKODIR= ${SYSDIR}/modules/msdosfs +.elif ${OSVERSION} > 500018 && ${OSVERSION} < 500027 +MSDOSFSDIR= ${SYSDIR}/fs/msdosfs +MSDOSFSKO= msdosfs.ko +MSDOSFSKODIR= ${SYSDIR}/modules/msdosfs +.elif ${OSVERSION} <= 500018 && ${OSVERSION} < 440001 +MSDOSFSDIR= ${SYSDIR}/msdosfs +MSDOSFSKO= msdos.ko +MSDOSFSKODIR= ${SYSDIR}/modules/msdos +.else +MSDOSFSDIR= ${SYSDIR}/msdosfs +MSDOSFSKO= msdos.ko +MSDOSFSKODIR= ${SYSDIR}/modules/msdos +.endif + +pre-extract: + @if [ ! -d /sys -o ! -d /usr/src/sys ]; then \ + ${ECHO_CMD} "****************************************" ; \ + ${ECHO_CMD} " You need to extract kernel source tree" ; \ + ${ECHO_CMD} " before you build this package..." ; \ + ${ECHO_CMD} "****************************************" ; \ + ${FALSE} ; \ + fi + +do-extract: + @${MKDIR} ${WRKDIR}/msdos ${WRKDIR}/cd9660 + @${CP} -R ${MSDOSFSDIR}/*.[ch] ${WRKDIR}/msdos + @${CP} ${MSDOSFSKODIR}/Makefile ${WRKDIR}/msdos/Makefile.ori + @${CP} -R ${SYSDIR}/isofs/cd9660/*.[ch] ${WRKDIR}/cd9660 + @${CP} ${SYSDIR}/modules/cd9660/Makefile ${WRKDIR}/cd9660/Makefile.ori + @(cd ${WRKDIR}; ${TAR} xzf ${DISTDIR}/${DISTFILES} ) + @${SED} -e 's,@@PREFIX@@,${PREFIX},' ${FILESDIR}/gbfs.sh > ${WRKDIR}/gbfs.sh + +do-patch: + (cd ${WRKDIR}/msdos; ${PATCH} --quiet < ${WRKDIR}/msdosfs.diff ) + @${SED} -e "/^\.PATH/d" ${WRKDIR}/msdos/Makefile.ori > ${WRKDIR}/msdos/Makefile + (cd ${WRKDIR}/cd9660; ${PATCH} --quiet < ${WRKDIR}/cd9660.diff ) + @${SED} -e "/^\.PATH/d" ${WRKDIR}/cd9660/Makefile.ori > ${WRKDIR}/cd9660/Makefile + +do-build: + @(cd ${WRKDIR}/msdos; make all) + @(cd ${WRKDIR}/cd9660; make all) + +pre-install: + @${MKDIR} ${KMODDIR} + +do-install: + @${INSTALL_SCRIPT} ${WRKDIR}/gbfs.sh ${PREFIX}/etc/rc.d + @${INSTALL_SCRIPT} ${WRKDIR}/msdos/${MSDOSFSKO} ${KMODDIR}/${MSDOSFSKO} + @${INSTALL_SCRIPT} ${WRKDIR}/cd9660/cd9660.ko ${KMODDIR}/cd9660.ko + +.include <bsd.port.post.mk> |