summaryrefslogtreecommitdiffstats
path: root/japanese/ng/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/ng/Makefile')
-rw-r--r--japanese/ng/Makefile24
1 files changed, 20 insertions, 4 deletions
diff --git a/japanese/ng/Makefile b/japanese/ng/Makefile
index 460aa77..e0670f2 100644
--- a/japanese/ng/Makefile
+++ b/japanese/ng/Makefile
@@ -17,11 +17,27 @@ PATCHFILES= ng-1.4.4-replace_bug.patch
MAINTAINER?= ginga-freebsd@ginganet.org
COMMENT?= A very light Emacs-clone with Japanese support
-MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LIBS="-ltermcap"
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LIBS="${LIBS}"
+LIBS= -ltermcap
+
ALL_TARGET= ng
+DOCSDIR= ${PREFIX}/share/doc/ja/${PORTNAME}
+
MYPORTDOCS= CHANGES.1_3 CHANGES.doc Ng.FAQ Ng.doc Ng.ref Ng.tut \
README.Ng README.SKG
+PORTDOCS= ${MYPORTDOCS:C/$/.euc-jp/}
+
+PLIST_FILES= bin/ng
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_CANNA)
+LIB_DEPENDS+= canna.1:${PORTSDIR}/japanese/Canna
+
+CFLAGS+= -I${LOCALBASE}/include -DCANNA
+LIBS+= -L${LOCALBASE}/lib -lcanna
+.endif
post-patch:
@(cd ${WRKSRC}; ${LN} -sf sys/bsd/Makefile . )
@@ -29,10 +45,10 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ng ${PREFIX}/bin
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ja/ng
+ ${MKDIR} ${DOCSDIR}
.for file in ${MYPORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/docs/${file} ${PREFIX}/share/doc/ja/ng/${file}.euc-jp
+ ${INSTALL_DATA} ${WRKSRC}/docs/${file} ${DOCSDIR}/${file}.euc-jp
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud