svn commit: r328460 - in head/chinese: autoconvert autoconvert/files wenju
Vanilla I. Shu
vanilla at FreeBSD.org
Fri Sep 27 12:33:08 UTC 2013
Author: vanilla
Date: Fri Sep 27 12:33:07 2013
New Revision: 328460
URL: http://svnweb.freebsd.org/changeset/ports/328460
Log:
Support stage.
Added:
head/chinese/autoconvert/files/patch-autogb.c (contents, props changed)
Modified:
head/chinese/autoconvert/Makefile
head/chinese/autoconvert/files/patch-Makefile
head/chinese/wenju/Makefile
Modified: head/chinese/autoconvert/Makefile
==============================================================================
--- head/chinese/autoconvert/Makefile Fri Sep 27 12:27:55 2013 (r328459)
+++ head/chinese/autoconvert/Makefile Fri Sep 27 12:33:07 2013 (r328460)
@@ -24,7 +24,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVER
PROJECTHOST= libhz
-NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
@@ -32,8 +31,8 @@ post-patch:
post-install:
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}/
- cd ${WRKSRC}/ && ${INSTALL_DATA} ChangeLog Readme TODO Thanks Version ${DOCSDIR}/
+ ${MKDIR} ${STAGEDIR}/${DOCSDIR}
+ cd ${WRKSRC}/ && ${INSTALL_DATA} ChangeLog Readme TODO Thanks Version ${STAGEDIR}/${DOCSDIR}
.endif
.include <bsd.port.mk>
Modified: head/chinese/autoconvert/files/patch-Makefile
==============================================================================
--- head/chinese/autoconvert/files/patch-Makefile Fri Sep 27 12:27:55 2013 (r328459)
+++ head/chinese/autoconvert/files/patch-Makefile Fri Sep 27 12:33:07 2013 (r328460)
@@ -1,6 +1,6 @@
--- Makefile.orig 2001-04-28 09:45:46.000000000 +0800
-+++ Makefile 2010-06-30 10:13:29.000000000 +0800
-@@ -1,7 +1,6 @@
++++ Makefile 2013-09-27 20:16:44.000000000 +0800
+@@ -1,11 +1,10 @@
-CC=gcc
-CFLAG=-O2 -g -Wall -Iinclude
@@ -10,7 +10,12 @@
.PHONY: all hzlib clean install-home install
-@@ -30,12 +29,11 @@ install-home:
+-all: autob5 autogb hzlib xchat-plugins
++all: autob5 autogb hzlib
+
+ autob5: autogb
+ rm -f autob5;ln -s autogb autob5
+@@ -30,12 +29,9 @@ install-home:
ln -s $(HOME)/bin/autogb $(HOME)/bin/autob5
chmod 755 $(HOME)/bin/autogb
install:
@@ -23,11 +28,9 @@
- install -m 755 contrib/xchat-plugins/xchat-autob5.so $(DESTDIR)/usr/share/zh-autoconvert
- install -m 644 include/*.h $(DESTDIR)/usr/include
- ln -s autogb $(DESTDIR)/usr/bin/autob5
-+ ${BSD_INSTALL_PROGRAM} autogb $(PREFIX)/bin
-+ ${BSD_INSTALL_PROGRAM} lib/libhz.so.0.0 $(PREFIX)/lib/libhz.so.0
-+ cd $(PREFIX)/lib;ln -s libhz.so.0 libhz.so
-+ ${BSD_INSTALL_PROGRAM} lib/libhz.a $(PREFIX)/lib
-+ #${BSD_INSTALL_PROGRAM} contrib/xchat-plugins/xchat-autogb.so $(PREFIX)/share/autoconvert
-+ #${BSD_INSTALL_PROGRAM} contrib/xchat-plugins/xchat-autob5.so $(PREFIX)/share/autoconvert
-+ ${BSD_INSTALL_DATA} include/*.h $(PREFIX)/include
-+ ln -s autogb $(PREFIX)/bin/autob5
++ ${BSD_INSTALL_PROGRAM} autogb $(DESTDIR)/$(PREFIX)/bin
++ ${BSD_INSTALL_PROGRAM} lib/libhz.so.0.0 $(DESTDIR)/$(PREFIX)/lib/libhz.so.0
++ ln -sf libhz.so.0 $(DESTDIR)/$(PREFIX)//lib/libhz.so
++ ${BSD_INSTALL_PROGRAM} lib/libhz.a $(DESTDIR)/$(PREFIX)/lib
++ ${BSD_INSTALL_DATA} include/*.h $(DESTDIR)/$(PREFIX)/include
++ ln -sf autogb $(DESTDIR)/$(PREFIX)/bin/autob5
Added: head/chinese/autoconvert/files/patch-autogb.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/chinese/autoconvert/files/patch-autogb.c Fri Sep 27 12:33:07 2013 (r328460)
@@ -0,0 +1,16 @@
+--- autogb.c.orig 2013-09-27 20:12:01.000000000 +0800
++++ autogb.c 2013-09-27 20:13:53.000000000 +0800
+@@ -26,9 +26,13 @@ Boston, MA 02111-1307, USA.
+ //$Header: /home/prog/autoconvert/autogb.c,v 1.7 2001/04/23 14:18:06 ygh Exp $
+
+ #include <stdio.h>
++#include <stdlib.h>
++#include <unistd.h>
++#include <string.h>
+ #include <getopt.h>
+ #include "hz.h"
+
++extern int conv_str(char *);
+
+ /* Print help and exit */
+ void print_help(char* filename){
Modified: head/chinese/wenju/Makefile
==============================================================================
--- head/chinese/wenju/Makefile Fri Sep 27 12:27:55 2013 (r328459)
+++ head/chinese/wenju/Makefile Fri Sep 27 12:33:07 2013 (r328460)
@@ -17,7 +17,6 @@ USE_LDCONFIG= yes
OPTIONS_DEFINE= NLS
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
@@ -28,7 +27,4 @@ CONFIGURE_ARGS= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
-post-install:
- ${LOCALBASE}/bin/gtk-query-immodules-2.0 > ${PREFIX}/etc/gtk-2.0/gtk.immodules
-
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list