mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-02 21:49:49 -05:00
xaw3d: use a block inreplace
This is a little more tidy. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
1 parent
874ef3c069
commit
e3d3f960bf
1 file changed
+6
-4
@@ -22,10 +22,12 @@ class Xaw3d < Formula
|
||||
# force usage of /usr/X11/lib when linking, and install into the Cellar
|
||||
# apparently s.change_make_var! silently fails when Makefile variables
|
||||
# are preceded by whitespace, so do it manually
|
||||
inreplace 'Makefile', 'LDPRELIB = -L$(USRLIBDIR)', 'LDPRELIB = -L$(USRLIBDIR) $(LDFLAGS)'
|
||||
inreplace 'Makefile', 'USRLIBDIR = /usr/local/lib', "USRLIBDIR = #{lib}"
|
||||
inreplace 'Makefile', 'SHLIBDIR = /usr/local/lib', "SHLIBDIR = #{lib}"
|
||||
inreplace 'Makefile', 'INCROOT = /usr/local/include', "INCROOT = #{include}"
|
||||
inreplace 'Makefile' do |s|
|
||||
s.gsub! 'LDPRELIB = -L$(USRLIBDIR)', 'LDPRELIB = -L$(USRLIBDIR) $(LDFLAGS)'
|
||||
s.gsub! 'USRLIBDIR = /usr/local/lib', "USRLIBDIR = #{lib}"
|
||||
s.gsub! 'SHLIBDIR = /usr/local/lib', "SHLIBDIR = #{lib}"
|
||||
s.gsub! 'INCROOT = /usr/local/include', "INCROOT = #{include}"
|
||||
end
|
||||
|
||||
system 'make'
|
||||
system 'make install'
|
||||
|
||||
Reference in new issue
Block a user