summaryrefslogtreecommitdiff
path: root/editors/ng
diff options
context:
space:
mode:
authorwiz <wiz>2012-02-12 14:12:19 +0000
committerwiz <wiz>2012-02-12 14:12:19 +0000
commit7206efde17393f2aea4945260f73217f4bfbf09c (patch)
tree06eef9e16ab198c8270c429b2cb9764a3ac32cda /editors/ng
parentd8dee55075c8175257fc60e1232b8c248701e8ba (diff)
downloadpkgsrc-7206efde17393f2aea4945260f73217f4bfbf09c.tar.gz
From Ken'ichi Fukamachi in PR 45992:
(1) specify PKG_OPTIONS.ng= -canna in /etc/mk.conf. ng's Makefile expects the environment variable of USE_CANNA always, but the current Makefile does not consider it. (2) compile ng on system-V like platforms e.g. *-linux, Solaris. We need to edit ng's Makefile on platforms, but the current pkgsrc Makefile is only suitable for BSD platforms.
Diffstat (limited to 'editors/ng')
-rw-r--r--editors/ng/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/editors/ng/Makefile b/editors/ng/Makefile
index 6585a27ab1b..7b3ff94517b 100644
--- a/editors/ng/Makefile
+++ b/editors/ng/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2008/03/03 18:25:53 jlam Exp $
+# $NetBSD: Makefile,v 1.23 2012/02/12 14:12:19 wiz Exp $
DISTNAME= ng-1.4.3
PKGREVISION= 1
@@ -22,14 +22,21 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.ng
.if !empty(PKG_OPTIONS:Mcanna)
.include "../../inputmethod/canna-lib/buildlink3.mk"
MAKEFLAGS+= USE_CANNA=YES
+.else
+MAKEFLAGS+= USE_CANNA=NO
.endif
BUILD_TARGET= ng
INSTALLATION_DIRS= bin
+.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
+post-patch:
+ @(cd ${WRKSRC}; ${LN} -s sys/sysv/Makefile . )
+.else
post-patch:
@(cd ${WRKSRC}; ${LN} -s sys/bsd/Makefile . )
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ng ${DESTDIR}${PREFIX}/bin