2012-11-04 14:05:04 +01:00
|
|
|
# Created by: Stanislav Sedov <stas@FreeBSD.org>
|
2008-03-11 22:13:53 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= con
|
2013-11-07 17:00:45 +01:00
|
|
|
PORTVERSION= 1.7.9
|
2010-12-14 08:30:56 +01:00
|
|
|
CATEGORIES= net enlightenment
|
2013-10-25 21:58:18 +02:00
|
|
|
MASTER_SITES= http://download.enlightenment.org/releases/ \
|
2012-12-22 21:54:59 +01:00
|
|
|
LOCAL/gblach/e17/
|
2008-03-11 22:13:53 +01:00
|
|
|
PKGNAMEPREFIX= ecore-
|
2012-12-22 21:54:59 +01:00
|
|
|
DISTNAME= ${PKGNAMEPREFIX}${PORTVERSION}
|
2008-03-11 22:13:53 +01:00
|
|
|
|
2012-11-04 14:05:04 +01:00
|
|
|
MAINTAINER= gblach@FreeBSD.org
|
2008-03-11 22:13:53 +01:00
|
|
|
COMMENT= Enlightenment core abstraction library (con module)
|
|
|
|
|
2010-12-14 08:30:56 +01:00
|
|
|
LICENSE= BSD
|
2012-06-26 19:36:30 +02:00
|
|
|
|
2010-12-14 08:30:56 +01:00
|
|
|
DIST_SUBDIR= e17
|
2008-03-11 22:13:53 +01:00
|
|
|
USE_BZIP2= yes
|
2010-12-14 08:30:56 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_EFL= ecore libtool_hack
|
2013-10-05 23:12:23 +02:00
|
|
|
USES= gmake pkgconfig
|
2008-03-11 22:13:53 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src/lib/ecore_con
|
|
|
|
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
|
|
|
|
2011-07-08 20:50:54 +02:00
|
|
|
.include "../../devel/ecore-main/Makefile.inc"
|
2010-12-14 08:30:56 +01:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-ecore-con
|
2008-03-11 22:13:53 +01:00
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
OPTIONS_DEFINE= CARES CURL SSL
|
|
|
|
OPTIONS_DEFAULT=CARES CURL SSL
|
2008-03-11 22:13:53 +01:00
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2008-03-11 22:13:53 +01:00
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
.if ${PORT_OPTIONS:MCARES}
|
2010-12-14 08:30:56 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-cares
|
2013-10-05 23:12:23 +02:00
|
|
|
LIB_DEPENDS+= libcares.so:${PORTSDIR}/dns/c-ares
|
2010-12-14 08:30:56 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-cares
|
|
|
|
.endif
|
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
.if ${PORT_OPTIONS:MCURL}
|
2008-03-11 22:13:53 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-curl
|
2013-10-05 23:12:23 +02:00
|
|
|
LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl
|
2008-03-11 22:13:53 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-curl
|
|
|
|
.endif
|
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
.if ${PORT_OPTIONS:MSSL}
|
2011-06-25 05:36:20 +02:00
|
|
|
CONFIGURE_ENV= SSL_CFLAGS="-I${OPENSSLINC} -L${OPENSSLLIB}" SSL_LIBS="-lssl"
|
2008-03-11 22:13:53 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-openssl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-openssl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -E -e \
|
|
|
|
's,\$$\(top_builddir\)/src/lib/ecore/\.libs,${LOCALBASE}/lib,'\
|
|
|
|
-e 's,\$$\(top_builddir\)/src/lib/ecore/libecore\.la,-lecore,'\
|
|
|
|
${BUILD_WRKSRC}/Makefile.in
|
|
|
|
|
|
|
|
post-install:
|
2012-06-26 19:36:30 +02:00
|
|
|
@${REINPLACE_CMD} 's/ openssl//' ${WRKSRC}/ecore-con.pc
|
2008-03-11 22:13:53 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/ecore-con.pc \
|
2013-10-05 23:12:23 +02:00
|
|
|
${STAGEDIR}${PREFIX}/libdata/pkgconfig/
|
2008-03-11 22:13:53 +01:00
|
|
|
|
2012-12-22 21:54:59 +01:00
|
|
|
.include <bsd.port.mk>
|