summaryrefslogtreecommitdiff
path: root/editors/nedit
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2002-01-17 17:11:48 +0000
committeragc <agc@pkgsrc.org>2002-01-17 17:11:48 +0000
commitf25f6082c1f87ef053754506d5eec35904198424 (patch)
tree8cededf654210434dd4533a1a8179a34b0182090 /editors/nedit
parentbd9f7cc1ff3b28c5a6a8f32477a2f6391cf8a983 (diff)
downloadpkgsrc-f25f6082c1f87ef053754506d5eec35904198424.tar.gz
Don't hardcode /usr/X11R6 in the makefile - use ${X11BASE} instead.
Also, pass down ${_MOTIFBASE} from the package makefile during the build, and use it in the Makefiles. Fixes PR 15277 from Hiramatsu Yoshifumi, hiramatu@boreas.dti.ne.jp, albeit in a different way to the fix in the PR.
Diffstat (limited to 'editors/nedit')
-rw-r--r--editors/nedit/Makefile3
-rw-r--r--editors/nedit/distinfo4
-rw-r--r--editors/nedit/patches/patch-aa11
3 files changed, 11 insertions, 7 deletions
diff --git a/editors/nedit/Makefile b/editors/nedit/Makefile
index ecbccb4ec5f..98f634e6df5 100644
--- a/editors/nedit/Makefile
+++ b/editors/nedit/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2001/12/19 01:23:09 mjl Exp $
+# $NetBSD: Makefile,v 1.21 2002/01/17 17:11:48 agc Exp $
VERS= 5.2
DISTNAME= nedit-${VERS}-src
@@ -12,6 +12,7 @@ COMMENT= Motif based standard GUI style text editor
USE_BUILDLINK_ONLY= YES
ALL_TARGET= netbsd
+MAKE_ENV+= _MOTIFBASE=${_MOTIFBASE}
WRKSRC= ${WRKDIR}/${PKGNAME}
diff --git a/editors/nedit/distinfo b/editors/nedit/distinfo
index 30b8f88f235..7baae7f7ac0 100644
--- a/editors/nedit/distinfo
+++ b/editors/nedit/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2001/10/31 00:03:16 mjl Exp $
+$NetBSD: distinfo,v 1.5 2002/01/17 17:11:49 agc Exp $
SHA1 (nedit-5.2-src.tar.gz) = 00327cb34f02318eb786d44051478dc367f65563
Size (nedit-5.2-src.tar.gz) = 768534 bytes
-SHA1 (patch-aa) = 3e84aa03d60cf52a98a2c12053c045e8bc0cddeb
+SHA1 (patch-aa) = 4edc5c9ffe57763d5c80e19e37d0c570f5d4be99
SHA1 (patch-ab) = 1d566822879aa6519bea91acb03cdba139edd250
diff --git a/editors/nedit/patches/patch-aa b/editors/nedit/patches/patch-aa
index 0eb6632e4ed..12c85a04594 100644
--- a/editors/nedit/patches/patch-aa
+++ b/editors/nedit/patches/patch-aa
@@ -1,12 +1,15 @@
-$NetBSD: patch-aa,v 1.9 2001/10/31 00:03:16 mjl Exp $
+$NetBSD: patch-aa,v 1.10 2002/01/17 17:11:49 agc Exp $
--- makefiles/Makefile.netbsd.orig Sat Aug 18 01:02:55 2001
+++ makefiles/Makefile.netbsd Wed Oct 31 00:18:05 2001
-@@ -9,6 +9,6 @@
+@@ -7,8 +7,8 @@
+ # To evaluate an alternative layout for the Replace/Find dialog, add
+ # -DREPLACE_SCOPE to the CFLAGS. See the README file for more information.
#
- CFLAGS=-O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
+-CFLAGS=-O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
++CFLAGS=-O -I${X11BASE}/include -I${_MOTIFBASE}/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
ARFLAGS=-ur
-LIBS= -L/usr/X11R6/lib -lm -lXm -lXpm -lXext -lXt -lSM -lICE -lX11
-+LIBS= ${LDFLAGS} ${MOTIFLIB} -L/usr/X11R6/lib -lm -lXpm -lXext -lXt -lSM -lICE -lX11
++LIBS= ${LDFLAGS} ${MOTIFLIB} -L${_MOTIFBASE}/lib -L${X11BASE}/lib -lm -lXpm -lXext -lXt -lSM -lICE -lX11
include Makefile.common