From 9db5045e1b9ec831a221819b338af4b03b6d61f9 Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Wed, 22 Sep 1999 00:28:10 +0000 Subject: Use a find | xargs perl command in post-patch to replace the -lXm's with ${MOTIFLIB}'s in all Makefile.in's. (The substitution pattern will only work for -lXm's in the middle of a line but since it requires other libraries, I guess that's ok.) --- graphics/opendx/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'graphics/opendx') diff --git a/graphics/opendx/Makefile b/graphics/opendx/Makefile index c02d0ea866c7..fc6bdef3c1a6 100644 --- a/graphics/opendx/Makefile +++ b/graphics/opendx/Makefile @@ -23,4 +23,8 @@ CONFIGURE_ENV= CFLAGS="${CFLAGS} -Dfreebsd" \ NO_MTREE= yes PLIST_SUB= ARCH=${MACHINE_ARCH} +post-patch: + @find ${WRKSRC} -name Makefile.in | \ + xargs /usr/bin/perl -pi -e 's/-lXm /\$${MOTIFLIB} /g' + .include -- cgit v1.2.3