summaryrefslogtreecommitdiff
path: root/cross/freemint-mintbin/patches
diff options
context:
space:
mode:
authorryoon <ryoon>2013-09-16 04:47:42 +0000
committerryoon <ryoon>2013-09-16 04:47:42 +0000
commit43107bb9899c213e6111855d572e0da27d13a0f3 (patch)
tree269e5b20366f18b256105a55b3a05f9ae7848572 /cross/freemint-mintbin/patches
parent55dc0fc04b49f795a3383d4260eddc43e3b54916 (diff)
downloadpkgsrc-43107bb9899c213e6111855d572e0da27d13a0f3.tar.gz
Fix install error and install a locale file.
Pointed out by joerg@, Thank you.
Diffstat (limited to 'cross/freemint-mintbin/patches')
-rw-r--r--cross/freemint-mintbin/patches/patch-po_Makefile.in.in28
-rw-r--r--cross/freemint-mintbin/patches/patch-src_Makefile.in14
2 files changed, 42 insertions, 0 deletions
diff --git a/cross/freemint-mintbin/patches/patch-po_Makefile.in.in b/cross/freemint-mintbin/patches/patch-po_Makefile.in.in
new file mode 100644
index 00000000000..9f37fcb4cab
--- /dev/null
+++ b/cross/freemint-mintbin/patches/patch-po_Makefile.in.in
@@ -0,0 +1,28 @@
+$NetBSD: patch-po_Makefile.in.in,v 1.1 2013/09/16 04:47:43 ryoon Exp $
+
+* Add DESTDIR support.
+* Install a locale file.
+
+--- po/Makefile.in.in.orig 2011-05-27 17:41:39.000000000 +0000
++++ po/Makefile.in.in
+@@ -111,16 +111,16 @@ install-data: install-data-@USE_NLS@
+ install-data-no: all
+ install-data-yes: all
+ if test -r "$(MKINSTALLDIRS)"; then \
+- $(MKINSTALLDIRS) $(datadir); \
++ $(MKINSTALLDIRS) ${DESTDIR}$(datadir); \
+ else \
+- $(SHELL) $(top_srcdir)/mkinstalldirs $(datadir); \
++ $(SHELL) $(top_srcdir)/mkinstalldirs ${DESTDIR}$(datadir); \
+ fi
+ @catalogs='$(CATALOGS)'; \
+ for cat in $$catalogs; do \
+ cat=`basename $$cat`; \
+ case "$$cat" in \
+- *.gmo) destdir=$(gnulocaledir);; \
+- *) destdir=$(localedir);; \
++ *.gmo) destdir=${DESTDIR}$(gnulocaledir);; \
++ *) destdir=${DESTDIR}$(localedir);; \
+ esac; \
+ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+ dir=$$destdir/$$lang/LC_MESSAGES; \
diff --git a/cross/freemint-mintbin/patches/patch-src_Makefile.in b/cross/freemint-mintbin/patches/patch-src_Makefile.in
new file mode 100644
index 00000000000..f19c4e10abf
--- /dev/null
+++ b/cross/freemint-mintbin/patches/patch-src_Makefile.in
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_Makefile.in,v 1.1 2013/09/16 04:47:43 ryoon Exp $
+
+* Do not create hardlinks for m68k-atari-mint-*.
+
+--- src/Makefile.in.orig 2011-05-27 17:41:39.000000000 +0000
++++ src/Makefile.in
+@@ -420,7 +420,6 @@ install-exec-local:
+ $(mkinstalldirs) $(DESTDIR)$(nativebindir) || exit 1; \
+ for prog in $(bin_PROGRAMS); do \
+ iprog=`echo $$prog | sed '$(transform)'`; \
+- ln $(DESTDIR)$(bindir)/$$iprog $(DESTDIR)$(nativebindir)/$$iprog >/dev/null 2>/dev/null \
+ || $(INSTALL_PROGRAM) $$prog $(DESTDIR)$(nativebindir)/$$iprog ; \
+ done; \
+ fi