View | Details | Raw Unified | Return to bug 110743
Collapse All | Expand All

(-)Makefile (-3 / +11 lines)
Lines 14-29 Link Here
14
MAINTAINER=	fullermd@over-yonder.net
14
MAINTAINER=	fullermd@over-yonder.net
15
COMMENT=	An extension to twm, with support for multiple virtual screens, etc
15
COMMENT=	An extension to twm, with support for multiple virtual screens, etc
16
16
17
BUILD_DEPENDS=	gm4:${PORTSDIR}/devel/m4
18
RUN_DEPENDS=	gm4:${PORTSDIR}/devel/m4
19
LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg
17
LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg
20
18
21
USE_IMAKE=	yes
19
USE_IMAKE=	yes
22
USE_XPM=	yes
20
USE_XPM=	yes
23
MAN1=		ctwm.1
21
MAN1=		ctwm.1
24
22
23
.include <bsd.port.pre.mk>
24
25
# Very old versions need GNU m4
26
.if ( ${OSVERSION} < 450005 || \
27
	( ${OSVERSION} >= 500000 && ${OSVERSION} < 500034 ) )
28
EXTRA_PATCHES+= ${FILESDIR}/gm4-patch
29
BUILD_DEPENDS+=	gm4:${PORTSDIR}/devel/m4
30
RUN_DEPENDS+=	gm4:${PORTSDIR}/devel/m4
31
.endif
32
25
pre-configure:
33
pre-configure:
26
	${CP} ${WRKSRC}/Imakefile.local-template ${WRKSRC}/Imakefile.local
34
	${CP} ${WRKSRC}/Imakefile.local-template ${WRKSRC}/Imakefile.local
27
	${CAT} ${FILESDIR}/Imakefile.local-additional >> ${WRKSRC}/Imakefile.local
35
	${CAT} ${FILESDIR}/Imakefile.local-additional >> ${WRKSRC}/Imakefile.local
28
36
29
.include <bsd.port.mk>
37
.include <bsd.port.post.mk>
(-)files/gm4-patch (+29 lines)
Added Link Here
1
$FreeBSD$
2
3
--- Imakefile.orig	Thu May  5 08:22:40 2005
4
+++ Imakefile	Mon May  9 19:30:45 2005
5
@@ -67,10 +67,12 @@
6
 #endif
7
 
8
 #if defined USE_M4 || defined USEM4
9
+ M4PROGNAME = gm4
10
+     M4PROG = $(LOCALBASE)/bin/$(M4PROGNAME)
11
    M4LIBDIR =
12
    M4INCDIR =
13
 
14
-  M4DEFINES = -DUSEM4
15
+  M4DEFINES = -DUSEM4 -DM4PROG=\"$(M4PROG)\" -DM4PROGNAME=\"$(M4PROGNAME)\"
16
       M4LIB = $(M4LIBDIR)
17
 #else
18
    M4LIBDIR = 
19
--- parse.c.orig	Fri Feb 16 03:24:27 2007
20
+++ parse.c	Sun Mar  4 18:36:18 2007
21
@@ -2128,7 +2128,7 @@
22
                 dup2(fids[1], 1);       /* stdout = pipe to parent */
23
                 /* get_defs("m4", dpy, display_name) */
24
                 tmp_file = m4_defs(dpy, display_name);
25
-                execlp("m4", "m4",
26
+                execlp(M4PROG, M4PROGNAME,
27
 #if !defined(__NetBSD__)
28
 			"-s",
29
 #endif
(-)files/patch-aa (-18 lines)
Removed Link Here
1
$FreeBSD: ports/x11-wm/ctwm/files/patch-aa,v 1.10 2005/07/20 08:39:52 pav Exp $
2
3
--- Imakefile.orig	Thu May  5 08:22:40 2005
4
+++ Imakefile	Mon May  9 19:30:45 2005
5
@@ -67,10 +67,12 @@
6
 #endif
7
 
8
 #if defined USE_M4 || defined USEM4
9
+ M4PROGNAME = gm4
10
+     M4PROG = $(LOCALBASE)/bin/$(M4PROGNAME)
11
    M4LIBDIR =
12
    M4INCDIR =
13
 
14
-  M4DEFINES = -DUSEM4
15
+  M4DEFINES = -DUSEM4 -DM4PROG=\"$(M4PROG)\" -DM4PROGNAME=\"$(M4PROGNAME)\"
16
       M4LIB = $(M4LIBDIR)
17
 #else
18
    M4LIBDIR = 
(-)files/patch-ab (-13 lines)
Removed Link Here
1
$FreeBSD: ports/x11-wm/ctwm/files/patch-ab,v 1.3 2007/03/06 00:24:51 clsung Exp $
2
3
--- parse.c.orig	Fri Feb 16 03:24:27 2007
4
+++ parse.c	Sun Mar  4 18:36:18 2007
5
@@ -2128,7 +2128,7 @@
6
                 dup2(fids[1], 1);       /* stdout = pipe to parent */
7
                 /* get_defs("m4", dpy, display_name) */
8
                 tmp_file = m4_defs(dpy, display_name);
9
-                execlp("m4", "m4",
10
+                execlp(M4PROG, M4PROGNAME,
11
 #if !defined(__NetBSD__)
12
 			"-s",
13
 #endif

Return to bug 110743