b74425f50e
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@
54 lines
1.2 KiB
Makefile
54 lines
1.2 KiB
Makefile
# $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
|
|
|
|
V= 0.1.8
|
|
DISTNAME= fcgi-cgi-$V
|
|
PKGNAME-main= fcgi-cgi-$V
|
|
PKGNAME-static= fcgi-cgi-static-$V
|
|
REVISION= 4
|
|
CATEGORIES= www
|
|
|
|
HOMEPAGE= http://redmine.lighttpd.net/projects/fcgi-cgi/wiki
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += c ev glib-2.0 m pthread
|
|
|
|
MASTER_SITES= http://cgit.lighttpd.net/fcgi-cgi.git/snapshot/ \
|
|
http://spacehopper.org/mirrors/
|
|
|
|
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 \
|
|
devel/glib2
|
|
|
|
MODULES= devel/gettext
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
PREFIX-static= /var/www/${TRUEPREFIX}
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
post-patch:
|
|
cd ${WRKSRC}; AUTOCONF_VERSION=${AUTOCONF_VERSION} \
|
|
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} ./autogen.sh
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM_DIR} ${WRKINST}${PREFIX-static}/bin
|
|
mv ${PREFIX}/bin/fcgi-cgi-static \
|
|
${WRKINST}${PREFIX-static}/bin/fcgi-cgi
|
|
|
|
.include <bsd.port.mk>
|