[106279] trunk/dports/devel/libnewt

ryandesign at macports.org ryandesign at macports.org
Mon May 20 19:39:42 PDT 2013


Revision: 106279
          https://trac.macports.org/changeset/106279
Author:   ryandesign at macports.org
Date:     2013-05-20 19:39:42 -0700 (Mon, 20 May 2013)
Log Message:
-----------
libnewt: fix build on Tiger by using -dynamiclib instead of -shared (#39167)

Modified Paths:
--------------
    trunk/dports/devel/libnewt/Portfile
    trunk/dports/devel/libnewt/files/patch-Makefile.in.diff

Modified: trunk/dports/devel/libnewt/Portfile
===================================================================
--- trunk/dports/devel/libnewt/Portfile	2013-05-21 02:09:16 UTC (rev 106278)
+++ trunk/dports/devel/libnewt/Portfile	2013-05-21 02:39:42 UTC (rev 106279)
@@ -27,6 +27,7 @@
 checksums           rmd160  c56d228244530a7a690802700980dce6fb3864a9 \
                     sha256  7a6151923e7a8a950f9a8a21668a5780d09b0f35f9d76a7ec606c71c35a0e241
 
+
 depends_lib         port:gettext \
                     port:popt \
                     port:tcl \

Modified: trunk/dports/devel/libnewt/files/patch-Makefile.in.diff
===================================================================
--- trunk/dports/devel/libnewt/files/patch-Makefile.in.diff	2013-05-21 02:09:16 UTC (rev 106278)
+++ trunk/dports/devel/libnewt/files/patch-Makefile.in.diff	2013-05-21 02:39:42 UTC (rev 106279)
@@ -1,5 +1,5 @@
---- Makefile.in.orig	2011-06-27 07:24:04.000000000 -0500
-+++ Makefile.in	2011-10-08 05:13:14.000000000 -0500
+--- Makefile.in.orig	2013-03-25 09:16:36.000000000 -0500
++++ Makefile.in	2013-05-20 21:25:47.000000000 -0500
 @@ -5,8 +5,9 @@
  CPP = @CPP@
  CFLAGS = @CFLAGS@
@@ -38,8 +38,17 @@
  endif
  
  SHCFLAGS = -fPIC
-@@ -104,7 +112,7 @@
+@@ -100,7 +108,7 @@
+ 	$(CC) -g -o whiptail $(NDIALOGOBJS) -L. $(LDFLAGS) -lnewt $(LIBS) -lpopt
  
+ whiptcl.so: $(WHIPTCLOBJS) $(LIBNEWTSH)
+-	$(CC) -shared $(SHCFLAGS) $(LDFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L. -lnewt  $(LIBTCL) -lpopt $(LIBS)
++	$(CC) -dynamiclib $(SHCFLAGS) $(LDFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L. -lnewt  $(LIBTCL) -lpopt $(LIBS)
+ 
+ $(LIBNEWT): $(LIBOBJS)
+ 	ar rv $@ $^
+@@ -112,7 +120,7 @@
+ 
  clean:
  	rm -f $(PROGS) *.o $(LIBNEWT) core $(LIBNEWTSH)  \
 -		$(SHAREDDIR)/*.o *.so*
@@ -47,16 +56,18 @@
  
  depend:
  	$(CPP) $(CFLAGS) $(CPPFLAGS) -M $(SOURCES) > .depend
-@@ -116,7 +124,7 @@
+@@ -123,8 +131,8 @@
+ sharedlib: $(LIBNEWTSH)
  
  $(LIBNEWTSH): $(SHAREDDIR) $(SHAREDOBJS)
- 	$(CC) -shared -o $(LIBNEWTSH) $(SHLIBFLAGS) $(SHAREDOBJS) $(LDFLAGS) $(LIBS)
+-	$(CC) -shared -o $(LIBNEWTSH) $(SHLIBFLAGS) $(SHAREDOBJS) $(LDFLAGS) $(LIBS)
 -	ln -fs $(LIBNEWTSONAME) libnewt.so
++	$(CC) -dynamiclib -o $(LIBNEWTSH) $(SHLIBFLAGS) $(SHAREDOBJS) $(LDFLAGS) $(LIBS)
 +	ln -fs $(LIBNEWTSONAME) libnewt.$(SOEXT)
  	ln -fs $(LIBNEWTSH) $(LIBNEWTSONAME)
  
  $(SHAREDDIR)/%.o : %.c
-@@ -138,7 +146,7 @@
+@@ -146,7 +154,7 @@
  install-sh: sharedlib $(WHIPTCLSO) _snackmodule.so
  	[ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir)
  	install -m 755 $(LIBNEWTSH) $(instroot)/$(libdir)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130520/ffd19726/attachment.html>


More information about the macports-changes mailing list