Date: Tue, 5 Jun 2007 03:23:13 +0200 (CEST) From: Marcin Cieslak <saper@SYSTEM.PL> To: FreeBSD-gnats-submit@FreeBSD.org Cc: stas@FreeBSD.org Subject: ports/113350: [PATCH] devel/elfio: build dynamic library Message-ID: <200706050123.l551NDmr041461@saperski.saper.info> Resent-Message-ID: <200706050130.l551U1cZ041518@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 113350 >Category: ports >Synopsis: [PATCH] devel/elfio: build dynamic library >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jun 05 01:30:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Marcin Cieslak >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD saperski.saper.info 6.2-STABLE FreeBSD 6.2-STABLE #6: Mon Jun 4 01:08:46 CEST >Description: Hello, In order to build for secondlife client we need a dynamic version of a libELFIO library. Attached please find a crude patch to get this done. I don't like this *.o stuff but I do not want to dig into the whole automake mess. Port maintainer (stas@FreeBSD.org) is cc'd. --Marcin Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- elfio-1.0.3_2.patch begins here --- Index: Makefile =================================================================== RCS file: /usr/home/ncvs/ports/devel/elfio/Makefile,v retrieving revision 1.10 diff -u -u -r1.10 Makefile --- Makefile 27 Mar 2007 22:11:54 -0000 1.10 +++ Makefile 5 Jun 2007 01:19:44 -0000 @@ -8,7 +8,7 @@ PORTNAME= elfio PORTVERSION= 1.0.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -19,6 +19,7 @@ GNU_CONFIGURE= yes USE_GNOME= gnometarget +USE_LDCONFIG= yes OPTIONS= EXAMPLES "Install sample programms" on @@ -26,13 +27,24 @@ .include <bsd.port.pre.mk> +PLIST_SUB+= SHLIB_VER=${SHLIB_VER} .if !defined(WITHOUT_EXAMPLES) PLIST_SUB+= EXAMPLES="" .else PLIST_SUB+= EXAMPLES="@comment " .endif +CFLAGS+= -fPIC +SHLIB_VER= 0 + +post-build: + (cd ${WRKSRC}/ELFIO; ${CC} -shared -o libELFIO.so.${SHLIB_VER} *.o) + post-install: + ${INSTALL_PROGRAM} ${WRKSRC}/ELFIO/libELFIO.so.${SHLIB_VER} \ + ${PREFIX}/lib/libELFIO.so.${SHLIB_VER} + cd ${PREFIX}/lib && \ + ${LN} -sf libELFIO.so.${SHLIB_VER} libELFIO.so .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for file in AUTHORS ChangeLog README Index: pkg-plist =================================================================== RCS file: /usr/home/ncvs/ports/devel/elfio/pkg-plist,v retrieving revision 1.4 diff -u -u -r1.4 pkg-plist --- pkg-plist 21 Jul 2006 21:12:37 -0000 1.4 +++ pkg-plist 4 Jun 2007 23:36:12 -0000 @@ -4,6 +4,8 @@ include/ELFO.h include/ELFTypes.h lib/libELFIO.a +lib/libELFIO.so.%%SHLIB_VER%% +lib/libELFIO.so %%EXAMPLES%%%%EXAMPLESDIR%%/ELFDump.cpp %%EXAMPLES%%%%EXAMPLESDIR%%/RelocationTable.cpp %%EXAMPLES%%%%EXAMPLESDIR%%/Write.cpp --- elfio-1.0.3_2.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706050123.l551NDmr041461>