diff options
author | wiz <wiz> | 2012-02-12 14:12:19 +0000 |
---|---|---|
committer | wiz <wiz> | 2012-02-12 14:12:19 +0000 |
commit | 1bf7ade2089c3b5a91d2e9e29fa3e6adb84d9bff (patch) | |
tree | 06eef9e16ab198c8270c429b2cb9764a3ac32cda /editors/ng | |
parent | ee2bd57d167dc23e154460665c4b77d6815a3d82 (diff) | |
download | pkgsrc-1bf7ade2089c3b5a91d2e9e29fa3e6adb84d9bff.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/Makefile | 9 |
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 |