freebsd-ports/japanese/ng/Makefile
Rong-En Fan fcdf80ac06 - 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)
2007-02-20 16:57:51 +00:00

54 lines
1.2 KiB
Makefile

# New ports collection makefile for: Ng
# Date created: 18 November 1998
# Whom: Kawaguti Ginga <ginga@athena.club.ne.jp>
#
# $FreeBSD$
#
PORTNAME= ng
PORTVERSION= 1.4.4
CATEGORIES= japanese editors
MASTER_SITES= http://tomato.sakura.ne.jp/~amura/archives/ng/
DISTNAME= ${PORTNAME}-${PORTVERSION}
PATCH_SITES= ${MASTER_SITES}
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="${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 . )
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ng ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for file in ${MYPORTDOCS}
${INSTALL_DATA} ${WRKSRC}/docs/${file} ${DOCSDIR}/${file}.euc-jp
.endfor
.endif
.include <bsd.port.post.mk>