diff options
author | leeym <leeym@FreeBSD.org> | 2003-06-27 01:09:39 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2003-06-27 01:09:39 +0800 |
commit | e6bafb2af1ebb8ff295f9a53462a3322f382924c (patch) | |
tree | dcfe503c1af1fd2f2ab0d64300bd798b84afb2e3 /chinese | |
parent | 43824e954e8cd1125175bdfd70ed22d6f46fc5db (diff) | |
download | freebsd-ports-graphics-e6bafb2af1ebb8ff295f9a53462a3322f382924c.tar.gz freebsd-ports-graphics-e6bafb2af1ebb8ff295f9a53462a3322f382924c.tar.zst freebsd-ports-graphics-e6bafb2af1ebb8ff295f9a53462a3322f382924c.zip |
add NO_WRKSUBDIR and replace WRKDIR with WRKSRC
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/gbfs/Makefile | 27 | ||||
-rw-r--r-- | chinese/gbfs/files/gbfs.sh | 2 |
2 files changed, 15 insertions, 14 deletions
diff --git a/chinese/gbfs/Makefile b/chinese/gbfs/Makefile index 37217e79319..f6d717aad6f 100644 --- a/chinese/gbfs/Makefile +++ b/chinese/gbfs/Makefile @@ -19,6 +19,7 @@ SYSDIR= /usr/src/sys KMODDIR= ${PREFIX}/modules PLIST_SUB= MSDOSFSKO=${MSDOSFSKO} USE_REINPLACE= yes +NO_WRKSUBDIR= yes .include <bsd.port.pre.mk> @@ -45,26 +46,26 @@ IGNORE= "You need to extract kernel source tree before you build this package" .endif do-extract: - @${MKDIR} ${WRKDIR}/msdos ${WRKDIR}/cd9660 ${WRKDIR}/ntfs - @${CP} ${MSDOSFSDIR}/* ${MSDOSFSKODIR}/Makefile ${WRKDIR}/msdos - @${CP} ${SYSDIR}/isofs/cd9660/* ${SYSDIR}/modules/cd9660/Makefile ${WRKDIR}/cd9660 - @${CP} ${NTFSDIR}/* ${SYSDIR}/modules/ntfs/Makefile ${WRKDIR}/ntfs - @(cd ${WRKDIR}; ${TAR} xzf ${DISTDIR}/${DISTFILES} ) - @${REINPLACE_CMD} -e "/^\.PATH/d" ${WRKDIR}/*/Makefile + @${MKDIR} ${WRKSRC}/msdos ${WRKSRC}/cd9660 ${WRKSRC}/ntfs + @${CP} ${MSDOSFSDIR}/* ${MSDOSFSKODIR}/Makefile ${WRKSRC}/msdos + @${CP} ${SYSDIR}/isofs/cd9660/* ${SYSDIR}/modules/cd9660/Makefile ${WRKSRC}/cd9660 + @${CP} ${NTFSDIR}/* ${SYSDIR}/modules/ntfs/Makefile ${WRKSRC}/ntfs + @(cd ${WRKSRC}; ${TAR} xzf ${DISTDIR}/${DISTFILES} ) + @${REINPLACE_CMD} -e "/^\.PATH/d" ${WRKSRC}/*/Makefile do-patch: - @(cd ${WRKDIR}/msdos; ${PATCH} --quiet < ${WRKDIR}/${MSDOSFSPATCH} ) - @(cd ${WRKDIR}/cd9660; ${PATCH} --quiet < ${WRKDIR}/${CD9660PATCH} ) - @(cd ${WRKDIR}/ntfs; ${PATCH} --quiet < ${WRKDIR}/${NTFSPATCH} ) + @(cd ${WRKSRC}/msdos; ${PATCH} --quiet < ${WRKSRC}/${MSDOSFSPATCH} ) + @(cd ${WRKSRC}/cd9660; ${PATCH} --quiet < ${WRKSRC}/${CD9660PATCH} ) + @(cd ${WRKSRC}/ntfs; ${PATCH} --quiet < ${WRKSRC}/${NTFSPATCH} ) do-build: - @(cd ${WRKDIR}/msdos; make all) - @(cd ${WRKDIR}/cd9660; make all) - @(cd ${WRKDIR}/ntfs; make all) + @(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} ${WRKDIR}/*/*.ko ${KMODDIR} + @${INSTALL_SCRIPT} ${WRKSRC}/*/*.ko ${KMODDIR} .include <bsd.port.post.mk> diff --git a/chinese/gbfs/files/gbfs.sh b/chinese/gbfs/files/gbfs.sh index 10846dab4f3..2eff687f8fe 100644 --- a/chinese/gbfs/files/gbfs.sh +++ b/chinese/gbfs/files/gbfs.sh @@ -32,7 +32,7 @@ stop) kldunload -v -n ntfs && echo -n ' GB-ntfs' ;; *) - echo "Usage: gbfs.sh {start|stop}" >&2 + echo "Usage: $0 {start|stop}" >&2 exit 1 ;; esac |