svn commit: r355475 - in head/devel/libk8055: . files

Vanilla I. Shu vanilla at FreeBSD.org
Tue May 27 09:30:28 UTC 2014


Author: vanilla
Date: Tue May 27 09:30:27 2014
New Revision: 355475
URL: http://svnweb.freebsd.org/changeset/ports/355475
QAT: https://qat.redports.org/buildarchive/r355475/

Log:
  Stageify.
  
  Approved by:	portmgr@

Modified:
  head/devel/libk8055/Makefile
  head/devel/libk8055/files/patch-Makefile

Modified: head/devel/libk8055/Makefile
==============================================================================
--- head/devel/libk8055/Makefile	Tue May 27 08:40:46 2014	(r355474)
+++ head/devel/libk8055/Makefile	Tue May 27 09:30:27 2014	(r355475)
@@ -10,19 +10,17 @@ MASTER_SITES=	http://www.horizon9.org/~g
 MAINTAINER=	jake at xz.cx
 COMMENT=	Velleman K8055 USB experimental board support and command line tool
 
-MAN1=		k8055.1
-MANCOMPRESSED=	yes
 USE_LDCONFIG=	yes
 USE_CSTD=	gnu89
 
 PLIST_FILES=	bin/k8055 \
+		include/k8055.h \
 		lib/libk8055.c \
 		lib/libk8055.o \
 		lib/libk8055.so \
 		lib/libk8055.so.0.2 \
-		include/k8055.h
+		man/man1/k8055.1.gz
 
-NO_STAGE=	yes
 post-patch:
 	@${RM} ${WRKSRC}/libk8055.c.orig
 

Modified: head/devel/libk8055/files/patch-Makefile
==============================================================================
--- head/devel/libk8055/files/patch-Makefile	Tue May 27 08:40:46 2014	(r355474)
+++ head/devel/libk8055/files/patch-Makefile	Tue May 27 09:30:27 2014	(r355475)
@@ -1,5 +1,5 @@
---- Makefile.orig	2011-12-31 03:12:14.464658120 +0000
-+++ Makefile	2011-12-31 03:12:42.754252842 +0000
+--- Makefile.orig	2006-07-29 18:03:43.000000000 +0800
++++ Makefile	2014-05-27 17:29:02.806622803 +0800
 @@ -1,22 +1,22 @@
 -cc = gcc
 +CC ?= gcc
@@ -32,7 +32,7 @@
  	-ln -sf libk8055.so.0.2 libk8055.so
  
  libk8055.c: k8055.h
-@@ -24,10 +24,10 @@
+@@ -24,29 +24,29 @@ libk8055.c: k8055.h
  all: k8055_prog libk8055.so.0.1
  
  %.o: %.c
@@ -45,3 +45,32 @@
  	strip $(exec)
      
  clean:
+ 	rm -f *.o libk8055.so libk8055.so.0.2 $(exec)
+     
+ install: k8055_prog libk8055.so.0.1
+-	cp -f $(exec) $(bindir)/
+-	if !(test -d $(libdir)); then \
+-	  mkdir $(libdir); \
++	cp -f $(exec) $(DESTDIR)$(bindir)/
++	if !(test -d $(DESTDIR)$(libdir)); then \
++	  mkdir $(DESTDIR)$(libdir); \
+ 	fi
+-	if !(test -d $(includedir)); then \
+-	  mkdir $(includedir); \
++	if !(test -d $(DESTDIR)$(includedir)); then \
++	  mkdir $(DESTDIR)$(includedir); \
+ 	fi
+-	cp -Pf lib* $(libdir)
+-	cp -f k8055.h $(includedir)
+-	if !(test -d $(mandir)); then \
+-	  mkdir $(mandir); \
++	cp -Pf lib* $(DESTDIR)$(libdir)
++	cp -f k8055.h $(DESTDIR)$(includedir)
++	if !(test -d $(DESTDIR)$(mandir)); then \
++	  mkdir $(DESTDIR)$(mandir); \
+ 	fi
+-	cp -f man/k8055.1.gz $(mandir)/
++	cp -f man/k8055.1.gz $(DESTDIR)$(mandir)/
+     
+ uninstall:
+ 	rm -f $(bindir)/$(exec) $(libdir)/libk8055* $(includedir)/k8055.h


More information about the svn-ports-all mailing list