1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

(1) Define WRKSRC so it actually works.

(2) The "copy extra file to ${PATCHDIR}" trick doesn't work well if
    ${PATCHDIR} doesn't exist.  Also, you need to delete the patch in
    pre-clean.  In addition, it may give problems to people who are
    trying to build this on a read-only medium.

    Solve all the above problems by calling ${PATCH_CMD} ${PATCH_ARGS}
    directly on the patch in ${FILESDIR}.  Also, make the message a
    little clearer about what's going on.
This commit is contained in:
Satoshi Asami 1997-12-13 07:01:38 +00:00
parent 707692cd3a
commit 7fde2ae65d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=9068

View File

@ -3,7 +3,7 @@
# Date created: December 05 1997
# Whom: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
#
# $Id$
# $Id: Makefile,v 1.1.1.1 1997/12/12 06:16:07 vanilla Exp $
#
DISTNAME= mlclock
@ -15,11 +15,14 @@ MAINTAINER= Nakai@Mlab.t.u-tokyo.ac.jp
USE_IMAKE= yes
NO_INSTALL_MANPAGES= yes
WRKSRC= ${WRKDIR}/mlclock
pre-patch:
.if !defined(KANJIMODE)
@${ECHO_MSG} "Japanese Kanji mode disabled....."
@${CP} ${FILESDIR}/patch-aa ${PATCHDIR}
pre-patch:
@${ECHO_MSG} "Japanese Kanji mode disabled."
@${ECHO_MSG} "Use 'make -DKANJIMODE' when compiling if you want the Japanese"
@${ECHO_MSG} "kanji mode enabled."
@${PATCH} ${PATCH_ARGS} < ${FILESDIR}/patch-aa
.endif
.include <bsd.port.mk>