View | Details | Raw Unified | Return to bug 196248 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-8 / +20 lines)
Lines 2-22 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	libsrtp
4
PORTNAME=	libsrtp
5
PORTVERSION=	1.4.4
5
PORTVERSION=	20141224
6
PORTREVISION=	1
7
CATEGORIES=	net
6
CATEGORIES=	net
8
MASTER_SITES=	SF/${ORIGNAME}/${ORIGNAME}/${PORTVERSION}
9
DISTNAME=	${ORIGNAME}-${PORTVERSION}
10
7
11
MAINTAINER=	alexander@brovikov.ru
8
MAINTAINER=	alexander@brovikov.ru
12
COMMENT=	Library implementing Secure RTP
9
COMMENT=	Library implementing Secure RTP
13
10
14
WRKSRC=		${WRKDIR}/${ORIGNAME}
15
ORIGNAME=	srtp
11
ORIGNAME=	srtp
16
12
17
GNU_CONFIGURE=	yes
13
GNU_CONFIGURE=	yes
18
USES=		gmake tar:tgz
14
CONFIGURE_ARGS+=--enable-openssl --enable-generic-aesicm --enable-syslog
19
USE_CSTD=	gnu89
15
USES=		gmake
20
CFLAGS+=	-fPIC
16
ALL_TARGET=	all shared_library
17
USE_LDCONFIG=	yes
21
18
19
USE_GITHUB=	yes
20
GH_ACCOUNT=	cisco
21
GH_PROJECT=	${PORTNAME}
22
GH_TAGNAME=	${GH_COMMIT}
23
GH_COMMIT=	be155db
24
25
post-install:
26
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsrtp.so.1
27
	${LN} -sf libsrtp.so.1 ${STAGEDIR}${PREFIX}/lib/libsrtp.so
28
	${MV} ${STAGEDIR}${PREFIX}/lib/pkgconfig/* \
29
		${STAGEDIR}${PREFIX}/libdata/pkgconfig
30
31
test runtest check regression-test: build
32
	${SETENV} LD_LIBRARY_PATH=${WRKSRC} ${GMAKE} -C ${WRKSRC} runtest
33
22
.include <bsd.port.mk>
34
.include <bsd.port.mk>
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (srtp-1.4.4.tgz) = d9c2cbb1c95172ed2dc963eff0d6ce1072326dc81cb1dd38414e9f0e430af314
1
SHA256 (libsrtp-20141224.tar.gz) = 03cc7299caef41dc124d8d8872114740062c9d9886fc2e6c93bbcb397524e278
2
SIZE (srtp-1.4.4.tgz) = 502890
2
SIZE (libsrtp-20141224.tar.gz) = 1688384
(-)files/patch-Makefile.in (+31 lines)
Line 0 Link Here
1
--- Makefile.in	2014-12-04 08:48:49.000000000 -0500
2
+++ Makefile.in	2014-12-24 01:47:40.000000000 -0500
3
@@ -45,5 +45,5 @@
4
 INCDIR	= -Icrypto/include -I$(srcdir)/include -I$(srcdir)/crypto/include
5
 DEFS	= @DEFS@
6
-CPPFLAGS= -fPIC @CPPFLAGS@
7
+CPPFLAGS= @CPPFLAGS@
8
 CFLAGS	= @CFLAGS@
9
 LIBS	= @LIBS@
10
@@ -85,5 +85,5 @@
11
 
12
 SHAREDLIBVERSION = 1
13
-ifeq (linux,$(findstring linux,@host@))
14
+ifneq ("", $(filter %bsd% %linux%, @host@))
15
 SHAREDLIB_DIR = $(libdir)
16
 SHAREDLIB_LDFLAGS = -shared -Wl,-soname,$@
17
@@ -109,4 +109,7 @@
18
 	$(COMPILE) -c $< -o $@
19
 
20
+%.So: %.c
21
+	$(COMPILE) -fPIC -DPIC -c $< -o $@
22
+
23
 %$(EXE): %.c
24
 	$(COMPILE) $(LDFLAGS) $< -o $@ $(SRTPLIB) $(LIBS)
25
@@ -144,5 +147,5 @@
26
 	$(RANLIB) libsrtp.a
27
 
28
-libsrtp.$(SHAREDLIBSUFFIX): $(srtpobj) $(cryptobj) $(gdoi)
29
+libsrtp.$(SHAREDLIBSUFFIX): $(srtpobj:.o=.So) $(cryptobj:.o=.So) $(gdoi:.o=.So)
30
 	$(CC) -shared -o $@ $(SHAREDLIB_LDFLAGS) \
31
                 $^ $(LDFLAGS) $(LIBS)
(-)pkg-plist (+6 lines)
Lines 1-7 Link Here
1
lib/libsrtp.a
1
lib/libsrtp.a
2
lib/libsrtp.so.1
3
lib/libsrtp.so
4
libdata/pkgconfig/libsrtp.pc
2
include/srtp/aes.h
5
include/srtp/aes.h
3
include/srtp/aes_cbc.h
6
include/srtp/aes_cbc.h
7
include/srtp/aes_gcm_ossl.h
4
include/srtp/aes_icm.h
8
include/srtp/aes_icm.h
9
include/srtp/aes_icm_ossl.h
5
include/srtp/alloc.h
10
include/srtp/alloc.h
6
include/srtp/auth.h
11
include/srtp/auth.h
7
include/srtp/cipher.h
12
include/srtp/cipher.h
Lines 12-17 Link Here
12
include/srtp/crypto_types.h
17
include/srtp/crypto_types.h
13
include/srtp/cryptoalg.h
18
include/srtp/cryptoalg.h
14
include/srtp/datatypes.h
19
include/srtp/datatypes.h
20
include/srtp/ekt.h
15
include/srtp/err.h
21
include/srtp/err.h
16
include/srtp/getopt_s.h
22
include/srtp/getopt_s.h
17
include/srtp/gf2_8.h
23
include/srtp/gf2_8.h

Return to bug 196248