1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- Fix dependency.

- Fix a build breakage when -fno-common is specified.
- Regenerate patch files.
- Move the directory creation for DOCSDIR to pre-install.
This commit is contained in:
Hiroki Sato 2020-08-23 16:08:43 +00:00
parent 49fc6a8a21
commit 082d51fbce
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=545828
5 changed files with 45 additions and 9 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= wmCalClock
PORTVERSION= 1.26
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= x11-clocks windowmaker
MASTER_SITES= http://jmpacquet.free.fr/wmcalclock/
@ -14,16 +14,18 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/../COPYING
USES= xorg
USE_XORG= xpm
USE_XORG= x11 xext xpm
WRKSRC= ${WRKDIR}/${DISTNAME}/Src
PLIST_FILES= bin/wmCalClock man/man1/${PORTNAME}.1.gz
PORTDOCS= BUGS CHANGES HINTS INSTALL README TODO
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
pre-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
post-install-DOCS-on:
cd ${WRKDIR}/${DISTNAME} && \
${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
--- Makefile.orig 1999-03-27 14:46:38.000000000 +0800
+++ Makefile 2014-01-11 20:07:37.000000000 +0800
--- Makefile.orig 1999-03-27 06:46:38 UTC
+++ Makefile
@@ -1,8 +1,7 @@
-CC = gcc
-CFLAGS = -O2 -Wall

View File

@ -1,6 +1,6 @@
--- wmCalClock.c.orig Wed May 21 03:34:04 2003
+++ wmCalClock.c Wed May 21 03:34:07 2003
@@ -299,7 +299,7 @@
--- wmCalClock.c.orig 2002-10-06 07:51:10 UTC
+++ wmCalClock.c
@@ -330,7 +330,7 @@ int main(int argc, char *argv[]) {
int i, n, wid, extrady, extradx;
int Year, Month, DayOfWeek, DayOfMonth, OldDayOfMonth;
int Hours, Mins, Secs, OldSecs, digit, xoff, D[10], xsize;

View File

@ -0,0 +1,15 @@
--- xutils.c.orig 1999-03-27 06:46:38 UTC
+++ xutils.c
@@ -39,7 +39,11 @@
#include <X11/extensions/shape.h>
#include "xutils.h"
-
+Display *display;
+Window Root;
+Window iconwin, win;
+int screen;
+int DisplayDepth;
/*
* X11 Variables

View File

@ -0,0 +1,19 @@
--- xutils.h.orig 1999-03-27 06:46:38 UTC
+++ xutils.h
@@ -18,11 +18,11 @@ typedef struct {
/*
* Global variable
*/
-Display *display;
-Window Root;
-Window iconwin, win;
-int screen;
-int DisplayDepth;
+extern Display *display;
+extern Window Root;
+extern Window iconwin, win;
+extern int screen;
+extern int DisplayDepth;