Skip to content
Permalink
Browse files

Bug:

Submitted by:   mww@
Reviewed by:    olegb@
Approved by:    mww@
Obtained from:
fix the install_name of liballeg-4.1.15.dylib

thank Markus !

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@9251 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Ole Guldberg Jensen
Ole Guldberg Jensen committed Nov 11, 2004
1 parent 79fd4f8 commit 19eaea0a5ae1b4733afab5226c867ffea733dd22
Showing with 38 additions and 11 deletions.
  1. +9 −11 devel/allegro/Portfile
  2. +29 −0 devel/allegro/files/patch-makefile.osx
@@ -1,7 +1,8 @@
# $Id: Portfile,v 1.1 2004/10/25 20:46:36 olegb Exp $
# $Id: Portfile,v 1.2 2004/11/11 14:59:30 olegb Exp $
PortSystem 1.0
name allegro
version 4.1.15
revision 1
description A game programming library for C/C++ developers.
long_description Allegro is a game programming library for \
C/C++ developers distributed freely, supporting \
@@ -13,18 +14,15 @@ homepage http://www.talula.demon.co.uk/allegro/
master_sites sourceforge:alleg
checksums md5 e125d7665d359f2392b6330c741bdbc6
depends_lib lib:libX11:XFree86
use_configure no
pre-configure {
system "cd ${worksrcpath} && chmod +x fix.sh && ./fix.sh macosx"

reinplace "s|INSTALLDIR = /usr/local|INSTALLDIR = ${destroot}${prefix}|g" \
${worksrcpath}/makefile.osx
reinplace "s|MAN_DIR = /usr/local/man|MAN_DIR = ${destroot}${prefix}/share/man|g" \
${worksrcpath}/makefile.osx
patchfiles patch-makefile.osx
configure {
system "cd ${worksrcpath} && sh fix.sh macosx"
}
build.target {}
build.target
build.args PREFIX=${prefix}
destroot.target install install-man
destroot.args PREFIX=${prefix}
post-destroot {
system "cd ${worksrcpath} && make install-man"
file delete ${destroot}${prefix}/share/man/man3/RGB_MAP.3
file delete ${destroot}${prefix}/share/man/man3/FONT.3
file delete ${destroot}${prefix}/share/man/man3/COLOR_MAP.3
@@ -0,0 +1,29 @@
--- makefile.osx Fri Jul 30 15:36:23 2004
+++ makefile.osx.new Thu Nov 11 13:23:39 2004
@@ -39,7 +39,7 @@
TEMPLATE_NAME = Allegro\ Application
TEMPLATE = $(TEMPLATE_DIR)/$(TEMPLATE_NAME)

-MAN_DIR = /usr/local/man
+MAN_DIR = $(DESTDIR)$(PREFIX)/share/man


ifdef STATICLINK
@@ -55,7 +55,7 @@

DYLINK_FLAGS = -prebind -seg1addr 0x30000000 -dylib_compatibility_version=4.0.0 -dylib_current_version=$(shared_version)

-INSTALL_NAME = -install_name lib$(VERSION)-$(shared_major_minor).dylib
+INSTALL_NAME = -install_name ${PREFIX}/lib/lib$(VERSION)-$(shared_version).dylib
INSTALL_NAME_EMBED = -install_name "`echo "@executable_path/../Frameworks/$(FRAMEWORK_NAME).framework/Versions/$(shared_version)/$(FRAMEWORK_NAME)" | sed 's!//*!/!g'`"

ifdef EMBED
@@ -163,7 +163,7 @@

# -------- rules for installing and removing the library files --------

-INSTALLDIR = /usr/local
+INSTALLDIR = $(DESTDIR)$(PREFIX)
LIBDIR = lib
INCDIR = include

0 comments on commit 19eaea0

Please sign in to comment.
You can’t perform that action at this time.