2005-06-08 14:45:19 +00:00
|
|
|
# New ports collection makefile for: gwenhywfar
|
|
|
|
# Date created: 2005-05-05
|
|
|
|
# Whom: Peter Cornelius <pcc.at.gmx.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gwenhywfar
|
|
|
|
PORTVERSION= 1.13.2
|
2006-10-08 16:05:47 +00:00
|
|
|
PORTREVISION= 2
|
2005-06-08 14:45:19 +00:00
|
|
|
CATEGORIES= devel net security
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2007-01-23 08:19:11 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-06-08 14:45:19 +00:00
|
|
|
COMMENT= Multi-platform helper library for networking and security applications
|
|
|
|
|
|
|
|
OPTIONS= SSLDEBUG "Enable gwenhywfar SSL debug (if SSL enabled)" off \
|
2006-10-08 16:05:47 +00:00
|
|
|
MEMDEBUG "Enable memory debugger statistic" off \
|
|
|
|
PORTDOCS "Install documentation (requires doxygen)" off
|
2005-06-08 14:45:19 +00:00
|
|
|
|
2007-02-01 02:42:05 +00:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-06-08 14:45:19 +00:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2006-10-08 16:05:47 +00:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib ${PREFIX}/lib/gwenhywfar/plugins/17/dbio
|
2005-06-08 14:45:19 +00:00
|
|
|
ALL_TARGET= all
|
|
|
|
|
|
|
|
# Examples to be installed from ${WRKSRC}/doc
|
|
|
|
EXAMPLE_FILES= STYLE \
|
|
|
|
apidoc.h \
|
|
|
|
db2.png \
|
|
|
|
plugindescr.xml \
|
|
|
|
plugindescr.xsd \
|
|
|
|
plugindescr.xsd.in \
|
|
|
|
testdialog.xml
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_SSLDEBUG)
|
|
|
|
# Enable appending of SSL connection in/output to /tmp/{read|written}.bin.
|
|
|
|
CFLAGS+= -DGWEN_SSL_DEBUG
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Enable printing of memory debugger statistic at runtime.
|
|
|
|
.if defined(WITH_MEMDEBUG)
|
|
|
|
CFLAGS+= -DGWEN_MEMORY_DEBUG
|
|
|
|
.endif
|
|
|
|
|
2006-10-08 16:05:47 +00:00
|
|
|
.if defined(WITH_PORTDOCS)
|
|
|
|
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
|
|
|
|
ALL_TARGET+= srcdoc
|
|
|
|
PORTDOCS=*
|
|
|
|
.endif
|
|
|
|
|
2005-06-08 14:45:19 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${ECHO_CMD} Installing documentation...
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
.for file in ${EXAMPLE_FILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${EXAMPLESDIR}
|
|
|
|
.endfor
|
2006-10-08 16:05:47 +00:00
|
|
|
.if defined(WITH_PORTDOCS)
|
2005-06-08 14:45:19 +00:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
@cd ${WRKSRC} && ${FIND} apidoc -mindepth 1 \! -type d \
|
|
|
|
-exec ${ECHO_CMD} "{} -> ${DOCSDIR}/{}" \; \
|
|
|
|
-exec ${INSTALL_DATA} ${WRKSRC}/{} ${DOCSDIR} \;
|
|
|
|
.endif
|
2006-10-08 16:05:47 +00:00
|
|
|
.endif
|
2005-06-08 14:45:19 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|