[31742] trunk/dports/graphics/compface

mww at macports.org mww at macports.org
Wed Dec 5 08:20:27 PST 2007


Revision: 31742
          http://trac.macosforge.org/projects/macports/changeset/31742
Author:   mww at macports.org
Date:     2007-12-05 08:20:23 -0800 (Wed, 05 Dec 2007)

Log Message:
-----------
add dylib, make Makefile.in behave nice, increment revision

Modified Paths:
--------------
    trunk/dports/graphics/compface/Portfile

Added Paths:
-----------
    trunk/dports/graphics/compface/files/
    trunk/dports/graphics/compface/files/patch-Makefile.in

Modified: trunk/dports/graphics/compface/Portfile
===================================================================
--- trunk/dports/graphics/compface/Portfile	2007-12-05 13:59:03 UTC (rev 31741)
+++ trunk/dports/graphics/compface/Portfile	2007-12-05 16:20:23 UTC (rev 31742)
@@ -3,6 +3,7 @@
 PortSystem 1.0
 name			compface
 version			1.5.2
+revision		1
 categories		graphics
 platforms		darwin
 maintainers		nomaintainer
@@ -15,12 +16,10 @@
 
 
 master_sites		ftp://ftp.xemacs.org/pub/xemacs/aux/
-checksums		md5 62f4f79c0861ad292ba3cf77b4c48319
+checksums		md5 62f4f79c0861ad292ba3cf77b4c48319 \
+			sha1 72dad8774b3301a1562bdbd5b3c5536ebf86a03d
+patchfiles		patch-Makefile.in
 
-destroot.destdir        BINDIR=${destroot}${prefix}/bin \
-                        MANDIR=${destroot}${prefix}/share/man \
-			LIBDIR=${destroot}${prefix}/lib \
-			INCLUDEDIR=${destroot}${prefix}/include
+configure.cflags-append	-fno-common
+configure.args		--mandir=${prefix}/share/man
 
-post-destroot		{ system "ranlib ${destroot}${prefix}/lib/libcompface.a" }
-

Added: trunk/dports/graphics/compface/files/patch-Makefile.in
===================================================================
--- trunk/dports/graphics/compface/files/patch-Makefile.in	                        (rev 0)
+++ trunk/dports/graphics/compface/files/patch-Makefile.in	2007-12-05 16:20:23 UTC (rev 31742)
@@ -0,0 +1,75 @@
+--- Makefile.in	2005-10-04 14:59:49.000000000 +0200
++++ Makefile.in	2007-12-05 17:16:21.000000000 +0100
+@@ -5,6 +5,7 @@
+ LIBDIR		= @libdir@
+ MANDIR		= @mandir@
+ INCLUDEDIR	= @includedir@
++VERSION		= 1.5.2
+ 
+ @SET_MAKE@
+ 
+@@ -25,6 +26,9 @@
+ UNEXECUTABLE	= $(BINDIR)/$(UNNAMEEXE)
+ LIBNAME		= lib$(NAME).a
+ LIBRARY		= $(LIBDIR)/$(LIBNAME)
++DYLIBSHORT	= lib$(NAME).dylib
++DYLIBNAME	= lib$(NAME).0.dylib
++DYLIBLONGNAME	= lib$(NAME).0.$(VERSION).dylib
+ MAN1DIR		= $(MANDIR)/man1
+ MAN3DIR		= $(MANDIR)/man3
+ OBJECTS		= arith.o file.o compress.o gen.o uncompface.o
+@@ -43,7 +47,7 @@
+ LDFLAGS		= @LDFLAGS@
+ LIBS		= @LIBS@
+ 
+-all:		$(NAMEEXE) $(UNNAMEEXE)
++all:		$(NAMEEXE) $(UNNAMEEXE) $(DYLIBLONGNAME)
+ 
+ $(NAMEEXE) :	cmain.o compface.o $(LIBNAME)
+ 		$(CC) $(LDFLAGS) -o $@ cmain.o compface.o $(LIBNAME)
+@@ -55,6 +59,9 @@
+ 		ar rc $(LIBNAME) $(OBJECTS)
+ 		-$(RANLIB) $(LIBNAME)
+ 
++$(DYLIBLONGNAME) :	$(OBJECTS)
++		$(CC) -dynamiclib $(CFLAGS) $(LDFLAGS) -install_name $(LIBDIR)/$(DYLIBNAME) -current_version 0.$(VERSION) -compatibility_version 0.$(VERSION) -o $(DYLIBLONGNAME) $(OBJECTS)
++
+ lint :
+ 		lint -abchx $(SOURCES)
+ 
+@@ -74,19 +81,22 @@
+ 		$(RM) -rf `cat .fname` .fname
+ 
+ install: 	$(NAMEEXE) $(UNNAMEEXE) $(LIBNAME)
+-		$(INSTALL_PROGRAM) -d $(BINDIR) $(LIBDIR) $(MAN1DIR) $(MAN3DIR) $(INCLUDEDIR)
+-		$(INSTALL_PROGRAM) $(srcdir)/$(NAMEEXE) $(EXECUTABLE) 
+-		-chmod 0755 $(EXECUTABLE)
+-		-strip $(EXECUTABLE)
+-		$(INSTALL_PROGRAM) $(srcdir)/$(UNNAMEEXE) $(UNEXECUTABLE)
+-		-chmod 0755 $(UNEXECUTABLE)
+-		-strip $(UNEXECUTABLE)
+-		$(INSTALL_DATA) $(srcdir)/$(NAME).1 $(MAN1DIR)/$(NAME).1
+-		cd $(MAN1DIR) && $(RM) ./$(UNNAME).1 && $(LN_S) $(NAME).1 $(UNNAME).1
+-		$(INSTALL_DATA) $(srcdir)/$(NAME).3 $(MAN3DIR)/$(NAME).3
+-		cd $(MAN3DIR) && $(RM) ./$(UNNAME).3 && $(LN_S) $(NAME).3 $(UNNAME).3
+-		for hdr in $(INSTALLHEADERS); do $(INSTALL_DATA) $(srcdir)/$${hdr} $(INCLUDEDIR)/$${hdr}; done
+-		$(INSTALL_DATA) $(srcdir)/$(LIBNAME) $(LIBRARY)
++		$(INSTALL_PROGRAM) -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(MAN1DIR) $(DESTDIR)$(MAN3DIR) $(DESTDIR)$(INCLUDEDIR)
++		$(INSTALL_PROGRAM) $(srcdir)/$(NAMEEXE) $(DESTDIR)$(EXECUTABLE) 
++		-chmod 0755 $(DESTDIR)$(EXECUTABLE)
++		-strip $(DESTDIR)$(EXECUTABLE)
++		$(INSTALL_PROGRAM) $(srcdir)/$(UNNAMEEXE) $(DESTDIR)$(UNEXECUTABLE)
++		-chmod 0755 $(DESTDIR)$(UNEXECUTABLE)
++		-strip $(DESTDIR)$(UNEXECUTABLE)
++		$(INSTALL_DATA) $(srcdir)/$(NAME).1 $(DESTDIR)$(MAN1DIR)/$(NAME).1
++		cd $(DESTDIR)$(MAN1DIR) && $(RM) ./$(UNNAME).1 && $(LN_S) $(NAME).1 $(UNNAME).1
++		$(INSTALL_DATA) $(srcdir)/$(NAME).3 $(DESTDIR)$(MAN3DIR)/$(NAME).3
++		cd $(DESTDIR)$(MAN3DIR) && $(RM) ./$(UNNAME).3 && $(LN_S) $(NAME).3 $(UNNAME).3
++		for hdr in $(INSTALLHEADERS); do $(INSTALL_DATA) $(srcdir)/$${hdr} $(DESTDIR)$(INCLUDEDIR)/$${hdr}; done
++		$(INSTALL_DATA) $(srcdir)/$(LIBNAME) $(DESTDIR)$(LIBRARY)
++		-$(RANLIB) $(DESTDIR)$(LIBRARY)
++		$(INSTALL_DATA) $(srcdir)/$(DYLIBLONGNAME) $(DESTDIR)$(LIBDIR)
++		cd $(DESTDIR)$(LIBDIR) && $(LN_S) $(DYLIBLONGNAME) $(DYLIBNAME) && $(LN_S) $(DYLIBLONGNAME) $(DYLIBSHORT)
+ 
+ shar :
+ 		shar.script $(OTHERS) $(HDRS) $(SOURCES) > $(NAME).sh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071205/93cd9b8e/attachment.html


More information about the macports-changes mailing list