pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/mame Depend on dos2unix and run it on two fi...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8dc5fa6733c4
branches: trunk
changeset: 639757:8dc5fa6733c4
user: wiz <wiz%pkgsrc.org@localhost>
date: Wed Sep 24 20:33:31 2014 +0000
description:
Depend on dos2unix and run it on two files. From jperkin.
diffstat:
emulators/mame/Makefile.common | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (29 lines):
diff -r 941dcc0a8e7d -r 8dc5fa6733c4 emulators/mame/Makefile.common
--- a/emulators/mame/Makefile.common Wed Sep 24 20:20:49 2014 +0000
+++ b/emulators/mame/Makefile.common Wed Sep 24 20:33:31 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.16 2014/07/25 15:28:56 wiz Exp $
+# $NetBSD: Makefile.common,v 1.17 2014/09/24 20:33:31 wiz Exp $
#
# used by emulators/mame/Makefile
# used by emulators/mess/Makefile
@@ -14,6 +14,7 @@
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
+BUILD_DEPENDS+= dos2unix-[0-9]*:../../converters/dos2unix
DEPENDS+= liberation-ttf-[0-9]*:../../fonts/liberation-ttf
WRKSRC= ${WRKDIR}
@@ -64,6 +65,11 @@
post-extract:
cd ${WRKDIR} && ${.CURDIR}/../../mk/extract/extract mame.zip
rm ${WRKDIR}/mame.zip
+ # This needs to be done for every file that is patched.
+ ${RUN} for f in src/lib/web/mongoose.c src/osd/osdcore.h; do \
+ ${CP} ${WRKSRC}/$${f} ${WRKSRC}/$${f}.bak; \
+ ${CAT} ${WRKSRC}/$${f}.bak | dos2unix >${WRKSRC}/$${f}; \
+ done
.include "../../lang/python/application.mk"
.include "../../devel/GConf/buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index