View | Details | Raw Unified | Return to bug 172511 | Differences between
and this patch

Collapse All | Expand All

(-)x11/lupe/Makefile (-12 / +28 lines)
Lines 4-28 Link Here
4
PORTNAME=	lupe
4
PORTNAME=	lupe
5
PORTVERSION=	0.08c
5
PORTVERSION=	0.08c
6
CATEGORIES=	x11 accessibility
6
CATEGORIES=	x11 accessibility
7
MASTER_SITES=	http://www.oersted.co.jp/~yav/soft/
7
MASTER_SITES=	http://www2s.biglobe.ne.jp/~yav/soft/
8
DISTNAME=	lupe008c
8
DISTNAME=	${PORTNAME}${PORTVERSION:S/.//}
9
9
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	Real-time magnifying glass for X11
11
COMMENT=	Real-time magnifying glass for X11
12
12
13
DEPRECATED=	No more public distfiles
13
OPTIONS_DEFINE=	DOCS
14
EXPIRATION_DATE=	2012-11-26
14
15
WRKSRC=		${WRKDIR}/${PORTNAME}
15
16
16
WRKSRC=		${WRKDIR}/lupe
17
USE_IMAKE=	yes
18
USE_XORG=	x11 xext
17
USE_XORG=	x11 xext
19
XMKMF=		xmkmf
18
GNU_CONFIGURE=	yes
20
MAN1=		lupe.1
19
20
CPPFLAGS+=	-I${LOCALBASE}/include
21
LDFLAGS+=	-L${LOCALBASE}/lib -lX11 -lXext -lm
22
23
MAN1=		${PORTNAME}.1
24
PORTDOCS=	${PORTNAME}.doc
25
PLIST_FILES=	bin/${PORTNAME}
26
27
.include <bsd.port.options.mk>
28
29
post-extract:
30
	@${LN} -sf ${PORTNAME}.man ${WRKSRC}/${PORTNAME}.1
31
32
do-build:
33
	(cd ${WRKSRC} \
34
		&& ${CC} ${CFLAGS} ${CPPFLAGS} -o ${PORTNAME} *.c ${LDFLAGS})
21
35
22
post-install:
36
do-install:
23
.if !defined(NOPORTDOCS)
37
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin)
24
	${MKDIR} ${DOCSDIR}
38
	(cd ${WRKSRC} && ${INSTALL_MAN} ${PORTNAME}.1 ${MANPREFIX}/man/man1)
25
	${INSTALL_MAN} ${WRKSRC}/lupe.doc ${DOCSDIR}
39
.if ${PORT_OPTIONS:MDOCS}
40
	@${MKDIR} ${DOCSDIR}
41
	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTNAME}.doc ${DOCSDIR})
26
.endif
42
.endif
27
43
28
.include <bsd.port.mk>
44
.include <bsd.port.mk>
(-)x11/lupe/files/patch-avionics.c (+13 lines)
Line 0 Link Here
1
--- avionics.c.orig	1999-05-29 18:08:12.000000000 +0900
2
+++ avionics.c	2012-10-07 20:03:12.000000000 +0900
3
@@ -16,6 +16,10 @@
4
 #include <stdlib.h>
5
 #endif
6
 
7
+#ifdef HAVE_STRING_H
8
+#include <string.h>
9
+#endif
10
+
11
 #include "extern.h"
12
 #include "timer.h"
13
 
(-)x11/lupe/files/patch-lupe.c (+22 lines)
Line 0 Link Here
1
--- lupe.c.orig	1999-05-29 18:08:12.000000000 +0900
2
+++ lupe.c	2012-10-07 20:03:55.000000000 +0900
3
@@ -19,6 +19,10 @@
4
 #include "version.h"
5
 #include "timer.h"
6
 
7
+#ifdef HAVE_STDLIB_H
8
+#include <stdlib.h>
9
+#endif
10
+
11
 #ifdef HAVE_STRING_H
12
 #include <string.h>
13
 #else
14
@@ -339,7 +343,7 @@
15
   photo_delay *= 1000;		/* sec. to millisec. */
16
 }
17
 
18
-void main(argc, argv)
19
+int main(argc, argv)
20
      int argc;
21
      char **argv;
22
 {
(-)x11/lupe/files/patch-option.c (+13 lines)
Line 0 Link Here
1
--- option.c.orig	1999-05-29 18:08:12.000000000 +0900
2
+++ option.c	2012-10-07 20:02:51.000000000 +0900
3
@@ -13,6 +13,10 @@
4
 #include <stdlib.h>
5
 #endif
6
 
7
+#ifdef HAVE_STRING_H
8
+#include <string.h>
9
+#endif
10
+
11
 #include "extern.h"
12
 
13
 #define OPT_FUNC	1
(-)x11/lupe/pkg-descr (-5 / +3 lines)
Lines 1-8 Link Here
1
Lupe is a magnifying glass for X Window System.
1
Lupe is a magnifying glass for X Window System.
2
Lupe is like xmag but it updates the image in real-time
3
and needs more processor power.
4
2
5
See man page for details.
3
Lupe is like xmag but it updates the image in real-time and needs
4
more processor power.
6
5
7
Orignal lupe written by UHD98984@pcvan.or.jp .
6
WWW: http://www2s.biglobe.ne.jp/~yav/soft/indexe.html
8
This port is done by kazu@jp.freebsd.org .
(-)x11/lupe/pkg-plist (-3 lines)
Lines 1-3 Link Here
1
bin/lupe
2
%%PORTDOCS%%%%DOCSDIR%%/lupe.doc
3
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 172511