aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/sj3-server/Makefile
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2008-10-27 03:35:08 +0800
committerhrs <hrs@FreeBSD.org>2008-10-27 03:35:08 +0800
commitea7159c637894a46d01fdb20e91418b3f53f6a6d (patch)
tree614fbe1d28e3b34366f554771e774bb083789905 /japanese/sj3-server/Makefile
parent7350048c2c181ea9648232fd1246c638a68affad (diff)
downloadfreebsd-ports-gnome-ea7159c637894a46d01fdb20e91418b3f53f6a6d.tar.gz
freebsd-ports-gnome-ea7159c637894a46d01fdb20e91418b3f53f6a6d.tar.zst
freebsd-ports-gnome-ea7159c637894a46d01fdb20e91418b3f53f6a6d.zip
- Separate the server part and the library part from japanese/sj3, and
remove japanese/sj3. - Use localhost as the default listen address instead of INADDR_ANY. - Add "servername" directive to serverrc. - Fix incorrect descriptions in serverrc. - Take maintainership.
Diffstat (limited to 'japanese/sj3-server/Makefile')
-rw-r--r--japanese/sj3-server/Makefile44
1 files changed, 27 insertions, 17 deletions
diff --git a/japanese/sj3-server/Makefile b/japanese/sj3-server/Makefile
index c14870168960..6a5707f46513 100644
--- a/japanese/sj3-server/Makefile
+++ b/japanese/sj3-server/Makefile
@@ -1,4 +1,4 @@
-# New ports collection makefile for: SJ3
+# New ports collection makefile for: sj3-server
# Date created: 18 Aug 1998
# Whom: Hidekazu Kuroki <hidekazu@cs.titech.ac.jp>
#
@@ -7,42 +7,52 @@
PORTNAME= sj3
PORTVERSION= 2.0.1.20
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= japanese
-MASTER_SITES= ftp://ftp.sony.co.jp/pub/unsupported/src/ \
- ftp://ftp.cs.titech.ac.jp/pub/japanese/sj3/
-MASTER_SITES+= ${MASTER_SITE_LOCAL}
-MASTER_SITE_SUBDIR= nork
+MASTER_SITES= LOCAL/nork
+PKGNAMESUFFIX= -server
PATCH_SITES= http://quasiquote.org/files/
PATCHFILES= ${PORTNAME}-qq-2.0.1.21.diff.gz
PATCH_DIST_STRIP= -p1
-MAINTAINER= hiroo+freebsd@oikumene.gcd.org
-COMMENT= A Japanese input method
+LIB_DEPENDS= sj3lib.1:${PORTSDIR}/japanese/sj3-lib
+
+MAINTAINER= hrs@FreeBSD.org
+COMMENT= A Japanese input method, binary part
USE_RC_SUBR= sj3.sh
USE_IMAKE= yes
+SUB_FILES= sj3_freebsd.tmpl
+SUB_LIST= DESTDIR=${DESTDIR}
MAN1= sj3.1 sj3dic.1 sj3mkdic.1 sj3serv.1
MANLANG= ja
MANCOMPRESSED= no
PORTDOCS= Nihongo.ps.Z hinsi.ms makedict.ms sj3lib.ms sj3serv.ms
-# NOTE : You must not use 'xmkmf -a', because the running 'make depend' caused a error.
+POSTPATCHES= ${FILESDIR}/post-patch-Imakefile \
+ ${FILESDIR}/post-patch-sj3lib-Imakefile \
+ ${FILESDIR}/post-patch-include-Const.h \
+ ${FILESDIR}/post-patch-server-setup.c \
+ ${FILESDIR}/post-patch-server-serverrc \
+ ${FILESDIR}/post-patch-server-sj3serv.h \
+ ${FILESDIR}/post-patch-server-comuni.c
+POSTPATCHES.nodocports= \
+ ${FILESDIR}/post-patch-doc-doc-Imakefile.nodocports
.include <bsd.port.pre.mk>
-pre-configure:
- ${REINPLACE_CMD} -e "\#^SJ3TOP#s#=.*#= ${PREFIX}#" \
- -e "\#^SJ3DICTDIR#s#=.*#= \\$$\(SJ3LIBDIR)/sj3/dict#" \
- -e "\#^SJ3VARRUNDIR#s#=.*#= ${DESTDIR}\\$$\(VARDIR)/run/sj3#" \
- ${WRKSRC}/sj3.tmpl
+post-patch:
+ cd ${WRKSRC} && ${CAT} ${POSTPATCHES} | ${PATCH}
+.if defined(NODOCPORTS)
+ cd ${WRKSRC} && ${CAT} ${POSTPATCHES.nodocports} | ${PATCH}
+.endif
-do-configure:
- ( cd $(WRKSRC) ; ${XMKMF} ; make Makefiles )
+pre-configure: apply-slist
+ ${INSTALL_DATA} ${WRKDIR}/sj3_freebsd.tmpl ${WRKSRC}/sj3_freebsd.tmpl
-pre-install:
+pre-su-install:
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
.include <bsd.port.post.mk>