aboutsummaryrefslogtreecommitdiff
path: root/x11-clocks
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2000-08-08 08:14:16 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2000-08-08 08:14:16 +0000
commit433858ca01b33ebf9d05d15d6a557e192bacca0b (patch)
treee10d2428675fa48af5155069724746971d4d9628 /x11-clocks
parent2183743a4a55197bcc39b8803300728efb29cc19 (diff)
downloadports-433858ca01b33ebf9d05d15d6a557e192bacca0b.tar.gz
ports-433858ca01b33ebf9d05d15d6a557e192bacca0b.zip
Notes
Diffstat (limited to 'x11-clocks')
-rw-r--r--x11-clocks/asclock-xlib/Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/x11-clocks/asclock-xlib/Makefile b/x11-clocks/asclock-xlib/Makefile
index 11580f77de67..4d800a16363e 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 <bsd.port.pre.mk>
+
+.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 <bsd.port.mk>
+.include <bsd.port.post.mk>