diff options
author | stas <stas@FreeBSD.org> | 2007-06-24 22:32:53 +0800 |
---|---|---|
committer | stas <stas@FreeBSD.org> | 2007-06-24 22:32:53 +0800 |
commit | 6af2e5dbf3f391956391792ef08d172e56d5e237 (patch) | |
tree | 90c51856524243b16c0cf2f41980a05dceec03b3 /devel/elfio | |
parent | 2e9af51c12f3c916e5f6a746531a5f95d0c13c9f (diff) | |
download | freebsd-ports-gnome-6af2e5dbf3f391956391792ef08d172e56d5e237.tar.gz freebsd-ports-gnome-6af2e5dbf3f391956391792ef08d172e56d5e237.tar.zst freebsd-ports-gnome-6af2e5dbf3f391956391792ef08d172e56d5e237.zip |
- Switch to shared library instead of static one.
Requested by: Marcin Cieslak <saper@SYSTEM.PL>
PR: ports/113350
Diffstat (limited to 'devel/elfio')
-rw-r--r-- | devel/elfio/Makefile | 14 | ||||
-rw-r--r-- | devel/elfio/files/patch-ELFIO_Makefile.am | 18 | ||||
-rw-r--r-- | devel/elfio/files/patch-configure.in | 17 | ||||
-rw-r--r-- | devel/elfio/pkg-plist | 3 |
4 files changed, 52 insertions, 0 deletions
diff --git a/devel/elfio/Makefile b/devel/elfio/Makefile index f1bcbe84fb93..3d4dc9acd711 100644 --- a/devel/elfio/Makefile +++ b/devel/elfio/Makefile @@ -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} diff --git a/devel/elfio/files/patch-ELFIO_Makefile.am b/devel/elfio/files/patch-ELFIO_Makefile.am new file mode 100644 index 000000000000..27640f55e87c --- /dev/null +++ b/devel/elfio/files/patch-ELFIO_Makefile.am @@ -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 diff --git a/devel/elfio/files/patch-configure.in b/devel/elfio/files/patch-configure.in new file mode 100644 index 000000000000..2a4fe1b52f2d --- /dev/null +++ b/devel/elfio/files/patch-configure.in @@ -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. + diff --git a/devel/elfio/pkg-plist b/devel/elfio/pkg-plist index 27a93871562f..89dcb82199c1 100644 --- a/devel/elfio/pkg-plist +++ b/devel/elfio/pkg-plist @@ -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 |