mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
- Switch to shared library instead of static one.
Requested by: Marcin Cieslak <saper@SYSTEM.PL> PR: ports/113350
This commit is contained in:
parent
e2a4f1073e
commit
a7d92f9e29
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=194181
@ -17,8 +17,14 @@ DISTNAME= ${PORTNAME:U}-${PORTVERSION}
|
||||
MAINTAINER= stas@FreeBSD.org
|
||||
COMMENT= C++ library for reading and generating files in the ELF binary format
|
||||
|
||||
BUILD_DEPENDS= libtoolize:${PORTSDIR}/devel/libtool15
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GNOME= gnometarget
|
||||
USE_LDCONFIG= yes
|
||||
USE_AUTOTOOLS= aclocal:19 automake:19 autoconf:259 libtool:15
|
||||
AUTOMAKE_ARGS= -c -a
|
||||
ACLOCAL_ARGS= --acdir=${ACLOCAL_DIR} -I ${LOCALBASE}/share/aclocal
|
||||
|
||||
OPTIONS= EXAMPLES "Install sample programms" on
|
||||
|
||||
@ -32,6 +38,14 @@ PLIST_SUB+= EXAMPLES=""
|
||||
PLIST_SUB+= EXAMPLES="@comment "
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@(${FIND} ${WRKSRC}/ -name Makefile.am | \
|
||||
${XARGS} ${REINPLACE_CMD} -E -e 's,(libELFIO)\.a,.libs/\1.so,g')
|
||||
|
||||
pre-configure:
|
||||
@(cd ${WRKSRC}/ && \
|
||||
${LIBTOOLIZE} --force --copy --automake)
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
|
18
devel/elfio/files/patch-ELFIO_Makefile.am
Normal file
18
devel/elfio/files/patch-ELFIO_Makefile.am
Normal file
@ -0,0 +1,18 @@
|
||||
--- ELFIO/Makefile.am.orig Sun Jun 24 12:43:57 2007
|
||||
+++ ELFIO/Makefile.am Sun Jun 24 12:44:29 2007
|
||||
@@ -1,6 +1,6 @@
|
||||
-lib_LIBRARIES = libELFIO.a
|
||||
+lib_LTLIBRARIES = libELFIO.la
|
||||
|
||||
-libELFIO_a_SOURCES = ELFIDynamic.cpp ELFIImpl.cpp ELFINote.cpp ELFIO.cpp \
|
||||
+libELFIO_la_SOURCES = ELFIDynamic.cpp ELFIImpl.cpp ELFINote.cpp ELFIO.cpp \
|
||||
ELFIOUtils.cpp ELFIRelocation.cpp ELFISection.cpp \
|
||||
ELFISegment.cpp ELFIStrings.cpp ELFISymbols.cpp \
|
||||
ELFODynamic.cpp ELFOImpl.cpp ELFONote.cpp \
|
||||
@@ -10,4 +10,4 @@
|
||||
include_HEADERS = ELFI.h ELFIO.h ELFO.h ELFTypes.h
|
||||
noinst_HEADERS = ELFIImpl.h ELFOImpl.h ELFIOUtils.h
|
||||
|
||||
-EXTRA_DIST = ELFIO.dsp ELFIO.dsw ELFIO.mcp
|
||||
\ No newline at end of file
|
||||
+EXTRA_DIST = ELFIO.dsp ELFIO.dsw ELFIO.mcp
|
17
devel/elfio/files/patch-configure.in
Normal file
17
devel/elfio/files/patch-configure.in
Normal file
@ -0,0 +1,17 @@
|
||||
--- configure.in.orig Sun Nov 6 09:08:06 2005
|
||||
+++ configure.in Sun Jun 24 12:52:04 2007
|
||||
@@ -5,8 +5,13 @@
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_PROG_CXX
|
||||
-AC_PROG_RANLIB
|
||||
AC_PROG_INSTALL
|
||||
+
|
||||
+#
|
||||
+# Shared library support
|
||||
+#
|
||||
+AM_ENABLE_SHARED
|
||||
+AM_PROG_LIBTOOL
|
||||
|
||||
dnl Checks for libraries.
|
||||
|
@ -4,6 +4,9 @@ include/ELFIO.h
|
||||
include/ELFO.h
|
||||
include/ELFTypes.h
|
||||
lib/libELFIO.a
|
||||
lib/libELFIO.la
|
||||
lib/libELFIO.so
|
||||
lib/libELFIO.so.0
|
||||
%%EXAMPLES%%%%EXAMPLESDIR%%/ELFDump.cpp
|
||||
%%EXAMPLES%%%%EXAMPLESDIR%%/RelocationTable.cpp
|
||||
%%EXAMPLES%%%%EXAMPLESDIR%%/Write.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user