1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-02 11:09:29 +00:00

Fix linking with libperl.so.xx.y.

With hat:	perl@
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2014-12-04 15:45:07 +00:00
parent f0edf2ebcb
commit cb95fe0752
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373961
2 changed files with 12 additions and 8 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
# $MCom: ports/net/libproxy-perl/Makefile,v 1.1 2011/01/12 13:10:53 kwm Exp $
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net lang
PKGNAMESUFFIX= -perl
@ -15,14 +15,8 @@ MASTERDIR= ${.CURDIR}/../libproxy
DESCR= ${.CURDIR}/pkg-descr
PLIST= ${.CURDIR}/pkg-plist
USES= perl5
INSTALL_WRKSRC= ${WRKSRC}/bindings/perl
LIBPROXY_SLAVE= perl
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Net/Libproxy ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/Net
${INSTALL_LIB} ${WRKSRC}/perl/blib/arch/auto/Net/Libproxy.so \
${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Net/Libproxy
${INSTALL_DATA} ${WRKSRC}/perl/blib/lib/Libproxy.pm \
${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/Net
.include "${MASTERDIR}/Makefile"

View File

@ -0,0 +1,10 @@
--- bindings/perl/src/CMakeLists.txt.orig 2010-09-01 20:23:34 UTC
+++ bindings/perl/src/CMakeLists.txt
@@ -12,6 +12,7 @@ set(Libproxy_LIB_SRCS Libproxy.c)
set(CMAKE_C_COMPILER ${CMAKE_CXX_COMPILER})
set(CMAKE_C_FLAGS ${PERL_CXX_FLAGS} )
+SET(CMAKE_INSTALL_RPATH ${PERL_INCLUDE_DIR})
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/perl/blib/arch/auto/Net)
add_library(PLlibproxy SHARED ${Libproxy_LIB_SRCS})