- Fix autoconf/automake usage. Set CONFIGURE_STYLE or call autogen.sh but

not both.
- Correct the automake bits that were added for static linking. The libraries
  were inserted into the wrong variable so the link order was wrong.
- Tidy up the CONFIGURE_ENV usage.

ok sthen@
This commit is contained in:
brad 2013-03-28 23:40:56 +00:00
parent 8ce6c0649c
commit b74425f50e
4 changed files with 24 additions and 18 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.10 2013/03/11 11:44:41 espie Exp $
# $OpenBSD: Makefile,v 1.11 2013/03/28 23:40:56 brad Exp $
COMMENT-main= wrapper to run CGI applications via FastCGI
COMMENT-static= static-linked fcgi-cgi wrapper for chroot use
@ -23,6 +23,11 @@ MASTER_SITES= http://cgit.lighttpd.net/fcgi-cgi.git/snapshot/ \
SEPARATE_BUILD= Yes
MULTI_PACKAGES= -main -static
AUTOCONF_VERSION= 2.68
AUTOMAKE_VERSION= 1.11
BUILD_DEPENDS= ${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS}
RUN_DEPENDS= www/spawn-fcgi
RUN_DEPENDS-static= www/fcgi-cgi,-main
LIB_DEPENDS= devel/libev \
@ -30,13 +35,11 @@ LIB_DEPENDS= devel/libev \
MODULES= devel/gettext
CONFIGURE_STYLE= autoconf automake
AUTOCONF_VERSION= 2.68
AUTOMAKE_VERSION= 1.11
CONFIGURE_STYLE= gnu
PREFIX-static= /var/www/${TRUEPREFIX}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${CPPFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}"
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
post-patch:
cd ${WRKSRC}; AUTOCONF_VERSION=${AUTOCONF_VERSION} \

View File

@ -1,5 +1,2 @@
MD5 (fcgi-cgi-0.1.8.tar.gz) = G4fqh/ZatLbdmPkkotqkGA==
RMD160 (fcgi-cgi-0.1.8.tar.gz) = 5Ezt4CrNHBjdcJKn3x0xA2wciqk=
SHA1 (fcgi-cgi-0.1.8.tar.gz) = I6dcEzvnB1yh/6YLFhDB8eXOWYk=
SHA256 (fcgi-cgi-0.1.8.tar.gz) = aOpA/9NpQEUUVRt3DLUrTpC8RWy59Hx+Ddm06q+21Nc=
SIZE (fcgi-cgi-0.1.8.tar.gz) = 14041

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-Makefile_am,v 1.2 2012/08/30 13:47:45 sthen Exp $
--- Makefile.am.orig Thu Oct 28 22:43:23 2010
+++ Makefile.am Tue Apr 10 15:47:59 2012
$OpenBSD: patch-Makefile_am,v 1.3 2013/03/28 23:40:56 brad Exp $
--- Makefile.am.orig Thu Oct 28 17:43:23 2010
+++ Makefile.am Thu Mar 28 18:27:25 2013
@@ -4,5 +4,9 @@ man1_MANS=fcgi-cgi.1
AM_CFLAGS=$(GLIB_CFLAGS)
fcgi_cgi_LDADD=$(GLIB_LIBS)
@ -9,6 +9,6 @@ $OpenBSD: patch-Makefile_am,v 1.2 2012/08/30 13:47:45 sthen Exp $
+bin_PROGRAMS=fcgi-cgi fcgi-cgi-static
fcgi_cgi_SOURCES=fastcgi.c fcgi-cgi.c
+
+fcgi_cgi_static_LDADD=$(fcgi_cgi_LDADD)
+fcgi_cgi_static_LDFLAGS=-static `pkg-config glib-2.0 --libs --static`
+fcgi_cgi_static_LDADD=$(GLIB_LIBS_STATIC)
+fcgi_cgi_static_LDFLAGS=-static
+fcgi_cgi_static_SOURCES=$(fcgi_cgi_SOURCES)

View File

@ -1,7 +1,13 @@
$OpenBSD: patch-configure_ac,v 1.1 2012/04/10 19:34:52 sthen Exp $
--- configure.ac.orig Tue Apr 10 15:49:39 2012
+++ configure.ac Tue Apr 10 15:49:32 2012
@@ -22,7 +22,7 @@ PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16.0, [
$OpenBSD: patch-configure_ac,v 1.2 2013/03/28 23:40:56 brad Exp $
--- configure.ac.orig Thu Oct 28 17:43:23 2010
+++ configure.ac Thu Mar 28 18:57:58 2013
@@ -19,10 +19,13 @@ PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16.0, [
AC_DEFINE([HAVE_GLIB_H], [1], [glib.h])
],[AC_MSG_ERROR("glib-2.0 >= 2.16.0 not found")])
+GLIB_LIBS_STATIC=`$PKG_CONFIG --libs --static glib-2.0`
+AC_SUBST(GLIB_LIBS_STATIC)
+
# lib ev
AC_CHECK_HEADERS([ev.h], [], [AC_MSG_ERROR("ev.h not found")])
AC_CHECK_LIB([ev], [ev_time], [