From 1d6389b1eb64555dbbf8be6a6c6dd63717afcd50 Mon Sep 17 00:00:00 2001 From: kuriyama Date: Tue, 8 Aug 2000 08:14:16 +0000 Subject: Use USE_IMAKE when BATCH=YES. Reported by: bento Suggested by: PW --- x11-clocks/asclock-xlib/Makefile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'x11-clocks') diff --git a/x11-clocks/asclock-xlib/Makefile b/x11-clocks/asclock-xlib/Makefile index 11580f7..4d800a1 100644 --- a/x11-clocks/asclock-xlib/Makefile +++ b/x11-clocks/asclock-xlib/Makefile @@ -12,22 +12,28 @@ MASTER_SITES= http://www.asclock.org/tar/ MAINTAINER= kuriyama@FreeBSD.org -HAS_CONFIGURE= YES WRKSRC= ${WRKDIR}/asclock-xlib -USE_X_PREFIX= YES USE_XPM= YES +.include + +.if defined(BATCH) +USE_IMAKE= YES +.else +USE_X_PREFIX= YES +HAS_CONFIGURE= YES +.endif + post-patch: @(cd ${WRKSRC}; \ ${MV} config.c config.c.tmp; \ ${SED} -e s@/usr/local/@${X11BASE}/@ -e s@/usr/share/asclock@${LOCALBASE}/share/asclock@ < config.c.tmp > config.c ) .if defined(BATCH) -do-configure: +pre-configure: @(cd ${WRKSRC}; \ ${RM} -rf default_theme; \ - ${LN} -s themes/Orb default_theme; \ - ${XMKMF} ) + ${LN} -s themes/Orb default_theme) .endif post-install: @@ -37,4 +43,4 @@ post-install: ${INSTALL_DATA} *.xpm config ${PREFIX}/share/asclock/${i}/ ) .endfor -.include +.include -- cgit v1.1