From 08f0bb874a88055280db2f7110296675b6c6ff00 Mon Sep 17 00:00:00 2001
From: vanilla <vanilla@FreeBSD.org>
Date: Wed, 8 Jan 2014 15:47:09 +0000
Subject: Support STAGEDIR.

Approved by:	portmgr (blanket infrastructure)
---
 chinese/bsdconv-opencc/Makefile             |  1 -
 chinese/bsdconv-opencc/files/patch-Makefile | 17 +++++++++++++++++
 chinese/bsdconv-opencc/pkg-plist            |  6 +++---
 3 files changed, 20 insertions(+), 4 deletions(-)
 create mode 100644 chinese/bsdconv-opencc/files/patch-Makefile

(limited to 'chinese/bsdconv-opencc')

diff --git a/chinese/bsdconv-opencc/Makefile b/chinese/bsdconv-opencc/Makefile
index 33e33d3f60f1..ee307f94adbe 100644
--- a/chinese/bsdconv-opencc/Makefile
+++ b/chinese/bsdconv-opencc/Makefile
@@ -21,7 +21,6 @@ GH_ACCOUNT=	buganini
 GH_PROJECT=	${PKGNAMEPREFIX}${PORTNAME}
 GH_COMMIT=	c48c74c
 
-MAKE_ARGS=	PREFIX=${PREFIX}
 NO_STAGE=	yes
 
 .include <bsd.port.mk>
diff --git a/chinese/bsdconv-opencc/files/patch-Makefile b/chinese/bsdconv-opencc/files/patch-Makefile
new file mode 100644
index 000000000000..230cd899ec1a
--- /dev/null
+++ b/chinese/bsdconv-opencc/files/patch-Makefile
@@ -0,0 +1,17 @@
+--- Makefile.orig	2013-09-20 02:35:00.000000000 +0800
++++ Makefile	2014-01-07 14:26:54.000000000 +0800
+@@ -35,9 +35,10 @@ clean:
+ 	rm -rf OPENCC OPENCC.so OPENCC-*
+ 
+ install:
++	mkdir -p $(DESTDIR)${PREFIX}/share/bsdconv/inter
+ 	for item in ${CONFIGS} ; do \
+-		install -m 444 OPENCC ${PREFIX}/share/bsdconv/inter/OPENCC-$${item} ; \
+-		install -m 444 OPENCC-$${item}.so ${PREFIX}/share/bsdconv/inter/OPENCC-$${item}.so ; \
++		install -m 444 OPENCC $(DESTDIR)${PREFIX}/share/bsdconv/inter/OPENCC-$${item} ; \
++		install -m 444 OPENCC-$${item}.so $(DESTDIR)${PREFIX}/share/bsdconv/inter/OPENCC-$${item}.so ; \
+ 	done
+-	install -m 444 OPENCC ${PREFIX}/share/bsdconv/inter/OPENCC
+-	install -m 444 OPENCC.so ${PREFIX}/share/bsdconv/inter/OPENCC.so
++	install -m 444 OPENCC $(DESTDIR)${PREFIX}/share/bsdconv/inter/OPENCC
++	install -m 444 OPENCC.so $(DESTDIR)${PREFIX}/share/bsdconv/inter/OPENCC.so
diff --git a/chinese/bsdconv-opencc/pkg-plist b/chinese/bsdconv-opencc/pkg-plist
index b56b4ec790d1..affb3e152d87 100644
--- a/chinese/bsdconv-opencc/pkg-plist
+++ b/chinese/bsdconv-opencc/pkg-plist
@@ -1,5 +1,4 @@
 share/bsdconv/inter/OPENCC
-share/bsdconv/inter/OPENCC.so
 share/bsdconv/inter/OPENCC-MIX2ZHS
 share/bsdconv/inter/OPENCC-MIX2ZHS.so
 share/bsdconv/inter/OPENCC-MIX2ZHT
@@ -9,17 +8,17 @@ share/bsdconv/inter/OPENCC-ZHS2ZHT.so
 share/bsdconv/inter/OPENCC-ZHS2ZHTW_P
 share/bsdconv/inter/OPENCC-ZHS2ZHTW_P.so
 share/bsdconv/inter/OPENCC-ZHS2ZHTW_V
+share/bsdconv/inter/OPENCC-ZHS2ZHTW_V.so
 share/bsdconv/inter/OPENCC-ZHS2ZHTW_VP
 share/bsdconv/inter/OPENCC-ZHS2ZHTW_VP.so
-share/bsdconv/inter/OPENCC-ZHS2ZHTW_V.so
 share/bsdconv/inter/OPENCC-ZHT2ZHS
 share/bsdconv/inter/OPENCC-ZHT2ZHS.so
 share/bsdconv/inter/OPENCC-ZHT2ZHTW_P
 share/bsdconv/inter/OPENCC-ZHT2ZHTW_P.so
 share/bsdconv/inter/OPENCC-ZHT2ZHTW_V
+share/bsdconv/inter/OPENCC-ZHT2ZHTW_V.so
 share/bsdconv/inter/OPENCC-ZHT2ZHTW_VP
 share/bsdconv/inter/OPENCC-ZHT2ZHTW_VP.so
-share/bsdconv/inter/OPENCC-ZHT2ZHTW_V.so
 share/bsdconv/inter/OPENCC-ZHTW2ZHCN_S
 share/bsdconv/inter/OPENCC-ZHTW2ZHCN_S.so
 share/bsdconv/inter/OPENCC-ZHTW2ZHCN_T
@@ -28,5 +27,6 @@ share/bsdconv/inter/OPENCC-ZHTW2ZHS
 share/bsdconv/inter/OPENCC-ZHTW2ZHS.so
 share/bsdconv/inter/OPENCC-ZHTW2ZHT
 share/bsdconv/inter/OPENCC-ZHTW2ZHT.so
+share/bsdconv/inter/OPENCC.so
 @dirrmtry share/bsdconv/inter
 @dirrmtry share/bsdconv
-- 
cgit