New package: mongoose-3.1.
This commit is contained in:
parent
862edcf436
commit
b578c6ea5f
|
@ -971,3 +971,4 @@ libfltk_gl.so.1.3 fltk-1.3.0_1
|
|||
libfltk_images.so.1.3 fltk-1.3.0_1
|
||||
libspectre.so.1 libspectre-0.2.6_1
|
||||
libsratom-0.so.0 sratom-0.2.0_1
|
||||
libmongoose.so.0 libmongoose-3.1_1
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
mongoose
|
|
@ -0,0 +1 @@
|
|||
mongoose
|
|
@ -0,0 +1,3 @@
|
|||
libdl.so.2
|
||||
libpthread.so.0
|
||||
libc.so.6
|
|
@ -0,0 +1,10 @@
|
|||
# Template file for 'libmongoose.
|
||||
#
|
||||
short_desc="${short_desc} -- shared library"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains the shared library."
|
||||
|
||||
do_install() {
|
||||
vmove usr/lib usr
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
# Template file for 'mongoose-devel'.
|
||||
#
|
||||
noarch=yes
|
||||
depends="glibc-devel libmongoose>=$version"
|
||||
short_desc="${short_desc} -- development files"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains files for development, headers, static libs, etc."
|
||||
|
||||
do_install() {
|
||||
vmove usr/include usr
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
libdl.so.2
|
||||
libpthread.so.0
|
||||
libc.so.6
|
||||
libmongoose.so.0
|
|
@ -0,0 +1,48 @@
|
|||
--- Makefile.orig 2012-06-19 09:55:56.512085441 +0200
|
||||
+++ Makefile 2012-06-19 10:02:28.949545937 +0200
|
||||
@@ -22,19 +22,20 @@ all:
|
||||
### UNIX build: linux, bsd, mac, rtems
|
||||
##########################################################################
|
||||
|
||||
-CFLAGS = -W -Wall -std=c99 -pedantic -O2 $(COPT)
|
||||
+CFLAGS += -W -Wall -std=c99 -pedantic -O2 $(COPT)
|
||||
MAC_SHARED = -flat_namespace -bundle -undefined suppress
|
||||
-LINFLAGS = -ldl -pthread $(CFLAGS)
|
||||
-LIB = _$(PROG).so
|
||||
-CC = g++
|
||||
+LINFLAGS += -ldl -pthread
|
||||
+LIB ?= lib$(PROG).so.0
|
||||
+CC ?= gcc
|
||||
|
||||
# Make sure that the compiler flags come last in the compilation string.
|
||||
# If not so, this can break some on some Linux distros which use
|
||||
# "-Wl,--as-needed" turned on by default in cc command.
|
||||
# Also, this is turned in many other distros in static linkage builds.
|
||||
linux:
|
||||
- $(CC) mongoose.c -shared -fPIC -fpic -o $(LIB) $(LINFLAGS)
|
||||
- $(CC) mongoose.c main.c -o $(PROG) $(LINFLAGS)
|
||||
+ $(CC) mongoose.c -shared -fPIC -fpic -Wl,-soname,$(LIB) \
|
||||
+ -o $(LIB) $(LINFLAGS) $(CFLAGS)
|
||||
+ $(CC) mongoose.c main.c -o $(PROG) $(LINFLAGS) -L. $(LIB) $(CFLAGS)
|
||||
|
||||
bsd:
|
||||
$(CC) mongoose.c -shared -pthread -fpic -fPIC -o $(LIB) $(CFLAGS)
|
||||
@@ -50,6 +51,18 @@ solaris:
|
||||
gcc mongoose.c main.c -pthread -lnsl -lsocket -o $(PROG) $(CFLAGS)
|
||||
|
||||
|
||||
+install:
|
||||
+ install -d $(DESTDIR)$(PREFIX)/include
|
||||
+ install -m644 mongoose.h $(DESTDIR)$(PREFIX)/include
|
||||
+ install -d $(DESTDIR)$(PREFIX)/bin
|
||||
+ install -m755 $(PROG) $(DESTDIR)$(PREFIX)/bin
|
||||
+ install -d $(DESTDIR)$(PREFIX)/lib
|
||||
+ ln -sf $(LIB) $(LIB).0; cp -a $(LIB).0 $(DESTDIR)$(PREFIX)/lib
|
||||
+ ln -sf $(LIB) libmongoose.so; cp -a libmongoose.so $(DESTDIR)$(PREFIX)/lib
|
||||
+ install -m755 $(LIB) $(DESTDIR)$(PREFIX)/lib
|
||||
+ install -d $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
||||
+ install -m644 mongoose.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
|
||||
+
|
||||
##########################################################################
|
||||
### WINDOWS build: Using Visual Studio or Mingw
|
||||
##########################################################################
|
|
@ -0,0 +1,18 @@
|
|||
# Template file for 'mongoose'
|
||||
pkgname=mongoose
|
||||
version=3.1
|
||||
revision=1
|
||||
wrksrc=$pkgname
|
||||
build_style=gnu-makefile
|
||||
make_build_args="linux"
|
||||
make_install_args="PREFIX=/usr MANDIR=share/man"
|
||||
subpackages="$pkgname-devel lib$pkgname"
|
||||
short_desc="An Easy to use Web server"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="MIT"
|
||||
homepage="https://code.google.com/p/mongoose/"
|
||||
distfiles="https://mongoose.googlecode.com/files/mongoose-$version.tgz"
|
||||
checksum=fd003ff722d8b654a6ceaaadeffb1806d2d513afe888ba00ecfb4a115897844c
|
||||
long_desc="
|
||||
Mongoose is easy to use web server. It also can be used as embedded web server
|
||||
library to provide web interface to applications."
|
Loading…
Reference in New Issue