From 1bf7ade2089c3b5a91d2e9e29fa3e6adb84d9bff Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 12 Feb 2012 14:12:19 +0000 Subject: 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. --- editors/ng/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'editors/ng') 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 -- cgit v1.2.3