summaryrefslogtreecommitdiffstats
path: root/japanese/ng
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2007-02-20 16:57:51 +0000
committerrafan <rafan@FreeBSD.org>2007-02-20 16:57:51 +0000
commit0a0ee3f09f2790c678d54504cb2c845bacf95756 (patch)
tree7fd5a061637cb8c1527ac6c9ab118cde86b2f65a /japanese/ng
parent99f55ee8e9627eb41335dc50a80863b90ee1a225 (diff)
downloadFreeBSD-ports-0a0ee3f09f2790c678d54504cb2c845bacf95756.zip
FreeBSD-ports-0a0ee3f09f2790c678d54504cb2c845bacf95756.tar.gz
- Currently, MAKE_ARGS is assigned by = which can not be overwritten by slave
port (japanese/ng-canna). - Move slave port logic here. Make slave port as simple as possible. This also allows users to build this port with canna support. - Set DOCSDIR, so we can use PORTDOCS - Since we use PORTDOCS, there is only one line in pkg-plist. Convert to PLIST_FILES. PR: ports/109333 Submitted by: rafan Approved by: KAWAGUTI Ginga <ginga-freebsd at ginganet.org> (maintainer)
Diffstat (limited to 'japanese/ng')
-rw-r--r--japanese/ng/Makefile24
-rw-r--r--japanese/ng/pkg-plist10
2 files changed, 20 insertions, 14 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>
diff --git a/japanese/ng/pkg-plist b/japanese/ng/pkg-plist
deleted file mode 100644
index f59f081..0000000
--- a/japanese/ng/pkg-plist
+++ /dev/null
@@ -1,10 +0,0 @@
-bin/ng
-share/doc/ja/ng/CHANGES.1_3.euc-jp
-share/doc/ja/ng/CHANGES.doc.euc-jp
-share/doc/ja/ng/Ng.FAQ.euc-jp
-share/doc/ja/ng/Ng.doc.euc-jp
-share/doc/ja/ng/Ng.ref.euc-jp
-share/doc/ja/ng/Ng.tut.euc-jp
-share/doc/ja/ng/README.Ng.euc-jp
-share/doc/ja/ng/README.SKG.euc-jp
-@dirrm share/doc/ja/ng
OpenPOWER on IntegriCloud