Lines 2-45
Link Here
|
2 |
# $FreeBSD: head/www/cgicc/Makefile 327776 2013-09-20 23:36:50Z bapt $ |
2 |
# $FreeBSD: head/www/cgicc/Makefile 327776 2013-09-20 23:36:50Z bapt $ |
3 |
|
3 |
|
4 |
PORTNAME= cgicc |
4 |
PORTNAME= cgicc |
5 |
PORTVERSION= 3.2.10 |
5 |
PORTVERSION= 3.2.12 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= www devel |
6 |
CATEGORIES= www devel |
8 |
MASTER_SITES= GNU |
7 |
MASTER_SITES= GNU |
9 |
|
8 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
9 |
MAINTAINER= ports@FreeBSD.org |
11 |
COMMENT= C++ class library for writing CGI applications |
10 |
COMMENT= C++ class library for writing CGI applications |
12 |
|
11 |
|
13 |
USE_GMAKE= yes |
12 |
LICENSE= LGPL3 # (or later) |
|
|
13 |
|
14 |
OPTIONS_DEFINE= DOCS |
15 |
|
16 |
USES= gmake pathfix |
14 |
USE_AUTOTOOLS= libtool |
17 |
USE_AUTOTOOLS= libtool |
15 |
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOHEADER="${TRUE}" \ |
18 |
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOHEADER="${TRUE}" \ |
16 |
AUTOMAKE="${TRUE}" |
19 |
AUTOMAKE="${TRUE}" |
17 |
USE_LDCONFIG= yes |
20 |
USE_LDCONFIG= yes |
18 |
USES= pathfix |
|
|
19 |
|
21 |
|
20 |
PORTDOCS= * |
|
|
21 |
CXXFLAGS+= -Wno-unknown-pragmas |
22 |
CXXFLAGS+= -Wno-unknown-pragmas |
22 |
|
23 |
|
23 |
.if !defined(NOPORTDOCS) |
24 |
PORTDOCS= * |
24 |
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen |
|
|
25 |
.endif |
26 |
|
25 |
|
27 |
NO_STAGE= yes |
26 |
.include <bsd.port.options.mk> |
28 |
post-patch: |
|
|
29 |
@${REINPLACE_CMD} -e '/CXXFLAGS/s|-pedantic||g' ${WRKSRC}/configure |
30 |
@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc||g' ${WRKSRC}/Makefile.in |
31 |
|
27 |
|
32 |
post-build: |
28 |
.if ${PORT_OPTIONS:MDOCS} |
33 |
.if !defined(NOPORTDOCS) |
29 |
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen |
34 |
@(cd ${WRKSRC}/doc; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \ |
30 |
.else |
35 |
${MAKEFILE} ${ALL_TARGET}) |
31 |
CONFIGURE_ENV+= ac_cv_prog_DOXYGEN="${ECHO_CMD}" |
36 |
.endif |
32 |
.endif |
37 |
|
33 |
|
38 |
post-install: |
34 |
post-patch: |
39 |
.if !defined(NOPORTDOCS) |
35 |
@${REINPLACE_CMD} -e \ |
40 |
@${MKDIR} ${DOCSDIR} |
36 |
's|-lstdc++||' ${WRKSRC}/cgicc/Makefile.in |
41 |
@(cd ${WRKSRC}/doc/html && ${COPYTREE_SHARE} . ${DOCSDIR}) |
37 |
@${REINPLACE_CMD} -e \ |
42 |
.endif |
38 |
'/^docdir/s|=.*|= @docdir@|' ${WRKSRC}/doc/Makefile.in |
43 |
${RM} -f ${PREFIX}/lib/libcgicc.la |
|
|
44 |
|
39 |
|
45 |
.include <bsd.port.mk> |
40 |
.include <bsd.port.mk> |