aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-05-27 17:30:27 +0800
committervanilla <vanilla@FreeBSD.org>2014-05-27 17:30:27 +0800
commit10fe0de59669b71154d924203415ffbc410dfa54 (patch)
tree9056937ceeb25c3a0204d3846e0b96c8b6fdb10d /devel
parent816b793ae199084fb6372e1798cdda5f01342d4f (diff)
downloadfreebsd-ports-gnome-10fe0de59669b71154d924203415ffbc410dfa54.tar.gz
freebsd-ports-gnome-10fe0de59669b71154d924203415ffbc410dfa54.tar.zst
freebsd-ports-gnome-10fe0de59669b71154d924203415ffbc410dfa54.zip
Stageify.
Approved by: portmgr@
Diffstat (limited to 'devel')
-rw-r--r--devel/libk8055/Makefile6
-rw-r--r--devel/libk8055/files/patch-Makefile35
2 files changed, 34 insertions, 7 deletions
diff --git a/devel/libk8055/Makefile b/devel/libk8055/Makefile
index 618d5ba2edda..b59c29bb3bcb 100644
--- a/devel/libk8055/Makefile
+++ b/devel/libk8055/Makefile
@@ -10,19 +10,17 @@ MASTER_SITES= http://www.horizon9.org/~geroy/download/k8055/ \
MAINTAINER= jake@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
diff --git a/devel/libk8055/files/patch-Makefile b/devel/libk8055/files/patch-Makefile
index da6b21097653..b9b8432f9ea0 100644
--- a/devel/libk8055/files/patch-Makefile
+++ b/devel/libk8055/files/patch-Makefile
@@ -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