2005-06-08 14:45:19 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gwenhywfar
|
2012-05-25 21:36:40 +00:00
|
|
|
PORTVERSION= 4.3.3
|
2013-05-03 16:36:39 +00:00
|
|
|
PORTREVISION?= 4
|
2005-06-08 14:45:19 +00:00
|
|
|
CATEGORIES= devel net security
|
2012-05-25 21:36:40 +00:00
|
|
|
MASTER_SITES= http://www.aquamaniac.de/sites/download/download.php?package=01&release=67&file=01&dummy=/
|
2005-06-08 14:45:19 +00:00
|
|
|
|
2012-09-13 04:45:58 +00:00
|
|
|
MAINTAINER?= jhale@FreeBSD.org
|
2012-09-01 17:05:14 +00:00
|
|
|
COMMENT?= Multi-platform helper library for networking and security applications
|
2005-06-08 14:45:19 +00:00
|
|
|
|
2011-07-31 20:04:25 +00:00
|
|
|
LICENSE= LGPL21
|
|
|
|
|
2012-09-01 17:05:14 +00:00
|
|
|
LIB_DEPENDS= gcrypt:${PORTSDIR}/security/libgcrypt \
|
|
|
|
gnutls:${PORTSDIR}/security/gnutls
|
|
|
|
|
|
|
|
.if !defined(SLAVEPORT)
|
2012-09-02 09:58:32 +00:00
|
|
|
OPTIONS_DEFINE= DOXYGEN MEMDEBUG
|
2012-09-01 17:05:14 +00:00
|
|
|
|
|
|
|
MEMDEBUG_DESC= Enable memory debugger statistic
|
|
|
|
.endif
|
2009-05-11 20:41:48 +00:00
|
|
|
|
2013-04-26 10:44:28 +00:00
|
|
|
USES= pathfix pkgconfig gettext
|
2009-05-11 20:41:48 +00:00
|
|
|
USE_GMAKE= yes
|
2005-06-08 14:45:19 +00:00
|
|
|
USE_OPENSSL= yes
|
2011-02-28 19:49:20 +00:00
|
|
|
USE_AUTOTOOLS= libtool
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --enable-release="yes" \
|
2012-09-01 17:05:14 +00:00
|
|
|
--with-guis="${SLAVEPORT}"
|
|
|
|
CPPFLAGS+= -DGCRYPT_NO_DEPRECATED
|
2010-03-10 00:44:18 +00:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2005-06-08 14:45:19 +00:00
|
|
|
|
2011-02-28 19:49:20 +00:00
|
|
|
PLIST_SUB= GWEN_SHLIB_VER="${GWEN_SHLIB_VER}"
|
|
|
|
USE_LDCONFIG= yes
|
2005-06-08 14:45:19 +00:00
|
|
|
|
2011-02-28 19:49:20 +00:00
|
|
|
GWEN_SHLIB_VER= 60
|
2005-06-08 14:45:19 +00:00
|
|
|
|
2011-02-28 19:49:20 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2005-06-08 14:45:19 +00:00
|
|
|
|
2012-10-22 17:50:13 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOXYGEN}
|
2011-07-31 20:04:25 +00:00
|
|
|
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \
|
|
|
|
dot:${PORTSDIR}/graphics/graphviz
|
2011-02-28 19:49:20 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-full-doc
|
2008-03-10 13:12:30 +00:00
|
|
|
.endif
|
|
|
|
|
2012-09-01 17:05:14 +00:00
|
|
|
.if ${PORT_OPTIONS:MMEMDEBUG}
|
2011-02-28 19:49:20 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-memtrace
|
|
|
|
.endif
|
|
|
|
|
2012-09-01 17:05:14 +00:00
|
|
|
.if defined(SLAVEPORT)
|
|
|
|
LIB_DEPENDS+= gwenhywfar:${PORTSDIR}/devel/gwenhywfar
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/gui
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/gui/${SLAVEPORT}
|
|
|
|
|
|
|
|
.if ${SLAVEPORT}=="fox16"
|
2011-02-28 19:49:20 +00:00
|
|
|
LIB_DEPENDS+= FOX-1.6:${PORTSDIR}/x11-toolkits/fox16
|
2013-02-14 09:42:12 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2011-02-28 19:49:20 +00:00
|
|
|
.endif
|
|
|
|
|
2012-09-01 17:05:14 +00:00
|
|
|
.if ${SLAVEPORT}=="gtk2"
|
2011-02-28 19:49:20 +00:00
|
|
|
USE_GNOME+= gtk20
|
|
|
|
.endif
|
|
|
|
|
2012-09-01 17:05:14 +00:00
|
|
|
.if ${SLAVEPORT}=="qt4"
|
2012-05-25 21:36:40 +00:00
|
|
|
USE_QT4= gui moc_build uic_build
|
2011-02-28 19:49:20 +00:00
|
|
|
QT_NONSTANDARD= yes
|
2012-09-01 17:05:14 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.if defined(SLAVEPORT)
|
|
|
|
@${FIND} ${BUILD_WRKSRC} -name "Makefile.in" -type f | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e 's|[$$][(]top_builddir[)]/src/[$$][(]gwenhywfar_internal_libname[)]|$$(gwenhywfar_libs)|g'
|
2011-02-28 19:49:20 +00:00
|
|
|
.endif
|
|
|
|
|
2008-03-10 13:12:30 +00:00
|
|
|
post-build:
|
2012-10-22 17:50:13 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOXYGEN}
|
2009-09-19 00:21:49 +00:00
|
|
|
@cd ${WRKSRC} && ${GMAKE} srcdoc
|
2006-10-08 16:05:47 +00:00
|
|
|
.endif
|
|
|
|
|
2005-06-08 14:45:19 +00:00
|
|
|
post-install:
|
2012-10-22 17:50:13 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOXYGEN}
|
2010-03-10 00:44:18 +00:00
|
|
|
${MKDIR} ${DOCSDIR}/apidoc
|
2011-02-28 19:49:20 +00:00
|
|
|
cd ${WRKSRC}/apidoc && \
|
|
|
|
${COPYTREE_SHARE} \* ${DOCSDIR}/apidoc
|
2012-10-22 17:50:13 +00:00
|
|
|
@${FIND} -P ${DOCSDIR} -type f 2>/dev/null | \
|
|
|
|
${SED} -ne 's,^${PREFIX}/,,p' >> ${TMPPLIST}
|
|
|
|
@${FIND} -P -d ${DOCSDIR} -type d 2>/dev/null | \
|
|
|
|
${SED} -ne 's,^${PREFIX}/,@dirrm ,p' >> ${TMPPLIST}
|
2008-01-16 09:50:58 +00:00
|
|
|
.endif
|
2005-06-08 14:45:19 +00:00
|
|
|
|
2011-02-28 19:49:20 +00:00
|
|
|
.include <bsd.port.mk>
|