Lines 3-10
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= libsrtp |
4 |
PORTNAME= libsrtp |
5 |
DISTVERSIONPREFIX= v |
5 |
DISTVERSIONPREFIX= v |
6 |
DISTVERSION= 1.5.0 |
6 |
DISTVERSION= 1.5.2 |
7 |
PORTREVISION= 1 |
|
|
8 |
CATEGORIES= net |
7 |
CATEGORIES= net |
9 |
|
8 |
|
10 |
MAINTAINER= alexander@brovikov.ru |
9 |
MAINTAINER= alexander@brovikov.ru |
Lines 18-46
GH_ACCOUNT= cisco
Link Here
|
18 |
|
17 |
|
19 |
GNU_CONFIGURE= yes |
18 |
GNU_CONFIGURE= yes |
20 |
CONFIGURE_ARGS= --enable-openssl |
19 |
CONFIGURE_ARGS= --enable-openssl |
21 |
CFLAGS+= -fPIC # Taken from configure script |
20 |
CPPFLAGS+= -I${OPENSSLBASE}/include |
|
|
21 |
LIBS+= -L${OPENSSLBASE}/lib |
22 |
USES= gmake pathfix pkgconfig |
22 |
USES= gmake pathfix pkgconfig |
23 |
USE_LDCONFIG= yes |
23 |
USE_LDCONFIG= yes |
24 |
USE_OPENSSL= yes |
24 |
USE_OPENSSL= yes |
25 |
WITH_OPENSSL_PORT= yes |
|
|
26 |
|
25 |
|
27 |
.if ! defined(WITH_DEBUG) |
26 |
.if ! defined(WITH_DEBUG) |
28 |
CONFIGURE_ARGS+=--disable-debug |
27 |
CONFIGURE_ARGS+=--disable-debug |
29 |
.endif |
28 |
.endif |
30 |
|
29 |
|
|
|
30 |
.include <bsd.port.options.mk> |
31 |
|
32 |
.if ${OPSYS} != FreeBSD || ${OSVERSION} < 1000015 |
33 |
WITH_OPENSSL_PORT= yes |
34 |
.endif |
35 |
|
31 |
post-patch: |
36 |
post-patch: |
32 |
@${REINPLACE_CMD} \ |
37 |
@${REINPLACE_CMD} '/pkg-config.*openssl/d' ${WRKSRC}/configure |
33 |
-e 's/@LDFLAGS@ -L\./-L. @LDFLAGS@/' \ |
|
|
34 |
-e 's/libsrtp.so/&.0/g' \ |
35 |
${WRKSRC}/Makefile.in |
36 |
@${REINPLACE_CMD} '/pkg-config/s/openssl/libcrypto/' \ |
37 |
${WRKSRC}/configure |
38 |
|
38 |
|
39 |
post-build: |
39 |
post-build: |
40 |
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \ |
40 |
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \ |
41 |
${MAKEFILE} ${MAKE_ARGS} libsrtp.so.0) |
41 |
${MAKEFILE} ${MAKE_ARGS} shared_library) |
42 |
|
|
|
43 |
post-install: |
44 |
${LN} -s libsrtp.so.0 ${STAGEDIR}${PREFIX}/lib/libsrtp.so |
45 |
|
42 |
|
46 |
.include <bsd.port.mk> |
43 |
.include <bsd.port.mk> |