Skip to content

Commit

Permalink
- Add conflict with older versions of ekg to prevent overwrite of lib…
Browse files Browse the repository at this point in the history
…gadu.so.

- hacked Makefile to install correct files instead of playing with them in
post-install stage.

Added file(s):
- files/patch-Makefile.in

PR:		ports/99727
Submitted by:	Marcin Wisnicki
Approved by:	maintainer timeout
  • Loading branch information
Ion-Mihai Tetcu authored and Ion-Mihai Tetcu committed Jul 28, 2006
1 parent e35cfa6 commit 122d8f9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
9 changes: 3 additions & 6 deletions polish/libgadu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

PORTNAME= libgadu
PORTVERSION= 20051229
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= polish net
MASTER_SITES= http://bsdguru.org/distfiles/

MAINTAINER= alex@BSDGuru.org
COMMENT= This library is used by many IMs with Gadu-Gadu support

CONFLICTS= pl-ekg-1.[0-5]* pl-ekg-1.6,2

USE_GMAKE= yes
USE_GNOME= gnomehack pkgconfig
USE_AUTOTOOLS= aclocal:15 autoheader:259 autoconf:259
Expand All @@ -22,9 +24,4 @@ CONFIGURE_ARGS= --enable-shared --disable-static --without-openssl

INSTALLS_SHLIB= yes

post-install:
${RM} ${PREFIX}/lib/libgadu.so ${PREFIX}/lib/libgadu.so.3
${MV} ${PREFIX}/lib/libgadu.so.3.3 ${PREFIX}/lib/libgadu.so.3
${LN} -s ${PREFIX}/lib/libgadu.so.3 ${PREFIX}/lib/libgadu.so

.include <bsd.port.mk>
27 changes: 27 additions & 0 deletions polish/libgadu/files/patch-Makefile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
--- lib/Makefile.in.orig Sat Jun 25 08:41:07 2005
+++ lib/Makefile.in Sun Jul 2 19:41:00 2006
@@ -27,7 +27,7 @@

SHAREDMM = libgadu.so
SHAREDM = $(SHAREDMM).$(VERSION_MAJOR)
-SHARED = $(SHAREDM).$(VERSION_MINOR)
+SHARED = $(SHAREDM)
STATIC = libgadu.a

all: @static@ @shared@
@@ -57,7 +57,6 @@

$(SHARED): $(LOBJS)
$(CC) -shared -Wl,-soname,libgadu.so.$(VERSION_MAJOR) -o $(SHARED) $(LOBJS) $(LIBS) -lc
- $(LN_S) -f $(SHARED) $(SHAREDM)
$(LN_S) -f $(SHARED) $(SHAREDMM)

#
@@ -82,7 +81,6 @@

install-shared: install-common @strip_libgadu_so@
$(INSTALL) -m 755 $(SHARED) $(DESTDIR)$(libdir)
- cd $(DESTDIR)$(libdir) && $(LN_S) -f $(SHARED) $(SHAREDM)
cd $(DESTDIR)$(libdir) && $(LN_S) -f $(SHARED) $(SHAREDMM)

install-static: install-common

0 comments on commit 122d8f9

Please sign in to comment.