svn commit: r320720 - in head/korean/hmconv: . files
Jung-uk Kim
jkim at FreeBSD.org
Wed Jun 12 19:26:47 UTC 2013
Author: jkim
Date: Wed Jun 12 19:26:46 2013
New Revision: 320720
URL: http://svnweb.freebsd.org/changeset/ports/320720
Log:
- Fix build with Clang.
- Modernize the port, e.g., trim makefile header.
Added:
head/korean/hmconv/files/patch-hmconv1.0pl3.c (contents, props changed)
Deleted:
head/korean/hmconv/files/Makefile
head/korean/hmconv/files/patch-aa
head/korean/hmconv/pkg-plist
Modified:
head/korean/hmconv/Makefile
Modified: head/korean/hmconv/Makefile
==============================================================================
--- head/korean/hmconv/Makefile Wed Jun 12 19:23:38 2013 (r320719)
+++ head/korean/hmconv/Makefile Wed Jun 12 19:26:46 2013 (r320720)
@@ -1,12 +1,9 @@
-# New ports collection makefile for: hmconv
-# Date created: 31 Mar 1997
-# Whom: Choi Jun Ho <junker at jazz.snu.ac.kr>
-#
+# Created by: CHOI Junho <cjh at FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= hmconv
PORTVERSION= 1.0.3
+PORTREVISION= 1
CATEGORIES= korean mail
MASTER_SITES= ftp://ftp.kr.FreeBSD.org/pub/FreeBSD-kr/distfiles/ \
ftp://ftp.kreonet.re.kr/pub/hangul/cair-archive/code/hmconv/
@@ -15,13 +12,26 @@ DISTNAME= hmconv1.0pl3
MAINTAINER= ports at FreeBSD.org
COMMENT= Hangul code conversion utility for E-mail
-WRKSRC= ${WRKDIR}/hmconv
+PLIST_FILES= bin/hmailedit bin/hmconv
+PORTDOCS= CHANGES README*
+WRKSRC= ${WRKDIR}/${PORTNAME}
-pre-build:
- @${CP} ${FILESDIR}/Makefile ${WRKSRC}
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|^HEDITOR=.*|HEDITOR=$$EDITOR|' \
+ ${WRKSRC}/hmailedit
+
+do-build:
+ ${CC} ${CFLAGS} -o ${WRKSRC}/hmconv ${WRKSRC}/hmconv1.0pl3.c
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/hmconv ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/hmailedit ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/hmconv ${PREFIX}/bin
+.if ${PORT_OPTIONS:MDOCS}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${DOCSDIR}
+.endif
.include <bsd.port.mk>
Added: head/korean/hmconv/files/patch-hmconv1.0pl3.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/korean/hmconv/files/patch-hmconv1.0pl3.c Wed Jun 12 19:26:46 2013 (r320720)
@@ -0,0 +1,27 @@
+--- hmconv1.0pl3.c.orig 1996-07-22 23:16:14.000000000 -0400
++++ hmconv1.0pl3.c 2013-06-12 14:24:05.000000000 -0400
+@@ -46,6 +46,7 @@
+
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+
+ #define isksc(c) ( (unsigned char) (c) > (unsigned char) '\240' && \
+@@ -125,6 +126,7 @@
+ }
+
+ #ifndef KNR
++int
+ main (int argc, char **argv)
+ #else
+ main (argc,argv)
+@@ -208,7 +210,7 @@
+
+ if ( !ishangul) { /* KSC 5601 doesn't appear, yet */
+ fputs((char *) line,out); /* no conversion */
+- return;
++ return(0);
+ }
+
+
More information about the svn-ports-head
mailing list