[50465] trunk/dports/www

toby at macports.org toby at macports.org
Fri May 1 03:02:56 PDT 2009


Revision: 50465
          http://trac.macports.org/changeset/50465
Author:   toby at macports.org
Date:     2009-05-01 03:02:56 -0700 (Fri, 01 May 2009)
Log Message:
-----------
mongoose 2.5

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

Added: trunk/dports/www/mongoose/Portfile
===================================================================
--- trunk/dports/www/mongoose/Portfile	                        (rev 0)
+++ trunk/dports/www/mongoose/Portfile	2009-05-01 10:02:56 UTC (rev 50465)
@@ -0,0 +1,41 @@
+# $Id$
+
+PortSystem 1.0
+
+name            mongoose
+version         2.5
+categories      www
+maintainers     toby
+description     easy to use web server
+long_description \
+	Easy to use web server for Windows and UNIX. Mongoose provides simple \
+	and clean API for embedding it into existing programs. Targeting Web \
+	application developers, embedded system developers, and people who \
+	need to setup file sharing quickly.
+homepage        http://code.google.com/p/mongoose/
+platforms       darwin
+
+master_sites    googlecode
+extract.suffix  .tgz
+
+checksums       md5 07f2647603fb75672f3c4b38298ab462 \
+                sha1 8788462bda7cbcdd64b50baff221dc0c90033245 \
+                rmd160 db7d24c48fae5b0146f7ff5ef01d6b3f50afd114
+
+worksrcdir      ${name}
+
+patchfiles      patch-Makefile
+
+configure {
+	reinplace s|__CFLAGS__|${configure.cflags}| ${worksrcpath}/Makefile
+}
+
+build.target    bsd
+build.env       CC=${configure.cc}
+
+destroot {
+	xinstall -m 555 ${worksrcpath}/mongoose ${destroot}${prefix}/bin
+	xinstall -m 444 ${worksrcpath}/mongoose.1 ${destroot}${prefix}/share/man/man1
+}
+
+test.run        yes


Property changes on: trunk/dports/www/mongoose/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: trunk/dports/www/mongoose/files/patch-Makefile
===================================================================
--- trunk/dports/www/mongoose/files/patch-Makefile	                        (rev 0)
+++ trunk/dports/www/mongoose/files/patch-Makefile	2009-05-01 10:02:56 UTC (rev 50465)
@@ -0,0 +1,20 @@
+--- 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__
+ 
+ # 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)
+ 
+ bsd:
+-	$(CC) $(COPT) $(CFLAGS) $(SRCS) -lpthread -o $(PROG)
++	$(CC) $(COPT) $(CFLAGS) $(SRCS) -o $(PROG)
+ 
+ rtems:
+ 	$(CC) -c $(COPT) $(CFLAGS) mongoose.c compat_rtems.c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090501/00b521d6/attachment.html>


More information about the macports-changes mailing list