diff options
Diffstat (limited to 'chinese/big5fs/Makefile')
-rw-r--r-- | chinese/big5fs/Makefile | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/chinese/big5fs/Makefile b/chinese/big5fs/Makefile new file mode 100644 index 000000000000..9f7d2fdc6fb0 --- /dev/null +++ b/chinese/big5fs/Makefile @@ -0,0 +1,56 @@ +# New ports collection makefile for: zh-big5fs +# Date created: Oct 13, 2000 +# Whom: keith@freebsd.sinica.edu.tw +# +# $FreeBSD$ +# + +PORTNAME= big5fs +PORTVERSION= 1.0 +CATEGORIES= chinese +MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/keith/ + +MAINTAINER= keith@freebsd.sinica.edu.tw + +NO_PACKAGE= "Different versions definitely cause crash" + +SYSDIR= /usr/src/sys +KMODDIR= ${PREFIX}/modules + +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 + @${CP} -R ${SYSDIR}/msdosfs/*.[ch] ${WRKDIR}/msdos + @${CP} ${SYSDIR}/modules/msdos/Makefile ${WRKDIR}/msdos/Makefile.orig + @${CP} -R ${SYSDIR}/isofs/cd9660/*.[ch] ${WRKDIR}/cd9660 + @${CP} ${SYSDIR}/modules/cd9660/Makefile ${WRKDIR}/cd9660/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 + @(cd ${WRKDIR}/msdos; ${PATCH} < ${WRKDIR}/VFATBig5.diff ) + @(cd ${WRKDIR}/cd9660; ${PATCH} < ${WRKDIR}/JolietBig5.diff ) + +do-build: + @(cd ${WRKDIR}/msdos; make all) + @(cd ${WRKDIR}/cd9660; make all) + +pre-install: + @${MKDIR} ${KMODDIR} + +do-install: + @${INSTALL_SCRIPT} ${WRKDIR}/big5fs.sh ${PREFIX}/etc/rc.d + @${INSTALL_SCRIPT} ${WRKDIR}/msdos/msdos.ko ${KMODDIR}/big5msdos.ko + @${INSTALL_SCRIPT} ${WRKDIR}/cd9660/cd9660.ko ${KMODDIR}/big5cd9660.ko + +.include <bsd.port.mk> |