diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2014-05-18 18:13:32 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2014-05-18 18:13:32 +0000 |
commit | d834932b4740cb4c78832e3587e6963cc44fc458 (patch) | |
tree | 41078dbcb2b6a2b46b148455cb4e122d0b8722a0 /japanese/mtools/Makefile | |
parent | - USES=libtool. (diff) |
- Add staging support
- Convert to USES=gmake
- Don't create links in pkg-plist with @exec, they are created
during build
- Unmute install commands
Notes
Notes:
svn path=/head/; revision=354445
Diffstat (limited to '')
-rw-r--r-- | japanese/mtools/Makefile | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/japanese/mtools/Makefile b/japanese/mtools/Makefile index af3a61e0d70d..51b7e5ec4078 100644 --- a/japanese/mtools/Makefile +++ b/japanese/mtools/Makefile @@ -17,20 +17,11 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= ports@FreeBSD.org COMMENT= Tools for manipulating MSDOS files + support 1232KB , Unicode LFN +USES= gmake GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-xdf INFO= mtools -USE_GMAKE= yes - -MAN1= mattrib.1 mbadblocks.1 mcat.1 mcd.1 mcopy.1 mdel.1 mdeltree.1 \ - mdir.1 mdu.1 mformat.1 mkmanifest.1 mlabel.1 mmd.1 mmount.1 \ - mmove.1 mpartition.1 mrd.1 mread.1 mren.1 mshowfat.1 \ - mtoolstest.1 mtools.1 mtype.1 mzip.1 -MAN5= mtools.5 -MLINKS= mcopy.1 mwrite.1 - -NO_STAGE= yes post-patch: @cd ${WRKSRC}; \ ${GZCAT} ${DISTDIR}/mtools-3.9.6.PC98.patch.gz | ${PATCH} -d . >/dev/null 2>&1; \ @@ -41,11 +32,16 @@ post-patch: @cd ${WRKSRC}/scripts; for f in ocopy xcopy; do \ if [ ! -f $$f -a -f $$f.orig ]; then ${CP} -p $$f.orig $$f ; fi \ done + @${REINPLACE_CMD} -E -e 's,MAN(1|5)DIR),DESTDIR)$$(&,' \ + -e '/(INSTALL|LN_S|mkinstalldirs)/ s,(bin|info)dir,DESTDIR)$$(&,g' \ + ${WRKSRC}/Makefile.in post-install: @# mwrite has been removed by author, but we'll keep it just a bit longer - @${LN} -sf ${PREFIX}/bin/mtools ${PREFIX}/bin/mwrite - @${INSTALL_DATA} ${WRKSRC}/mtools.conf ${PREFIX}/etc + ${LN} -sf ${PREFIX}/bin/mtools ${STAGEDIR}${PREFIX}/bin/mwrite + ${LN} -sf ${PREFIX}/man/man1/mcopy.1.gz \ + ${STAGEDIR}${PREFIX}/man/man1/mwrite.1.gz + ${INSTALL_DATA} ${WRKSRC}/mtools.conf ${STAGEDIR}${PREFIX}/etc @${ECHO} "Please verify ${PREFIX}/etc/mtools.conf for your machine." .include <bsd.port.mk> |