cvs commit: ports/x11/cnslock Makefile ports/x11/cnslock/files patch-Makefile patch-cnslock.c

FUJISHIMA Satsuki sf at FreeBSD.org
Mon Jul 14 21:09:13 PDT 2003


At Tue, 15 Jul 2003 01:38:33 +0200,
Melvyn Sopacua wrote:
> If I comment out:
> GETOPTDIR!=   cd ${PORTSDIR}/devel/libgnugetopt; make -V WRKSRC
> 
> All goes well.

Good catch. Due to "!="'s speciality in make syntax, it shuold be
appearred after bsd.port.pre.mk where PORTSDIR is defined. I predefine
PORTSDIR in /etc/make.conf so your problem couldn't be reproduced here
in my jail.

Please try this.

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/x11/xstroke/Makefile,v
retrieving revision 1.10
diff -u -r1.10 Makefile
--- Makefile	14 Jul 2003 02:37:54 -0000	1.10
+++ Makefile	15 Jul 2003 04:05:24 -0000
@@ -24,7 +24,10 @@
 CPPFLAGS=	-I${LOCALBASE}/include
 LDFLAGS=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
 MAKE_ENV+=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-GETOPTDIR!=	cd ${PORTSDIR}/devel/libgnugetopt; make -V WRKSRC
+
+.include <bsd.port.pre.mk>
+
+GETOPTDIR!=	cd ${PORTSDIR}/devel/libgnugetopt; ${MAKE} -V WRKSRC
 
 MAN1=	xstroke.1
 
@@ -33,4 +36,4 @@
 	@${REINPLACE_CMD} -e "s,etc/,${PREFIX}/etc/,g" ${WRKSRC}/args.h
 	${CP} ${GETOPTDIR}/getopt* ${WRKSRC}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the cvs-ports mailing list