aboutsummaryrefslogtreecommitdiffstats
path: root/converters/bsdconv/files/patch-Makefile
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-05-15 23:52:10 +0800
committervanilla <vanilla@FreeBSD.org>2014-05-15 23:52:10 +0800
commitc60a5016cc7ed24166c0e09eb0dfc4b46cadb835 (patch)
treefd2ba4fa8827427f547cfed894b7acfd5b811d53 /converters/bsdconv/files/patch-Makefile
parentde5cdc0eac8e5d3ae631480312dd8856512270d5 (diff)
downloadfreebsd-ports-gnome-c60a5016cc7ed24166c0e09eb0dfc4b46cadb835.tar.gz
freebsd-ports-gnome-c60a5016cc7ed24166c0e09eb0dfc4b46cadb835.tar.zst
freebsd-ports-gnome-c60a5016cc7ed24166c0e09eb0dfc4b46cadb835.zip
Support STAGEDIR.
Approved by: portmgr@
Diffstat (limited to 'converters/bsdconv/files/patch-Makefile')
-rw-r--r--converters/bsdconv/files/patch-Makefile92
1 files changed, 87 insertions, 5 deletions
diff --git a/converters/bsdconv/files/patch-Makefile b/converters/bsdconv/files/patch-Makefile
index 86d905d2a090..150a851b6205 100644
--- a/converters/bsdconv/files/patch-Makefile
+++ b/converters/bsdconv/files/patch-Makefile
@@ -1,8 +1,8 @@
---- Makefile.orig 2012-08-16 22:36:27.000000000 +0800
-+++ Makefile 2012-08-16 22:36:47.000000000 +0800
-@@ -3,17 +3,9 @@
+--- Makefile.orig 2013-09-16 12:15:40.000000000 +0800
++++ Makefile 2014-05-15 23:43:23.541980613 +0800
+@@ -3,17 +3,9 @@ BSDCONV_PATH?=${PREFIX}
CFLAGS+=-Wall -DPREFIX='"${PREFIX}"' -DBSDCONV_PATH='"${BSDCONV_PATH}"'
- SHLIBVER=7
+ SHLIBVER=11
-UNAME_S=$(shell uname -s)
-ifeq (${UNAME_S}, Darwin)
@@ -16,4 +16,86 @@
-LIBS+=-ldl
-endif
- TODO_CODECS_BASIC_TABLE=
+ TODO_CODECS_BASIC=
+ TODO_CODECS_BASIC+=from/00
+@@ -174,12 +166,12 @@ builddir:
+ mkdir -p build/share/bsdconv/to
+
+ installdir:
+- mkdir -p ${PREFIX}/bin
+- mkdir -p ${PREFIX}/lib
+- mkdir -p ${PREFIX}/include
+- mkdir -p ${PREFIX}/share/bsdconv/from
+- mkdir -p ${PREFIX}/share/bsdconv/inter
+- mkdir -p ${PREFIX}/share/bsdconv/to
++ mkdir -p ${DESTDIR}${PREFIX}/bin
++ mkdir -p ${DESTDIR}${PREFIX}/lib
++ mkdir -p ${DESTDIR}${PREFIX}/include
++ mkdir -p ${DESTDIR}${PREFIX}/share/bsdconv/from
++ mkdir -p ${DESTDIR}${PREFIX}/share/bsdconv/inter
++ mkdir -p ${DESTDIR}${PREFIX}/share/bsdconv/to
+
+ libbsdconv: builddir src/libbsdconv.c src/bsdconv.h
+ $(CC) ${CFLAGS} src/libbsdconv.c -fPIC -shared -o build/lib/${SHLIBNAME} ${LIBS}
+@@ -238,41 +230,41 @@ clean:
+ install: installdir install_main install_basic install_chinese install_ebcdic
+
+ install_main:
+- install -m 555 build/bin/bsdconv ${PREFIX}/bin
+- install -m 555 build/bin/bsdconv-man ${PREFIX}/bin
+- install -m 555 build/bin/bsdconv-mktable ${PREFIX}/bin
+- install -m 555 build/bin/bsdconv-completion ${PREFIX}/bin
+- install -m 444 build/include/bsdconv.h ${PREFIX}/include
+- install -m 444 build/lib/${SHLIBNAME} ${PREFIX}/lib
+- install -m 444 build/share/bsdconv/from/alias ${PREFIX}/share/bsdconv/from/alias
+- install -m 444 build/share/bsdconv/inter/alias ${PREFIX}/share/bsdconv/inter/alias
+- install -m 444 build/share/bsdconv/to/alias ${PREFIX}/share/bsdconv/to/alias
++ install -m 555 build/bin/bsdconv ${DESTDIR}${PREFIX}/bin
++ install -m 555 build/bin/bsdconv-man ${DESTDIR}${PREFIX}/bin
++ install -m 555 build/bin/bsdconv-mktable ${DESTDIR}${PREFIX}/bin
++ install -m 555 build/bin/bsdconv-completion ${DESTDIR}${PREFIX}/bin
++ install -m 444 build/include/bsdconv.h ${DESTDIR}${PREFIX}/include
++ install -m 444 build/lib/${SHLIBNAME} ${DESTDIR}${PREFIX}/lib
++ install -m 444 build/share/bsdconv/from/alias ${DESTDIR}${PREFIX}/share/bsdconv/from/alias
++ install -m 444 build/share/bsdconv/inter/alias ${DESTDIR}${PREFIX}/share/bsdconv/inter/alias
++ install -m 444 build/share/bsdconv/to/alias ${DESTDIR}${PREFIX}/share/bsdconv/to/alias
+ if [ ${SHLIBNAME} != libbsdconv.so ]; then \
+- ln -sf libbsdconv.so.${SHLIBVER} ${PREFIX}/lib/libbsdconv.so ; \
++ ln -sf libbsdconv.so.${SHLIBVER} ${DESTDIR}${PREFIX}/lib/libbsdconv.so ; \
+ fi
+
+ install_doc:
+- install -m 555 build/bin/bsdconv-man ${PREFIX}/bin
++ install -m 555 build/bin/bsdconv-man ${DESTDIR}${PREFIX}/bin
+
+ install_basic:
+ for item in ${TODO_CODECS_BASIC} ; do \
+- install -m 444 build/share/bsdconv/$${item} ${PREFIX}/share/bsdconv/$${item} ; \
+- if [ -e build/share/bsdconv/$${item}.man ]; then install -m 444 build/share/bsdconv/$${item}.man ${PREFIX}/share/bsdconv/$${item}.man ; fi ; \
+- if [ -e build/share/bsdconv/$${item}.so ]; then install -m 444 build/share/bsdconv/$${item}.so ${PREFIX}/share/bsdconv/$${item}.so ; fi ; \
++ install -m 444 build/share/bsdconv/$${item} ${DESTDIR}${PREFIX}/share/bsdconv/$${item} ; \
++ if [ -e build/share/bsdconv/$${item}.man ]; then install -m 444 build/share/bsdconv/$${item}.man ${DESTDIR}${PREFIX}/share/bsdconv/$${item}.man ; fi ; \
++ if [ -e build/share/bsdconv/$${item}.so ]; then install -m 444 build/share/bsdconv/$${item}.so ${DESTDIR}${PREFIX}/share/bsdconv/$${item}.so ; fi ; \
+ done
+
+ install_chinese:
+ for item in ${TODO_CODECS_CHINESE} ; do \
+- install -m 444 build/share/bsdconv/$${item} ${PREFIX}/share/bsdconv/$${item} ; \
+- if [ -e build/share/bsdconv/$${item}.man ]; then install -m 444 build/share/bsdconv/$${item}.man ${PREFIX}/share/bsdconv/$${item}.man ; fi ; \
+- if [ -e build/share/bsdconv/$${item}.so ]; then install -m 444 build/share/bsdconv/$${item}.so ${PREFIX}/share/bsdconv/$${item}.so ; fi ; \
++ install -m 444 build/share/bsdconv/$${item} ${DESTDIR}${PREFIX}/share/bsdconv/$${item} ; \
++ if [ -e build/share/bsdconv/$${item}.man ]; then install -m 444 build/share/bsdconv/$${item}.man ${DESTDIR}${PREFIX}/share/bsdconv/$${item}.man ; fi ; \
++ if [ -e build/share/bsdconv/$${item}.so ]; then install -m 444 build/share/bsdconv/$${item}.so ${DESTDIR}${PREFIX}/share/bsdconv/$${item}.so ; fi ; \
+ done
+
+ install_ebcdic:
+ for item in ${TODO_CODECS_EBCDIC} ; do \
+- install -m 444 build/share/bsdconv/$${item} ${PREFIX}/share/bsdconv/$${item} ; \
+- if [ -e build/share/bsdconv/$${item}.man ]; then install -m 444 build/share/bsdconv/$${item}.man ${PREFIX}/share/bsdconv/$${item}.man ; fi ; \
+- if [ -e build/share/bsdconv/$${item}.so ]; then install -m 444 build/share/bsdconv/$${item}.so ${PREFIX}/share/bsdconv/$${item}.so ; fi ; \
++ install -m 444 build/share/bsdconv/$${item} ${DESTDIR}${PREFIX}/share/bsdconv/$${item} ; \
++ if [ -e build/share/bsdconv/$${item}.man ]; then install -m 444 build/share/bsdconv/$${item}.man ${DESTDIR}${PREFIX}/share/bsdconv/$${item}.man ; fi ; \
++ if [ -e build/share/bsdconv/$${item}.so ]; then install -m 444 build/share/bsdconv/$${item}.so ${DESTDIR}${PREFIX}/share/bsdconv/$${item}.so ; fi ; \
+ done
+
+ plist: