freebsd-ports/japanese/mtools/Makefile
Satoshi Asami e244b8bccc Fix to make ports work with bsd.port.mk rev. 1.306.
${MACHINE_ARCH}--freebsd${OSREL} is now passed to CONFIGURE_ARGS if
GNU_CONFIGURE is defined.  Take the target out of CONFIGURE_ARGS of
some ports that added it explicitly; define it as
${MACHINE_ARCH}--freebsd if the port doesn't like the ${OSREL} part;
define it as something else (such as ${MACHINE_ARCH}--freebsdelf if
the port requires that; define it as an empty string if the port
doesn't like it at all.

The last might be a sign that a GNU_CONFIGURE port actually doesn't
use GNU's version of configure at all; but I don't have time to go
look at them all, we'll fix them as time goes on.

At least we've got much fewer "-unknown-"s in the tree as the result. :)
1999-03-08 07:28:36 +00:00

49 lines
1.4 KiB
Makefile

# New ports collection makefile for: mtools + support 1232KB , Unicode LFN
# Version required: 3.6
# Date created: 6 October 1997
# Whom: WATANABE junya <junya-w@remus.dti.ne.jp>
#
# $Id: Makefile,v 1.1.1.1 1998/04/28 15:19:54 kuriyama Exp $
#
DISTNAME= mtools-3.6
PKGNAME= ja-mtools-3.6
CATEGORIES= japanese emulators
MASTER_SITES= ${MASTER_SITE_GNU} \
ftp://ports.jp.FreeBSD.org/pub/FreeBSD-jp/ports-jp/LOCAL_PORTS/
DISTFILES= mtools-3.6.tar.gz mtools-3.6.PC98.patch.gz
MAINTAINER= junya-w@remus.dti.ne.jp
EXTRACT_ONLY= mtools-3.6.tar.gz
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-xdf
CONFIGURE_TARGET= # empty
USE_GMAKE= yes
MAN1= mattrib.1 mbadblocks.1 mcd.1 mcopy.1 mdel.1 mdeltree.1 \
mdir.1 mformat.1 mkmanifest.1 mlabel.1 mmd.1 mmount.1 mmove.1 \
mrd.1 mread.1 mren.1 mtoolstest.1 mtools.1 mtype.1 mwrite.1 mzip.1
MAN5= mtools.5
ALL_TARGET= all info
post-patch:
@(cd ${WRKSRC} ; \
${GZCAT} ${DISTDIR}/mtools-3.6.PC98.patch.gz | ${PATCH} -d . >/dev/null 2>&1; \
for f in config.c mtools.5 mtools.texi; do \
${MV} $$f $$f.orig; \
${SED} -e s:/etc/mtools.conf:${PREFIX}/etc/mtools.conf: \
< $$f.orig > $$f; done ;\
)
post-install:
@install -c ${WRKSRC}/mtools.conf ${PREFIX}/etc
@if [ ! -f ${PREFIX}/info/dir ]; then \
${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
fi
@install-info ${PREFIX}/info/mtools.info ${PREFIX}/info/dir
.include <bsd.port.mk>