aboutsummaryrefslogtreecommitdiffstats
path: root/x11-clocks/wmcalclock
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-01-11 20:51:31 +0800
committervanilla <vanilla@FreeBSD.org>2014-01-11 20:51:31 +0800
commit1ef7c7cea9fabdcc34be6ef34458c4e5b0e58ec3 (patch)
tree6232801a80e99c7ac83d529429412cd9e62d9eb1 /x11-clocks/wmcalclock
parent331b1f76d2a1fbef958ed99076fcb074f35754ad (diff)
downloadfreebsd-ports-gnome-1ef7c7cea9fabdcc34be6ef34458c4e5b0e58ec3.tar.gz
freebsd-ports-gnome-1ef7c7cea9fabdcc34be6ef34458c4e5b0e58ec3.tar.zst
freebsd-ports-gnome-1ef7c7cea9fabdcc34be6ef34458c4e5b0e58ec3.zip
Support stagedir.
Submitted by: portmgr (blanket infrastructure)
Diffstat (limited to 'x11-clocks/wmcalclock')
-rw-r--r--x11-clocks/wmcalclock/Makefile9
-rw-r--r--x11-clocks/wmcalclock/files/patch-Makefile15
2 files changed, 10 insertions, 14 deletions
diff --git a/x11-clocks/wmcalclock/Makefile b/x11-clocks/wmcalclock/Makefile
index 56bf4ed3d676..3d8d2ec9a194 100644
--- a/x11-clocks/wmcalclock/Makefile
+++ b/x11-clocks/wmcalclock/Makefile
@@ -15,21 +15,18 @@ LICENSE_FILE= ${WRKSRC}/../COPYING
USE_XORG= xpm
WRKSRC= ${WRKDIR}/${DISTNAME}/Src
-PLIST_FILES= bin/wmCalClock
+PLIST_FILES= bin/wmCalClock man/man1/${PORTNAME}.1.gz
PORTDOCS= BUGS CHANGES HINTS INSTALL README TODO
-MAN1= wmCalClock.1
-
OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
post-install:
- @${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKDIR}/${DISTNAME} && \
- ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/x11-clocks/wmcalclock/files/patch-Makefile b/x11-clocks/wmcalclock/files/patch-Makefile
index da2526f3ff77..ad95d47891af 100644
--- a/x11-clocks/wmcalclock/files/patch-Makefile
+++ b/x11-clocks/wmcalclock/files/patch-Makefile
@@ -1,6 +1,6 @@
---- Makefile.orig Sat Mar 27 15:46:38 1999
-+++ Makefile Sat Aug 12 01:01:35 2000
-@@ -1,8 +1,8 @@
+--- Makefile.orig 1999-03-27 14:46:38.000000000 +0800
++++ Makefile 2014-01-11 20:07:37.000000000 +0800
+@@ -1,8 +1,7 @@
-CC = gcc
-CFLAGS = -O2 -Wall
-INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include
@@ -9,12 +9,11 @@
+CC ?= gcc
+CFLAGS ?= -O2
+INCDIR = -I${LOCALBASE}/include
-+DESTDIR= ${PREFIX}
+LIBDIR = -L${LOCALBASE}/lib
# for Linux
LIBS = -lXpm -lX11 -lXext
-@@ -15,14 +15,14 @@
+@@ -15,14 +14,14 @@ OBJS = wmCalClock.o \
.c.o:
@@ -31,12 +30,12 @@
clean:
for i in $(OBJS) ; do \
-@@ -31,6 +31,6 @@
+@@ -31,6 +30,6 @@ clean:
rm -f wmCalClock
install:: wmCalClock
- install -c -s -m 0755 wmCalClock $(DESTDIR)/bin
- install -c -m 0644 wmCalClock.1 $(DESTDIR)/man/man1
-+ ${BSD_INSTALL_PROGRAM} wmCalClock $(DESTDIR)/bin
-+ ${BSD_INSTALL_MAN} wmCalClock.1 $(DESTDIR)/man/man1
++ ${BSD_INSTALL_PROGRAM} wmCalClock $(DESTDIR)$(PREFIX)/bin
++ ${BSD_INSTALL_MAN} wmCalClock.1 $(DESTDIR)$(PREFIX)/man/man1