[50631] trunk/dports/www/mongoose

toby at macports.org toby at macports.org
Tue May 5 10:17:55 PDT 2009


Revision: 50631
          http://trac.macports.org/changeset/50631
Author:   toby at macports.org
Date:     2009-05-05 10:17:54 -0700 (Tue, 05 May 2009)
Log Message:
-----------
mongoose 2.6

Modified Paths:
--------------
    trunk/dports/www/mongoose/Portfile
    trunk/dports/www/mongoose/files/patch-Makefile

Modified: trunk/dports/www/mongoose/Portfile
===================================================================
--- trunk/dports/www/mongoose/Portfile	2009-05-05 17:10:59 UTC (rev 50630)
+++ trunk/dports/www/mongoose/Portfile	2009-05-05 17:17:54 UTC (rev 50631)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name            mongoose
-version         2.5
+version         2.6
 categories      www
 maintainers     toby
 description     easy to use web server
@@ -18,9 +18,9 @@
 master_sites    googlecode
 extract.suffix  .tgz
 
-checksums       md5 07f2647603fb75672f3c4b38298ab462 \
-                sha1 8788462bda7cbcdd64b50baff221dc0c90033245 \
-                rmd160 db7d24c48fae5b0146f7ff5ef01d6b3f50afd114
+checksums       md5 56afae4cfb86e836024df31224db8104 \
+                sha1 6aae2ffbd6f758b33f20c836bf4af0ed77499d34 \
+                rmd160 bd682626c5b08ce09920179a3d38dd5272cacc04
 
 worksrcdir      ${name}
 
@@ -30,7 +30,7 @@
 	reinplace s|__CFLAGS__|${configure.cflags}| ${worksrcpath}/Makefile
 }
 
-build.target    bsd
+build.target    mac
 build.env       CC=${configure.cc}
 
 destroot {

Modified: trunk/dports/www/mongoose/files/patch-Makefile
===================================================================
--- trunk/dports/www/mongoose/files/patch-Makefile	2009-05-05 17:10:59 UTC (rev 50630)
+++ trunk/dports/www/mongoose/files/patch-Makefile	2009-05-05 17:17:54 UTC (rev 50631)
@@ -1,20 +1,24 @@
---- Makefile.orig	2009-05-01 02:51:49.000000000 -0700
-+++ Makefile	2009-05-01 02:55:49.000000000 -0700
-@@ -1,6 +1,7 @@
- PROG=	mongoose
- SRCS=	main.c mongoose.c
--COPT=	-W -Wall -std=c99 -pedantic -Os -s
-+COPT=	-W -Wall -std=c99 -pedantic
-+CFLAGS=	__CFLAGS__
+--- Makefile.orig	2009-05-05 10:14:16.000000000 -0700
++++ Makefile	2009-05-05 10:15:45.000000000 -0700
+@@ -22,8 +22,8 @@
+ ###                 UNIX build: linux, bsd, mac, rtems
+ ##########################################################################
  
- # Possible flags: (in brackets are rough numbers for 'gcc -O2' on i386)
- # -DHAVE_MD5		- use system md5 library (-2kb)
-@@ -20,7 +21,7 @@
- 		$(SRCS) -ldl -lpthread -o $(PROG)
+-CFLAGS=		-W -Wall -std=c99 -pedantic -Os $(COPT)
+-MAC_SHARED=	-flat_namespace -bundle -undefined suppress
++CFLAGS=		-W -Wall -std=c99 -pedantic __CFLAGS__ $(COPT)
++MAC_SHARED=	-bundle
+ LINFLAGS=	$(CFLAGS) -D_POSIX_SOURCE -D_BSD_SOURCE -ldl -lpthread
+ LIB=		_$(PROG).so
  
- bsd:
--	$(CC) $(COPT) $(CFLAGS) $(SRCS) -lpthread -o $(PROG)
-+	$(CC) $(COPT) $(CFLAGS) $(SRCS) -o $(PROG)
+@@ -35,8 +35,8 @@
+ 	$(CC) $(CFLAGS) mongoose.c main.c -lpthread -s -o $(PROG)
  
- rtems:
- 	$(CC) -c $(COPT) $(CFLAGS) mongoose.c compat_rtems.c
+ mac:
+-	$(CC) $(CFLAGS) $(MAC_SHARED) mongoose.c -lpthread -o $(LIB)
+-	$(CC) $(CFLAGS) mongoose.c main.c -lpthread -o $(PROG)
++	$(CC) $(CFLAGS) $(MAC_SHARED) mongoose.c -o $(LIB)
++	$(CC) $(CFLAGS) mongoose.c main.c -o $(PROG)
+ 
+ solaris:
+ 	gcc $(CFLAGS) mongoose.c -lpthread -lnsl \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090505/5e472d99/attachment.html>


More information about the macports-changes mailing list