svn commit: r344855 - in head/devel/mime: . files

Emanuel Haupt ehaupt at FreeBSD.org
Tue Feb 18 10:15:46 UTC 2014


Author: ehaupt
Date: Tue Feb 18 10:15:44 2014
New Revision: 344855
URL: http://svnweb.freebsd.org/changeset/ports/344855
QAT: https://qat.redports.org/buildarchive/r344855/

Log:
  Support staging

Added:
  head/devel/mime/files/patch-Makefile.in   (contents, props changed)
Modified:
  head/devel/mime/Makefile
  head/devel/mime/files/patch-header.c
  head/devel/mime/files/patch-message.c
  head/devel/mime/files/patch-util.c
  head/devel/mime/files/patch-util.h

Modified: head/devel/mime/Makefile
==============================================================================
--- head/devel/mime/Makefile	Tue Feb 18 10:10:07 2014	(r344854)
+++ head/devel/mime/Makefile	Tue Feb 18 10:15:44 2014	(r344855)
@@ -14,11 +14,8 @@ COMMENT=	C library to parse mime data
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 
-NO_STAGE=	yes
-post-patch:
-	@${REINPLACE_CMD} -e "s,-fpic,-fpic -fPIC,g" ${WRKSRC}/Makefile.in
-
 post-install:
-	@(cd ${PREFIX}/lib ; ${LN} -sf libmime.so.1 libmime.so )
+	@(cd ${STAGEDIR}${PREFIX}/lib ; ${STRIP_CMD} libmime.so.1; \
+		${LN} -sf libmime.so.1 libmime.so )
 
 .include <bsd.port.mk>

Added: head/devel/mime/files/patch-Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/mime/files/patch-Makefile.in	Tue Feb 18 10:15:44 2014	(r344855)
@@ -0,0 +1,37 @@
+--- ./Makefile.in.orig	2003-09-16 01:37:19.000000000 +0200
++++ ./Makefile.in	2014-02-18 11:12:31.484358106 +0100
+@@ -88,17 +88,17 @@
+ 	    $(POBJS) $(TPROG) $(TOBJS) .depend
+ 
+ install: $(ARNAME) $(SONAME) $(PANAME)
+-	mkdir -p -m 755 $(LIBDIR)
++	mkdir -p -m 755 $(DESTDIR)$(LIBDIR)
+ 	for i in $(ARNAME) $(SONAME) $(PANAME); do		\
+-		cp $$i $(LIBDIR);				\
+-		chown $(LIBOWN):$(LIBGRP) $(LIBDIR)/$$i;	\
+-		chmod $(LIBMOD) $(LIBDIR)/$$i;			\
++		cp $$i $(DESTDIR)$(LIBDIR);				\
++		chown $(LIBOWN):$(LIBGRP) $(DESTDIR)$(LIBDIR)/$$i;	\
++		chmod $(LIBMOD) $(DESTDIR)$(LIBDIR)/$$i;			\
+ 	done
+-	mkdir -p -m 755 $(INCDIR)
++	mkdir -p -m 755 $(DESTDIR)$(INCDIR)
+ 	for i in $(INCS); do					\
+-		cp $$i $(INCDIR);				\
+-		chown $(INCOWN):$(INCGRP) $(INCDIR)/$$i;	\
+-		chmod $(INCMOD) $(INCDIR)/$$i;			\
++		cp $$i $(DESTDIR)$(INCDIR);				\
++		chown $(INCOWN):$(INCGRP) $(DESTDIR)$(INCDIR)/$$i;	\
++		chmod $(INCMOD) $(DESTDIR)$(INCDIR)/$$i;			\
+ 	done
+ 
+ depend:
+@@ -116,7 +116,7 @@
+ .SUFFIXES:
+ .SUFFIXES: .so .po .c .o
+ .c.so:
+-	$(CC) -fpic $(AFLAGS) -c $< -o $@
++	$(CC) -fpic -fPIC $(AFLAGS) -c $< -o $@
+ 
+ .c.po:
+ 	$(CC) $(PROFILE) $(AFLAGS) -c $< -o $@

Modified: head/devel/mime/files/patch-header.c
==============================================================================
--- head/devel/mime/files/patch-header.c	Tue Feb 18 10:10:07 2014	(r344854)
+++ head/devel/mime/files/patch-header.c	Tue Feb 18 10:15:44 2014	(r344855)
@@ -1,5 +1,5 @@
---- header.c.orig	Sun Oct 30 23:37:49 2005
-+++ header.c	Sun Oct 30 23:38:13 2005
+--- ./header.c.orig	2003-09-16 01:37:19.000000000 +0200
++++ ./header.c	2014-02-18 11:11:32.980337829 +0100
 @@ -67,7 +67,7 @@
  	alc = 0;
  

Modified: head/devel/mime/files/patch-message.c
==============================================================================
--- head/devel/mime/files/patch-message.c	Tue Feb 18 10:10:07 2014	(r344854)
+++ head/devel/mime/files/patch-message.c	Tue Feb 18 10:15:44 2014	(r344855)
@@ -1,5 +1,5 @@
---- message.c.orig	Tue Aug 31 10:14:24 2010
-+++ message.c	Tue Aug 31 10:14:10 2010
+--- ./message.c.orig	2003-09-16 01:37:19.000000000 +0200
++++ ./message.c	2014-02-18 11:11:32.983337749 +0100
 @@ -89,7 +89,7 @@
  		 * XXX - need to be fixed to support "\r\n"
  		 */

Modified: head/devel/mime/files/patch-util.c
==============================================================================
--- head/devel/mime/files/patch-util.c	Tue Feb 18 10:10:07 2014	(r344854)
+++ head/devel/mime/files/patch-util.c	Tue Feb 18 10:15:44 2014	(r344855)
@@ -1,5 +1,5 @@
---- util.c.orig	Sun Oct 30 23:38:55 2005
-+++ util.c	Sun Oct 30 23:39:26 2005
+--- ./util.c.orig	2003-09-16 01:37:19.000000000 +0200
++++ ./util.c	2014-02-18 11:11:32.986338150 +0100
 @@ -31,7 +31,7 @@
  
  #if 0

Modified: head/devel/mime/files/patch-util.h
==============================================================================
--- head/devel/mime/files/patch-util.h	Tue Feb 18 10:10:07 2014	(r344854)
+++ head/devel/mime/files/patch-util.h	Tue Feb 18 10:15:44 2014	(r344855)
@@ -1,5 +1,5 @@
---- util.h.orig	Sun Oct 30 23:39:40 2005
-+++ util.h	Sun Oct 30 23:39:56 2005
+--- ./util.h.orig	2003-09-16 01:37:19.000000000 +0200
++++ ./util.h	2014-02-18 11:11:32.989336888 +0100
 @@ -30,6 +30,6 @@
  #ifndef _UTIL_H_
  #define _UTIL_H_


More information about the svn-ports-all mailing list